2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'perl'.
|
|
|
|
pkgname=perl
|
|
|
|
version=5.10.0
|
2008-10-28 23:57:52 +01:00
|
|
|
distfiles="http://www.cpan.org/src/$pkgname-$version.tar.gz"
|
2008-10-16 05:24:32 +02:00
|
|
|
configure_script="./Configure"
|
2008-10-24 04:54:40 +02:00
|
|
|
configure_args="-Dusethreads -des -Dprefix=$XBPS_DESTDIR/$pkgname-$version/usr
|
2008-12-10 17:35:11 +01:00
|
|
|
-Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5 -Uinstallusrbinperl
|
|
|
|
-Dman1dir=$XBPS_DESTDIR/$pkgname-$version/usr/share/man/man1
|
|
|
|
-Dman3dir=$XBPS_DESTDIR/$pkgname-$version/usr/share/man/man3"
|
2008-09-28 07:18:38 +02:00
|
|
|
build_style=configure
|
2009-03-18 10:02:43 +01:00
|
|
|
make_install_target="install"
|
2008-09-28 07:18:38 +02:00
|
|
|
short_desc="Practical Extraction and Report Language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2008-10-20 16:34:27 +02:00
|
|
|
checksum=94464a0d374fa63226eee56e0bb3d35564f9d8391a1a8d9f0055805ec25f3b2e
|
2008-09-28 07:18:38 +02: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 18:39:17 +02:00
|
|
|
|
2009-02-25 06:15:20 +01:00
|
|
|
Add_dependency full glibc
|
2008-10-27 06:12:30 +01:00
|
|
|
|
|
|
|
pre_build()
|
|
|
|
{
|
|
|
|
# This fixes the definitions that the perl binary uses to look at
|
|
|
|
# prefix and not XBPS_DESTDIR/MASTERDIR.
|
|
|
|
|
|
|
|
if [ "$XBPS_DESTDIR" != "/xbps" ]; then
|
|
|
|
sed -i -e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" \
|
|
|
|
$wrksrc/config.h
|
|
|
|
fi
|
|
|
|
|
|
|
|
sed -i -e "s|/usr/usr|/usr|g" $wrksrc/config.h
|
|
|
|
|
|
|
|
if [ "$XBPS_MASTERDIR" != "/" ]; then
|
|
|
|
sed -i -e "s|$XBPS_MASTERDIR||g" $wrksrc/config.h
|
|
|
|
fi
|
|
|
|
}
|
2009-02-04 01:03:44 +01:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
# Remove hardcoded paths of XBPS_DESTDIR.
|
|
|
|
local FILES="Config.pm Config_heavy.pl .packlist"
|
|
|
|
local opmult="${xbps_machine}-linux-thread-multi"
|
2009-03-11 06:31:56 +01:00
|
|
|
local thrdir="${DESTDIR}/usr/lib/perl5/${version}/${opmult}"
|
2009-02-04 01:03:44 +01:00
|
|
|
|
|
|
|
for f in ${FILES}; do
|
2009-03-11 06:31:56 +01:00
|
|
|
sed -i -e "s|$DESTDIR||g" ${thrdir}/${f}
|
2009-02-04 01:03:44 +01:00
|
|
|
done
|
2009-03-11 06:31:56 +01:00
|
|
|
for f in $(find $DESTDIR/usr/bin/ -type f -print); do
|
|
|
|
if $(echo $f|grep -q $DESTDIR); then
|
|
|
|
sed -i -e "s|$DESTDIR||g" $f
|
2009-02-04 01:03:44 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|