4ec5cab7a5
TODO: clean up the Perl build. Currently it's still using some external libraries, and it doesn't pass all its unit tests. svn path=/nixpkgs/trunk/; revision=326
17 lines
416 B
Bash
Executable file
17 lines
416 B
Bash
Executable file
#! /bin/sh
|
|
|
|
. $stdenv/setup || exit 1
|
|
|
|
tar xvfz $src || exit 1
|
|
cd perl-* || exit 1
|
|
|
|
# Perl's Configure messes with PATH. We can't have that, so we patch it.
|
|
# Yeah, this is an ugly hack.
|
|
grep -v '^paths=' Configure > Configure.tmp || exit 1
|
|
mv Configure.tmp Configure || exit 1
|
|
chmod +x Configure || exit 1
|
|
|
|
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl || exit 1
|
|
make || exit 1
|
|
make install || exit 1
|