diff options
author | lesi <lesi@FreeBSD.org> | 2006-03-30 17:00:25 +0800 |
---|---|---|
committer | lesi <lesi@FreeBSD.org> | 2006-03-30 17:00:25 +0800 |
commit | 945c6f18191dcb3593465d0302f5e50d3ab71fdd (patch) | |
tree | ddb210fb04b67211806b79a45b7533485125b3ae /x11 | |
parent | 7b3eaa3eca21540a06440c864cbb74816552d53c (diff) | |
download | freebsd-ports-gnome-945c6f18191dcb3593465d0302f5e50d3ab71fdd.tar.gz freebsd-ports-gnome-945c6f18191dcb3593465d0302f5e50d3ab71fdd.tar.zst freebsd-ports-gnome-945c6f18191dcb3593465d0302f5e50d3ab71fdd.zip |
Since fontconfig by default generates font cache file in directory where
this port installs charmaps, try to remove it upon uninstallation, so
removing of directory has a chance to succeed. Just in case some user
has for some reason put fonts in here, be nice and try to regenerate
cache file and remove it again only if it is empty.
Pointed out by: pointyhat via kris
Diffstat (limited to 'x11')
-rw-r--r-- | x11/XFree86-4-clients/Makefile | 2 | ||||
-rw-r--r-- | x11/XFree86-4-clients/pkg-plist | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/x11/XFree86-4-clients/Makefile b/x11/XFree86-4-clients/Makefile index 9f71dd47f505..467d6e4a7fa0 100644 --- a/x11/XFree86-4-clients/Makefile +++ b/x11/XFree86-4-clients/Makefile @@ -7,7 +7,7 @@ PORTNAME= clients PORTVERSION= 4.5.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XFREE} MASTER_SITE_SUBDIR= ${PORTVERSION} diff --git a/x11/XFree86-4-clients/pkg-plist b/x11/XFree86-4-clients/pkg-plist index f903208f6d18..b006727a7a0d 100644 --- a/x11/XFree86-4-clients/pkg-plist +++ b/x11/XFree86-4-clients/pkg-plist @@ -763,6 +763,9 @@ lib/X11/xsm/system.xsm @unexec if [ -L %D/lib/X11/app-defaults/UXTerm ]; then rm %D/lib/X11/app-defaults/UXTerm; fi @unexec if [ -L %D/lib/X11/app-defaults/XTerm-color ]; then rm %D/lib/X11/app-defaults/XTerm-color; fi @unexec if [ -L %D/lib/X11/app-defaults/XTerm ]; then rm %D/lib/X11/app-defaults/XTerm; fi +@unexec rm %D/lib/X11/fonts/util/fonts.cache-1 2>/dev/null || true +@unexec command fc-cache -v %D/lib/X11/fonts/util 2>/dev/null || true +@unexec if [ -e %D/lib/X11/fonts/util/fonts.cache-1 -a ! -s %D/lib/X11/fonts/util/fonts.cache-1 ]; then rm %D/lib/X11/fonts/util/fonts.cache-1; fi @dirrm lib/X11/fonts/util @dirrm lib/X11/icons/default @dirrm lib/X11/icons/handhelds/cursors |