plan9port: 20140306 -> 2015-06-29

We were already using snapshots, but development moved to github.
Also add "9" to $out/bin as it is the recommended practice, see
install.txt
This commit is contained in:
Kovacsics Robert (NixOS-SSD2)
2015-08-24 21:55:48 +01:00
parent 4962bc3e3d
commit 195671aa70
2 changed files with 39 additions and 28 deletions
+29 -18
View File
@@ -1,23 +1,34 @@
source $stdenv/setup
tar xvfz $src
cd plan9port
echo CFLAGS=\"-I${fontconfig}/include -I${libXt}/include\" > LOCAL.config
echo X11=\"${libXt}/include\" >> LOCAL.config
for p in $patches; do
echo "applying patch $p"
patch -p1 < $p
done
export PLAN9=$out/plan9
mkdir -p $PLAN9
for f in `grep -l -r /usr/local/plan9`; do
sed "s,/usr/local/plan9,${PLAN9},g" -i $f
done
configurePhase()
{
echo CFLAGS=\"-I${fontconfig}/include -I${libXt}/include\" > LOCAL.config
echo X11=\"${libXt}/include\" >> LOCAL.config
./INSTALL -r $PLAN9
cp -R * $PLAN9
for f in `grep -l -r /usr/local/plan9`; do
sed "s,/usr/local/plan9,${PLAN9},g" -i $f
done
}
buildPhase()
{
mkdir -p $PLAN9
./INSTALL -b $PLAN9
}
installPhase()
{
./INSTALL -c -r $PLAN9
# Copy sources
cp -R * $PLAN9
# Copy the `9' utility. This way you can use
# $ 9 awk
# to use the plan 9 awk
mkdir $out/bin
ln -s $PLAN9/bin/9 $out/bin
}
genericBuild