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 # This fixes the definitions that the perl binary uses to look at
# prefix and not XBPS_DESTDIR/MASTERDIR. # prefix and not XBPS_DESTDIR/MASTERDIR.
$sed_cmd -i \ if [ "$XBPS_DESTDIR" != "/xbps" ]; then
-e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" \ sed -i -e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" $wrksrc/config.h
-e "s|$XBPS_MASTERDIR||g" \ fi
$wrksrc/config.h
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 version=5.10.0
distfiles="http://www.cpan.org/src/$pkgname-$version@.tar.gz" distfiles="http://www.cpan.org/src/$pkgname-$version@.tar.gz"
configure_script="./Configure" configure_script="./Configure"
configure_args="-Dusethreads -des -Dprefix=$XBPS_DESTDIR/$pkgname-$version configure_args="-Dusethreads -des -Dprefix=$XBPS_DESTDIR/$pkgname-$version/usr
-Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5" -Duselargefiles -Uusesfio -Dinstallstyle=lib/perl5 -Uinstallusrbinperl"
build_style=configure build_style=configure
short_desc="Practical Extraction and Report Language" short_desc="Practical Extraction and Report Language"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"