SliTaz SliTaz Forum

You are not logged in.

#1 2015-03-24 14:36:18

nneul
Member
Registered: 2015-03-24
Posts: 5

Patch: add perl-appconfig and perl-template-toolkit packages

If this isn't the proper way to submit, please let me know. I have several more that I will be submitting.

Offline

#2 2015-03-24 14:37:17

nneul
Member
Registered: 2015-03-24
Posts: 5

Re: Patch: add perl-appconfig and perl-template-toolkit packages

Here's the patch

Offline

#3 2015-03-24 14:38:00

nneul
Member
Registered: 2015-03-24
Posts: 5

Re: Patch: add perl-appconfig and perl-template-toolkit packages

[c]diff -r 7d5789c51e7e perl-appconfig/receipt
--- /dev/null    Thu Jan 01 00:00:00 1970 +0000
+++ b/perl-appconfig/receipt    Tue Mar 24 13:47:42 2015 +0000
@@ -0,0 +1,36 @@
+# SliTaz package receipt.
+
+PACKAGE="perl-appconfig"
+VERSION="1.71"
+CATEGORY="development"
+SHORT_DESC="Perl/CPAN Module AppConfig"
+MAINTAINER="nneul@neulinger.org"
+LICENSE="Artistic"
+DEPENDS="perl"
+BUILD_DEPENDS="perl"
+SOURCE="AppConfig"
+TARBALL="$SOURCE-$VERSION.tar.gz"
+WEB_SITE="http://search.cpan.org/dist/AppConfig/"
+WGET_URL="http://www.cpan.org/authors/id/N/NE/NEILB/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    perl Makefile.PL &&
+    make &&
+    make DESTDIR=$DESTDIR install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+    mkdir -p $fs/usr
+    cp -a $install/usr/lib $fs/usr
+    # remove perllocal.pod and .packlist
+    find ${fs} -name perllocal.pod -delete
+    find ${fs} -name .packlist -delete
+
+
+}
+
diff -r 7d5789c51e7e perl-template-toolkit/receipt
--- /dev/null    Thu Jan 01 00:00:00 1970 +0000
+++ b/perl-template-toolkit/receipt    Tue Mar 24 13:47:42 2015 +0000
@@ -0,0 +1,36 @@
+# SliTaz package receipt.
+
+PACKAGE="perl-template-toolkit"
+VERSION="2.26"
+CATEGORY="development"
+SHORT_DESC="Perl/CPAN Module Template Toolkit"
+MAINTAINER="nneul@neulinger.org"
+LICENSE="Artistic"
+DEPENDS="perl perl-appconfig"
+BUILD_DEPENDS="perl-appconfig"
+SOURCE="Template-Toolkit"
+TARBALL="$SOURCE-$VERSION.tar.gz"
+WEB_SITE="http://search.cpan.org/dist/Template-Toolkit/"
+WGET_URL="http://www.cpan.org/authors/id/A/AB/ABW/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    perl Makefile.PL TT_XS_ENABLE=y TT_XS_DEFAULT=y TT_ACCEPT=y TT_QUIET=n &&
+    make &&
+    make DESTDIR=$DESTDIR install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+    mkdir -p $fs/usr
+    cp -a $install/usr/lib $fs/usr
+    # remove perllocal.pod and .packlist
+    find ${fs} -name perllocal.pod -delete
+    find ${fs} -name .packlist -delete
+
+
+}
+[/c]

Offline

#4 2015-03-24 14:42:20

nneul
Member
Registered: 2015-03-24
Posts: 5

Re: Patch: add perl-appconfig and perl-template-toolkit packages

Additional patch for perl-json package:

[c]diff -r 7d5789c51e7e perl-json/receipt
--- /dev/null    Thu Jan 01 00:00:00 1970 +0000
+++ b/perl-json/receipt    Tue Mar 24 14:41:09 2015 +0000
@@ -0,0 +1,36 @@
+# SliTaz package receipt.
+
+PACKAGE="perl-json"
+VERSION="2.90"
+CATEGORY="development"
+SHORT_DESC="Perl/CPAN Module JSON"
+MAINTAINER="nneul@neulinger.org"
+LICENSE="Artistic"
+DEPENDS="perl"
+BUILD_DEPENDS="perl"
+SOURCE="JSON"
+TARBALL="$SOURCE-$VERSION.tar.gz"
+WEB_SITE="http://search.cpan.org/dist/JSON/"
+WGET_URL="http://www.cpan.org/authors/id/M/MA/MAKAMAKA/$TARBALL"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+    cd $src
+    perl Makefile.PL &&
+    make &&
+    make DESTDIR=$DESTDIR install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+    mkdir -p $fs/usr
+    cp -a $install/usr/lib $fs/usr
+    # remove perllocal.pod and .packlist
+    find ${fs} -name perllocal.pod -delete
+    find ${fs} -name .packlist -delete
+
+
+}
+[/c]

Offline

#5 2015-03-24 14:55:30

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Patch: add perl-appconfig and perl-template-toolkit packages

Please send a email to pascal.bellard@slitaz.org with a username and a password to create your mercurial access.

http://doc.slitaz.org/fr:cookbook:devcorner

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 12 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]