* Allow Perl to be built using the native stdenv.

svn path=/nixpkgs/trunk/; revision=820
This commit is contained in:
Eelco Dolstra 2004-03-09 10:29:30 +00:00
parent 1b39a96d37
commit e8d2b1cc36

View File

@ -8,21 +8,21 @@ cd perl-*
# Perl's Configure messes with PATH. We can't have that, so we patch it. # Perl's Configure messes with PATH. We can't have that, so we patch it.
# Yeah, this is an ugly hack. # Yeah, this is an ugly hack.
cat Configure | \ if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
grep -v '^paths=' | \ cat Configure | \
grep -v '^locincpth=' | \ grep -v '^paths=' | \
grep -v '^xlibpth=' | \ grep -v '^locincpth=' | \
grep -v '^glibpth=' | \ grep -v '^xlibpth=' | \
grep -v '^loclibpth=' | \ grep -v '^glibpth=' | \
grep -v '^locincpth=' | \ grep -v '^loclibpth=' | \
cat > Configure.tmp grep -v '^locincpth=' | \
mv Configure.tmp Configure cat > Configure.tmp
chmod +x Configure mv Configure.tmp Configure
chmod +x Configure
fi
patch -p1 < $srcPatch patch -p1 < $srcPatch
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl \ ./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl
-Dlocincpth="$NIX_LIBC_INCLUDES" \
-Dloclibpth="$NIX_LIBC_LIBS"
make make
make install make install