From 1b0a3893b083e4120a1d781cf5ea7a5f1e628179 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 12 Apr 2009 18:07:22 +0300 Subject: [PATCH] ghostscript: made symlink `gs` to `gsc` if `gs` wasn't installed already --- graphic/ghostscript/ghostscript.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/graphic/ghostscript/ghostscript.conf b/graphic/ghostscript/ghostscript.conf index 7a1686b02..9ef1bbff5 100644 --- a/graphic/ghostscript/ghostscript.conf +++ b/graphic/ghostscript/ghostscript.conf @@ -14,3 +14,11 @@ makeinstopt="$makeopt soinstall" var_append makeopt ' ' 'so' + +ghostscript_install_gs() { + if [ ! -e "$root$bindir/gs" ]; then + echo_warning 'gs not installed, making a symlink to gsc instead.' + ln -s gsc "$root$bindir/gs" + fi +} +hook_add postmake 5 'ghostscript_install_gs'