# HG changeset patch # User Hans-G?nter Theisgen # Date 1640929189 -3600 # Node ID 39fe2d0cb7fb9c2c544a41a9e62cde257c1421a8 # Parent b093349fa7899e84585c08bd0781e711f0e43efb created recipe for perl-ipc-system-simple diff -r b093349fa789 -r 39fe2d0cb7fb perl-ipc-system-simple/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl-ipc-system-simple/description.txt Fri Dec 31 06:39:49 2021 +0100 @@ -0,0 +1,13 @@ +Calling Perl's in-built system() function is easy, determining if +it was successful is hard. +Let's face it, $? isn't the nicest variable in the world to play with, +and even if you do check it, producing a well-formatted error string +takes a lot of work. + +IPC::System::Simple takes the hard work out of calling external commands. +In fact, if you want to be really lazy, you can just write: + +use IPC::System::Simple qw(system); + +and all of your system commands will either succeed (run to completion +and return a zero exit value), or die with rich diagnostic messages. diff -r b093349fa789 -r 39fe2d0cb7fb perl-ipc-system-simple/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl-ipc-system-simple/receipt Fri Dec 31 06:39:49 2021 +0100 @@ -0,0 +1,31 @@ +# SliTaz package receipt. + +PACKAGE="perl-ipc-system-simple" +VERSION="1.30" +CATEGORY="development" +SHORT_DESC="Perl extension to run commands simply, with detailed diagnostics." +MAINTAINER="maintainer@slitaz.org" +LICENSE="GPL" +WEB_SITE="https://metacpan.org/pod/IPC::System::Simple" +REPOLOGY="perl:ipc-system-simple" + +SOURCE="IPC-System-Simple" +TARBALL="$SOURCE-$VERSION.tar.gz" +WGET_URL="https://www.cpan.org/modules/by-module/IPC/$TARBALL" + +DEPENDS="perl" +BUILD_DEPENDS="perl" + +# Rules to configure and make the package. +compile_rules() +{ + perl Makefile.PL && + make && + make install DESTDIR=$DESTDIR +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_folders lib +}