aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authorlesi <lesi@FreeBSD.org>2006-02-07 18:00:25 +0800
committerlesi <lesi@FreeBSD.org>2006-02-07 18:00:25 +0800
commit829a46fe484b0faa1120682dab84923b671d0a1d (patch)
tree0bc2b0aa741e526c67fadf82ed6127f2582f87d9 /x11-fonts
parent802cbea2e1bdf9bbd3dd1b0f610965a54b9f6c5b (diff)
downloadfreebsd-ports-gnome-829a46fe484b0faa1120682dab84923b671d0a1d.tar.gz
freebsd-ports-gnome-829a46fe484b0faa1120682dab84923b671d0a1d.tar.zst
freebsd-ports-gnome-829a46fe484b0faa1120682dab84923b671d0a1d.zip
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