diff options
author | Dejan Lesjak <lesi@FreeBSD.org> | 2006-03-01 13:36:46 +0000 |
---|---|---|
committer | Dejan Lesjak <lesi@FreeBSD.org> | 2006-03-01 13:36:46 +0000 |
commit | 2098e5e6216843b6ea7708d5ecada8a5aadb7366 (patch) | |
tree | 96d17b48c4eb658932b1f8d220fb0020efec204a /x11 | |
parent | 74602cc06a6003438aefc9082b2d694ec02f58e5 (diff) | |
download | freebsd-ports-2098e5e6216843b6ea7708d5ecada8a5aadb7366.zip |
Since fontconfig by default generates font cache files in directories where
this port installs charmaps, 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.
Pointed out by: pointyhat via kris
Approved by: portmgr (kris)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xorg-clients/Makefile | 2 | ||||
-rw-r--r-- | x11/xorg-clients/pkg-plist | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/x11/xorg-clients/Makefile b/x11/xorg-clients/Makefile index 567cea88143d..08c67a0ee6d6 100644 --- a/x11/xorg-clients/Makefile +++ b/x11/xorg-clients/Makefile @@ -7,7 +7,7 @@ PORTNAME= xorg-clients PORTVERSION= 6.9.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XORG} MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src diff --git a/x11/xorg-clients/pkg-plist b/x11/xorg-clients/pkg-plist index 123c207d1782..bfe441660a93 100644 --- a/x11/xorg-clients/pkg-plist +++ b/x11/xorg-clients/pkg-plist @@ -808,4 +808,7 @@ lib/X11/xsm/system.xsm @dirrm lib/X11/icons/handhelds @dirrm lib/X11/icons @dirrm lib/X11/xinit -@dirrmtry lib/X11/fonts/util +@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 |