1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +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:
Dejan Lesjak 2006-02-07 10:00:25 +00:00
parent 2048a96036
commit ed36034cff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155405
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= fontEncodings
PORTVERSION= 4.5.0
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= ${PORTVERSION}

View File

@ -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