hevea needs patching on Mac OS X (see the Darwin ports)

svn path=/nixpkgs/trunk/; revision=3454
This commit is contained in:
Martin Bravenboer 2005-07-26 16:18:14 +00:00
parent 4d22b61278
commit 478c44aef3

View File

@ -1,10 +1,19 @@
. $stdenv/setup || exit 1
set -e
. $stdenv/setup
mkdir -p $out/bin $out/lib
tar xvfz $src || exit 1
cd hevea-* || exit 1
sed s+/usr/local+$out+ Makefile > Makefile.new || exit 1
tar xvfz $src
cd hevea-*
sed s+/usr/local+$out+ Makefile > Makefile.new
mv Makefile.new Makefile
make || exit 1
make install || exit 1
if test "x$system" = "xpowerpc-darwin"; then
sed s/CPP=cpp\ -E\ -P/CPP=m4\ -E\ -E\ -P/ Makefile > Makefile.new
mv Makefile.new Makefile
fi
make
make install