wok-current rev 24179
created recipe for perl-ipc-system-simple
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 06:39:49 2021 +0100 (2021-12-31) |
parents | b093349fa789 |
children | f95bb62ba57c |
files | perl-ipc-system-simple/description.txt perl-ipc-system-simple/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-ipc-system-simple/description.txt Fri Dec 31 06:39:49 2021 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +Calling Perl's in-built system() function is easy, determining if 1.5 +it was successful is hard. 1.6 +Let's face it, $? isn't the nicest variable in the world to play with, 1.7 +and even if you do check it, producing a well-formatted error string 1.8 +takes a lot of work. 1.9 + 1.10 +IPC::System::Simple takes the hard work out of calling external commands. 1.11 +In fact, if you want to be really lazy, you can just write: 1.12 + 1.13 +use IPC::System::Simple qw(system); 1.14 + 1.15 +and all of your system commands will either succeed (run to completion 1.16 +and return a zero exit value), or die with rich diagnostic messages.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/perl-ipc-system-simple/receipt Fri Dec 31 06:39:49 2021 +0100 2.3 @@ -0,0 +1,31 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="perl-ipc-system-simple" 2.7 +VERSION="1.30" 2.8 +CATEGORY="development" 2.9 +SHORT_DESC="Perl extension to run commands simply, with detailed diagnostics." 2.10 +MAINTAINER="maintainer@slitaz.org" 2.11 +LICENSE="GPL" 2.12 +WEB_SITE="https://metacpan.org/pod/IPC::System::Simple" 2.13 +REPOLOGY="perl:ipc-system-simple" 2.14 + 2.15 +SOURCE="IPC-System-Simple" 2.16 +TARBALL="$SOURCE-$VERSION.tar.gz" 2.17 +WGET_URL="https://www.cpan.org/modules/by-module/IPC/$TARBALL" 2.18 + 2.19 +DEPENDS="perl" 2.20 +BUILD_DEPENDS="perl" 2.21 + 2.22 +# Rules to configure and make the package. 2.23 +compile_rules() 2.24 +{ 2.25 + perl Makefile.PL && 2.26 + make && 2.27 + make install DESTDIR=$DESTDIR 2.28 +} 2.29 + 2.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.31 +genpkg_rules() 2.32 +{ 2.33 + cook_copy_folders lib 2.34 +}