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'