summaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorDejan Lesjak <lesi@FreeBSD.org>2006-02-07 10:00:25 +0000
committerDejan Lesjak <lesi@FreeBSD.org>2006-02-07 10:00:25 +0000
commited36034cff4aeab7e2c916f60a85c4596a608b89 (patch)
treef5031341c476793f76d3f4a1e29e5557ae4a0dd1 /x11-fonts
parentTake care of font cache files on installation and uninstallation of port: (diff)
Since fontconfig by default generates font cache files in directories where
this port installs encodings, try to remove them upon uninstallation, so removing of directories has a chance to succeed. Just in case some user has for some reason put fonts under these directories, be nice and try to regenerate cache file and remove it again only if it is empty.
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/XFree86-4-fontEncodings/Makefile1
-rw-r--r--x11-fonts/XFree86-4-fontEncodings/pkg-plist6
2 files changed, 7 insertions, 0 deletions
diff --git a/x11-fonts/XFree86-4-fontEncodings/Makefile b/x11-fonts/XFree86-4-fontEncodings/Makefile
index 089c9287a851..71be1f74c2b7 100644
--- a/x11-fonts/XFree86-4-fontEncodings/Makefile
+++ b/x11-fonts/XFree86-4-fontEncodings/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fontEncodings
PORTVERSION= 4.5.0
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= ${PORTVERSION}
diff --git a/x11-fonts/XFree86-4-fontEncodings/pkg-plist b/x11-fonts/XFree86-4-fontEncodings/pkg-plist
index 41210b00ce0e..262ffd5cc386 100644
--- a/x11-fonts/XFree86-4-fontEncodings/pkg-plist
+++ b/x11-fonts/XFree86-4-fontEncodings/pkg-plist
@@ -46,5 +46,11 @@ lib/X11/fonts/encodings/sun_eu_greek.enc
lib/X11/fonts/encodings/tcvn-0.enc
lib/X11/fonts/encodings/tis620-2.enc
lib/X11/fonts/encodings/viscii1.1-1.enc.gz
+@unexec rm %D/lib/X11/fonts/encodings/large/fonts.cache-1 2>/dev/null || true
+@unexec command fc-cache -v %D/lib/X11/fonts/encodings/large 2>/dev/null || true
+@unexec if [ -e %D/lib/X11/fonts/encodings/large/fonts.cache-1 -a ! -s %D/lib/X11/fonts/encodings/large/fonts.cache-1 ]; then rm %D/lib/X11/fonts/encodings/large/fonts.cache-1; fi
@dirrm lib/X11/fonts/encodings/large
+@unexec rm %D/lib/X11/fonts/encodings/fonts.cache-1 2>/dev/null || true
+@unexec command fc-cache -v %D/lib/X11/fonts/encodings 2>/dev/null || true
+@unexec if [ -e %D/lib/X11/fonts/encodings/fonts.cache-1 -a ! -s %D/lib/X11/fonts/encodings/fonts.cache-1 ]; then rm %D/lib/X11/fonts/encodings/fonts.cache-1; fi
@dirrm lib/X11/fonts/encodings