2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup
|
2005-01-22 00:19:27 +00:00
|
|
|
|
2009-04-22 23:04:18 +00:00
|
|
|
PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/perl5/site_perl"
|
2005-01-22 00:19:27 +00:00
|
|
|
|
|
|
|
perlFlags=
|
2009-02-12 15:56:35 +00:00
|
|
|
for i in $(IFS=:; echo $PERL5LIB); do
|
2005-01-22 00:19:27 +00:00
|
|
|
perlFlags="$perlFlags -I$i"
|
|
|
|
done
|
|
|
|
|
2008-10-20 03:58:49 +00:00
|
|
|
oldPreConfigure="$preConfigure"
|
2005-01-22 00:19:27 +00:00
|
|
|
preConfigure() {
|
|
|
|
|
2008-10-20 03:58:49 +00:00
|
|
|
eval "$oldPreConfigure"
|
|
|
|
|
2005-01-22 00:19:27 +00:00
|
|
|
find . | while read fn; do
|
|
|
|
if test -f "$fn"; then
|
|
|
|
first=$(dd if="$fn" count=2 bs=1 2> /dev/null)
|
|
|
|
if test "$first" = "#!"; then
|
|
|
|
echo "patching $fn..."
|
2019-07-02 17:36:41 +00:00
|
|
|
sed -i "$fn" -e "s|^#\!\(.*\bperl\b.*\)$|#\!\1$perlFlags|"
|
2005-01-22 00:19:27 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2019-05-03 10:53:36 +00:00
|
|
|
perl Makefile.PL PREFIX=$out INSTALLDIRS=site $makeMakerFlags PERL=$(type -P perl) FULLPERL=\"$fullperl/bin/perl\"
|
2005-01-22 00:19:27 +00:00
|
|
|
}
|
|
|
|
|
2005-03-10 12:49:37 +00:00
|
|
|
if test -n "$perlPreHook"; then
|
2007-03-13 13:32:17 +00:00
|
|
|
eval "$perlPreHook"
|
2005-03-10 12:49:37 +00:00
|
|
|
fi
|
|
|
|
|
2005-01-22 00:19:27 +00:00
|
|
|
genericBuild
|
2005-03-10 12:49:37 +00:00
|
|
|
|
|
|
|
if test -n "$perlPostHook"; then
|
2007-03-13 13:32:17 +00:00
|
|
|
eval "$perlPostHook"
|
2005-12-05 14:11:09 +00:00
|
|
|
fi
|