nixpkgs/pkgs/development/interpreters/perl/builder.sh
Eelco Dolstra 80ee0edb27 * Perl updated to 5.8.5.
svn path=/nixpkgs/trunk/; revision=1450
2004-09-18 21:11:58 +00:00

30 lines
896 B
Bash

. $stdenv/setup
postUnpack=postUnpack
postUnpack() {
# Perl's Configure messes with PATH. We can't have that, so we
# patch it. Yeah, this is an ugly hack.
if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
cat Configure | \
grep -v '^paths=' | \
grep -v '^locincpth=' | \
grep -v '^xlibpth=' | \
grep -v '^glibpth=' | \
grep -v '^loclibpth=' | \
grep -v '^locincpth=' | \
cat > Configure.tmp
mv Configure.tmp Configure
chmod +x Configure
fi
}
if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
GLIBC=$(cat $NIX_GCC/nix-support/orig-glibc)
extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
fi
configureScript=./Configure
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
dontAddPrefix=1
genericBuild