2017-10-27 21:56:50 +02:00
|
|
|
|
# Tanım: The Perl package contains the Practical Extraction and Report Language.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.perl.org/
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
isim=perl
|
|
|
|
|
surum=5.22.1
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
kaynak=(http://ftp.funet.fi/pub/CPAN/src/$isim-$surum.tar.bz2)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle()
|
2016-02-24 01:27:23 +01:00
|
|
|
|
{
|
2017-10-28 14:15:02 +02:00
|
|
|
|
cd $isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
if [ "`uname -m`" == "x86_64" ]; then
|
|
|
|
|
_ARCH="-Dcccdlflags='-fPIC'"
|
|
|
|
|
else
|
|
|
|
|
_ARCH=""
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
|
|
|
|
|
export BUILD_ZLIB=False
|
|
|
|
|
export BUILD_BZIP2=0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sh Configure -des -Dusethreads \
|
|
|
|
|
-Dprefix=/usr -Duseshrplib -Dscriptdir=/usr/bin \
|
|
|
|
|
-Dvendorbin=/usr/bin -Dsitebin=/usr/bin \
|
|
|
|
|
-Dvendorprefix=/usr -Dinc_version_list=none \
|
|
|
|
|
-Darchlib=/usr/lib/share/perl5/base \
|
|
|
|
|
-Dprivlib=/usr/lib/share/perl5/base \
|
|
|
|
|
-Dvendorlib=/usr/lib/share/perl5/vendor \
|
|
|
|
|
-Dvendorarch=/usr/lib/perl5/vendor \
|
|
|
|
|
-Dsitelib=/usr/lib/perl5/site \
|
|
|
|
|
-Dsitearch=/usr/lib/perl5/site \
|
|
|
|
|
-Dman1dir=/usr/share/man/man1 \
|
|
|
|
|
-Dman3dir=/usr/share/man/man3 \
|
|
|
|
|
-Dpager="/usr/bin/less isR" ${_ARCH}
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
# Only when we are building a new base
|
|
|
|
|
|
|
|
|
|
if [ -L /tools ]; then
|
|
|
|
|
make -k test || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
unset BUILD_ZLIB BUILD_BZIP2
|
|
|
|
|
}
|