diff options
author | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-08 12:12:28 +0100 |
commit | 9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch) | |
tree | ae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /perl/Pkgfile | |
parent | c9972ec7f32bf9d37388e853fe9bf633e242d05a (diff) | |
download | nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2 nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip |
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'perl/Pkgfile')
-rwxr-xr-x | perl/Pkgfile | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/perl/Pkgfile b/perl/Pkgfile new file mode 100755 index 000000000..4403ab2f6 --- /dev/null +++ b/perl/Pkgfile @@ -0,0 +1,92 @@ +# Description: Langage de programmation PERL (Practical Extraction and Report Language) +# URL: http://www.perl.org/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch + + +# Description: Langage de programmation PERL (Practical Extraction and Report Language) +# URL: http://www.perl.org/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch + +name=perl +version=5.12.3 +release=2 +source=(ftp://ftp.funet.fi/pub/CPAN/src/$name-$version.tar.gz) + +build() { +cd $name-$version +if [ "`uname -m`" == "x86_64" ]; then + _ARCH="-Dcccdlflags='-fPIC'" +else + _ARCH="" +fi + +sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \ + -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \ + -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \ + cpan/Compress-Raw-Zlib/config.in +sh Configure -des -Dusethreads \ + -Dprivlib=/usr/share/perl5/base \ + -Darchlib=/usr/share/perl5/base \ + -Dvendorlib=/usr/share/perl5/vendor \ + -Dvendorarch=/usr/lib/perl5/vendor \ + -Dsitelib=/usr/share/perl5/site \ + -Dsitearch=/usr/lib/perl5/site \ + -Dprefix=/usr -Duseshrplib \ + -Dman1dir=/usr/share/man/man1 \ + -Dman3dir=/usr/share/man/man3 \ + -Dpager="/usr/bin/less isR" ${_ARCH} +make +make DESTDIR=$PKG install +find $PKG -iname 'TODO*' -or \ + -iname 'Change*' -or \ + -iname 'README*' -or \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +find $PKG -depth -empty -exec rmdir {} \; +chmod -R +w $PKG +} + + + +#name=perl +#version=5.14.1 +#release=1 +#source=(ftp://ftp.funet.fi/pub/CPAN/src/$name-$version.tar.gz) + +#build() { +#cd $name-$version +#if [ "`uname -m`" == "x86_64" ]; then +# _ARCH="-Dcccdlflags='-fPIC'" +#else +# _ARCH="" +#fi + +#sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \ +# -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \ +# -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \ +# cpan/Compress-Raw-Zlib/config.in +#sh Configure -des -Dusethreads \ +# -Dprivlib=/usr/share/perl5/base \ +# -Darchlib=/usr/share/perl5/base \ +# -Dvendorlib=/usr/share/perl5/vendor \ +# -Dvendorarch=/usr/lib/perl5/vendor \ +# -Dsitelib=/usr/share/perl5/site \ +# -Dsitearch=/usr/lib/perl5/site \ +# -Dprefix=/usr -Duseshrplib \ +# -Dman1dir=/usr/share/man/man1 \ +# -Dman3dir=/usr/share/man/man3 \ +# -Dpager="/usr/bin/less isR" ${_ARCH} +#make +#make DESTDIR=$PKG install +#find $PKG -iname 'TODO*' -or \ +# -iname 'Change*' -or \ +# -iname 'README*' -or \ +# -name '*.bs' -or \ +# -name .packlist -or \ +# -name perllocal.pod | xargs rm +#find $PKG -depth -empty -exec rmdir {} \; +#chmod -R +w $PKG +#} |