2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'perl'.
|
|
|
|
pkgname=perl
|
2011-09-30 16:08:46 +00:00
|
|
|
version=5.14.2
|
2010-11-01 10:47:21 +00:00
|
|
|
distfiles="http://www.cpan.org/src/5.0/$pkgname-$version.tar.bz2"
|
2011-11-12 05:01:02 +00:00
|
|
|
revision=1
|
2008-09-28 05:18:38 +00:00
|
|
|
short_desc="Practical Extraction and Report Language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-05 15:17:36 +00:00
|
|
|
homepage="http://www.perl.org"
|
|
|
|
license="GPL-2"
|
2011-09-30 16:08:46 +00:00
|
|
|
checksum=c2a2362e8d1fdd2bfbfde801fcd78241f154c164f00fba76065ab8cc5c7b06cd
|
2008-09-28 05:18:38 +00:00
|
|
|
long_desc="
|
|
|
|
Perl is a general-purpose programming language originally developed
|
|
|
|
for text manipulation and now used for a wide range of tasks including
|
|
|
|
system administration, web development, network programming, GUI
|
|
|
|
development, and more. The language is intended to be practical (easy
|
|
|
|
to use, efficient, complete) rather than beautiful (tiny, elegant,
|
|
|
|
minimal). Its major features are that it's easy to use, supports both
|
|
|
|
procedural and object-oriented (OO) programming, has powerful built-in
|
|
|
|
support for text processing, and has one of the world's most impressive
|
|
|
|
collections of third-party modules."
|
2008-10-22 16:39:17 +00:00
|
|
|
|
2010-04-22 10:11:51 +00:00
|
|
|
Add_dependency build gdbm-devel
|
|
|
|
Add_dependency build db-devel
|
2010-12-17 13:20:02 +00:00
|
|
|
Add_dependency build less
|
|
|
|
Add_dependency build groff
|
2009-10-15 22:57:59 +00:00
|
|
|
|
2010-11-01 10:47:21 +00:00
|
|
|
do_build()
|
2009-10-15 22:57:59 +00:00
|
|
|
{
|
2010-11-01 10:47:21 +00:00
|
|
|
./Configure \
|
|
|
|
-des -Dusethreads -Duseshrplib \
|
2010-12-17 15:06:39 +00:00
|
|
|
-Dinstallprefix=/usr \
|
2010-11-01 10:47:21 +00:00
|
|
|
-Dprefix=/usr -Dvendorprefix=/usr \
|
|
|
|
-Dprivlib=/usr/share/perl5/core_perl \
|
|
|
|
-Darchlib=/usr/lib/perl5/core_perl \
|
|
|
|
-Dsitelib=/usr/share/perl5/site_perl \
|
|
|
|
-Dsitearch=/usr/lib/perl5/site_perl \
|
|
|
|
-Dvendorlib=/usr/share/perl5/vendor_perl \
|
|
|
|
-Dvendorarch=/usr/lib/perl5/vendor_perl \
|
|
|
|
-Dscriptdir=/usr/lib/perl5/core_perl/bin \
|
|
|
|
-Dsitescript=/usr/lib/perl5/site_perl/bin \
|
|
|
|
-Dvendorscript=/usr/lib/perl5/vendor_perl/bin \
|
2010-12-17 13:20:02 +00:00
|
|
|
-Dinc_version_list=none -Dman1ext=1p -Dman3ext=3p \
|
2010-11-01 10:47:21 +00:00
|
|
|
-Dcccdlflags="-fPIC" -Doptimize="${XBPS_CFLAGS}"
|
|
|
|
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
# We use the same defaults than Arch Linux.
|
2010-12-17 15:06:39 +00:00
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-11-01 10:47:21 +00:00
|
|
|
|
|
|
|
# Make a link from perl${version} to perl.
|
2011-09-30 16:08:46 +00:00
|
|
|
cd ${DESTDIR}/usr/bin && ln -sf perl${version} perl
|
2010-11-01 10:47:21 +00:00
|
|
|
|
|
|
|
### CPAN Settings ###
|
|
|
|
# Set CPAN default config to use the site directories.
|
|
|
|
sed -e '/(makepl_arg =>/ s/""/"INSTALLDIRS=site"/' \
|
|
|
|
-e '/(mbuildpl_arg =>/ s/""/"installdirs=site"/' \
|
|
|
|
-i ${DESTDIR}/usr/share/perl5/core_perl/CPAN/FirstTime.pm
|
|
|
|
|
|
|
|
### CPANPLUS Settings ###
|
|
|
|
# Set CPANPLUS default config to use the site directories.
|
|
|
|
sed -e "/{'makemakerflags'}/ s/'';/'INSTALLDIRS=site';/" \
|
|
|
|
-e "/{'buildflags'}/ s/'';/'installdirs=site';/" \
|
|
|
|
-i ${DESTDIR}/usr/share/perl5/core_perl/CPANPLUS/Config.pm
|
|
|
|
|
|
|
|
# Profile script so set paths to perl scripts.
|
2011-07-05 15:17:36 +00:00
|
|
|
vinstall ${FILESDIR}/perlbin.sh 644 etc/profile.d
|
2010-11-01 10:47:21 +00:00
|
|
|
|
|
|
|
# Remove all pod files *except* those under
|
|
|
|
# /usr/share/perl5/core_perl/pod/ (FS#16488)
|
|
|
|
rm -f ${DESTDIR}/usr/share/perl5/core_perl/*.pod
|
|
|
|
for d in ${DESTDIR}/usr/share/perl5/core_perl/*; do
|
|
|
|
if [ -d $d -a $(basename $d) != "pod" ]; then
|
|
|
|
find $d -name *.pod -delete
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
find ${DESTDIR}/usr/lib -name *.pod -delete
|
|
|
|
find ${DESTDIR} -name .packlist -delete
|
|
|
|
|
|
|
|
# Make a symlink so that libperl.so is accesible.
|
2011-09-30 16:08:46 +00:00
|
|
|
cd ${DESTDIR}/usr/lib && \
|
|
|
|
ln -sf ./perl5/core_perl/CORE/libperl.so libperl.so
|
2009-10-15 22:57:59 +00:00
|
|
|
}
|