Ploticus: Install prefabs and wrapper script.
svn path=/nixpkgs/trunk/; revision=11295
This commit is contained in:
parent
7cc6405859
commit
25ea32dc11
@ -12,4 +12,29 @@ preInstall() {
|
|||||||
|
|
||||||
preInstall=preInstall
|
preInstall=preInstall
|
||||||
|
|
||||||
|
postInstall() {
|
||||||
|
# Install the "prefabs".
|
||||||
|
ensureDir $out/share/ploticus/prefabs && \
|
||||||
|
cd .. && \
|
||||||
|
cp -rv prefabs/* $out/share/ploticus/prefabs
|
||||||
|
|
||||||
|
# Create a wrapper that knows where to find them. Debian's package
|
||||||
|
# does something similar by patching directly the C file that looks
|
||||||
|
# for `$PLOTICUS_PREFABS'.
|
||||||
|
cat > $out/bin/ploticus <<EOF
|
||||||
|
#! $SHELL -e
|
||||||
|
PLOTICUS_PREFABS="$out/share/ploticus/prefabs"
|
||||||
|
export PLOTICUS_PREFABS
|
||||||
|
exec "$out/bin/pl" \$@
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/ploticus
|
||||||
|
|
||||||
|
# Install the man pages.
|
||||||
|
cp -rv man $out
|
||||||
|
ln -s "$out/man/man1/pl.1" "$out/man/man1/ploticus.1"
|
||||||
|
}
|
||||||
|
|
||||||
|
postInstall=postInstall
|
||||||
|
|
||||||
|
|
||||||
genericBuild
|
genericBuild
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation {
|
|||||||
statistical capabilities. It allows significant user control
|
statistical capabilities. It allows significant user control
|
||||||
over colors, styles, options and details.'';
|
over colors, styles, options and details.'';
|
||||||
|
|
||||||
license = "GPL";
|
license = "GPLv2+";
|
||||||
homepage = http://ploticus.sourceforge.net/;
|
homepage = http://ploticus.sourceforge.net/;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user