2004-02-20 17:25:34 +01:00
|
|
|
#! /bin/sh -e
|
2003-11-05 13:17:48 +01:00
|
|
|
|
2004-02-20 17:25:34 +01:00
|
|
|
buildinputs="$patch"
|
|
|
|
. $stdenv/setup
|
2003-11-05 13:17:48 +01:00
|
|
|
|
2004-02-20 17:25:34 +01:00
|
|
|
tar xvfz $src
|
|
|
|
cd perl-*
|
2003-11-05 13:17:48 +01:00
|
|
|
|
|
|
|
# Perl's Configure messes with PATH. We can't have that, so we patch it.
|
|
|
|
# Yeah, this is an ugly hack.
|
2004-03-09 11:29:30 +01:00
|
|
|
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
|
2004-02-20 17:25:34 +01:00
|
|
|
|
|
|
|
patch -p1 < $srcPatch
|
2003-11-05 13:17:48 +01:00
|
|
|
|
2004-03-09 11:29:30 +01:00
|
|
|
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl
|
2004-02-20 17:25:34 +01:00
|
|
|
make
|
|
|
|
make install
|