diff options
Diffstat (limited to 'x11-fonts/xorg-fonts-type1')
-rw-r--r-- | x11-fonts/xorg-fonts-type1/Makefile | 3 | ||||
-rw-r--r-- | x11-fonts/xorg-fonts-type1/pkg-plist | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/x11-fonts/xorg-fonts-type1/Makefile b/x11-fonts/xorg-fonts-type1/Makefile index 50e3db6d1e92..a9278dd8d3bd 100644 --- a/x11-fonts/xorg-fonts-type1/Makefile +++ b/x11-fonts/xorg-fonts-type1/Makefile @@ -27,6 +27,9 @@ EXTRA_PATCHES= ${CF_PATCHES} XBUILD_DIRS= fonts/encodings fonts/scaled/Type1 XINSTALL_DIRS= fonts/scaled/Type1 +post-install: + @command fc-cache ${PREFIX}/lib/X11/fonts/Type1 || true + .include "${.CURDIR}/../../x11-servers/xorg-server/Makefile.inc" .include <bsd.port.pre.mk> .if ${X_WINDOW_SYSTEM:L} != xorg diff --git a/x11-fonts/xorg-fonts-type1/pkg-plist b/x11-fonts/xorg-fonts-type1/pkg-plist index a961d728d9da..cc63120c0a1a 100644 --- a/x11-fonts/xorg-fonts-type1/pkg-plist +++ b/x11-fonts/xorg-fonts-type1/pkg-plist @@ -58,5 +58,8 @@ lib/X11/fonts/Type1/l049033t.afm lib/X11/fonts/Type1/l049033t.pfa lib/X11/fonts/Type1/l049036t.afm lib/X11/fonts/Type1/l049036t.pfa -@unexec rm %D/lib/X11/fonts/Type1/fonts.cache-1 2>/dev/null || /usr/bin/true +@exec command fc-cache %D/lib/X11/fonts/Type1 2>/dev/null || true +@unexec rm %D/lib/X11/fonts/Type1/fonts.cache-1 2>/dev/null || true +@unexec command fc-cache %D/lib/X11/fonts/Type1 2>/dev/null || true +@unexec if [ -e %D/lib/X11/fonts/Type1/fonts.cache-1 -a ! -s %D/lib/X11/fonts/Type1/fonts.cache-1 ]; then rm %D/lib/X11/fonts/Type1/fonts.cache-1; fi @dirrmtry lib/X11/fonts/Type1 |