mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
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)
This commit is contained in:
parent
74602cc06a
commit
2098e5e621
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156915
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user