patch-modules_xttfm_ttfm 1.2 KB

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-modules_xttfm_ttfm,v 1.4 2015/03/31 09:44:48 ajacoutot Exp $
  2. --- modules/xttfm.ttfm.orig Tue Nov 4 00:08:32 2003
  3. +++ modules/xttfm.ttfm Mon Mar 30 16:36:08 2015
  4. @@ -28,7 +28,7 @@ export VERSION; VERSION=0.9.3
  5. export PREFIX; PREFIX=/usr/local
  6. export X11BASE; X11BASE=/usr/X11R6
  7. export PATH; PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PREFIX/bin:$PREFIX/sbin:$X11BASE/bin
  8. -export TEMPFILE; TEMPFILE="`mktemp /tmp/ttfm.tmpXXX`"
  9. +export TEMPFILE; TEMPFILE="`mktemp /tmp/ttfm.tmp.XXXXXXXXXX`"
  10. export DefaultFontPath; DefaultFontPath=$PREFIX/share/fonts/TrueType
  11. export XTTFFONTPATH; XTTFFONTPATH="${X11BASE}/lib/X11/fonts/TrueType"
  12. export TTFINFOPATH; TTFINFOPATH="${PREFIX}/bin/ttfinfo"
  13. @@ -108,11 +108,6 @@ remove_fonts()
  14. sed -e "/$ALIASPATTERN/d" $XTTFFONTPATH/fonts.alias > $TEMPFILE
  15. mv -f $TEMPFILE $XTTFFONTPATH/fonts.alias
  16. - # Remove font files.
  17. - # We only remove those fonts in $DefaultFontPath which are symbolic.
  18. - filetype=`file "$DefaultFontPath/$targetname" |grep -e "^$DefaultFontPath/$targetname: symbolic link to"`
  19. - [ ! "X$filetype" = "X" ] && rm -f "$DefaultFontPath/$targetname"
  20. - rm -f "$XTTFFONTPATH/$targetname"
  21. done
  22. }