perl: works in the chroot now.

--HG--
extra : convert_revision : d2ec570e3c42559f78715fb180300e7beb17b007
This commit is contained in:
Juan RP 2008-10-24 04:54:40 +02:00
parent e1d3deafe6
commit f0a7ea4d3c
2 changed files with 11 additions and 6 deletions

View File

@ -1,7 +1,12 @@
# This fixes the definitions that the perl binary uses to look at
# prefix and not XBPS_DESTDIR/MASTERDIR.
$sed_cmd -i \
-e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" \
-e "s|$XBPS_MASTERDIR||g" \
$wrksrc/config.h
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

View File

@ -3,8 +3,8 @@ pkgname=perl
version=5.10.0
distfiles="http://www.cpan.org/src/$pkgname-$version@.tar.gz"
configure_script="./Configure"
configure_args="-Dusethreads -des -Dprefix=$XBPS_DESTDIR/$pkgname-$version
-Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5"
configure_args="-Dusethreads -des -Dprefix=$XBPS_DESTDIR/$pkgname-$version/usr
-Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5 -Uinstallusrbinperl"
build_style=configure
short_desc="Practical Extraction and Report Language"
maintainer="Juan RP <xtraeme@gmail.com>"