Add fc-cache handling.

Obtained from:	Dejan Lesjak <dejan.lesjak(at)ijs.si>
This commit is contained in:
Jimmy Olgeni 2006-03-26 17:49:22 +00:00
parent 382e6c0e1e
commit b09702dc34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158164
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= urwfonts
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= http://www.gimp.org/
DISTNAME= urw-fonts
@ -18,6 +19,7 @@ NO_WRKSUBDIR= yes
USE_X_PREFIX= yes
post-install:
@command fc-cache -v ${PREFIX}/lib/X11/fonts/URW || true
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -108,4 +108,8 @@ lib/X11/fonts/URW/z003034l.pfb
lib/X11/fonts/URW/z003034l.pfm
lib/X11/fonts/URW/fonts.dir_fndry_is_urw
lib/X11/fonts/URW/fonts.scale_fndry_is_urw
@exec command fc-cache -v %D/lib/X11/fonts/URW 2>/dev/null || true
@unexec rm %D/lib/X11/fonts/URW/fonts.cache-1 2>/dev/null || true
@unexec command fc-cache -v %D/lib/X11/fonts/URW 2>/dev/null || true
@unexec if [ -e %D/lib/X11/fonts/URW/fonts.cache-1 -a ! -s %D/lib/X11/fonts/URW/fonts.cache-1 ]; then rm %D/lib/X11/fonts/URW/fonts.cache-1; fi
@dirrm lib/X11/fonts/URW