mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
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.
This commit is contained in:
parent
2048a96036
commit
ed36034cff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155405
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= fontEncodings
|
||||
PORTVERSION= 4.5.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-fonts
|
||||
MASTER_SITES= ${MASTER_SITE_XFREE}
|
||||
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user