diff options
author | olgeni <olgeni@FreeBSD.org> | 2006-03-27 01:49:22 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2006-03-27 01:49:22 +0800 |
commit | 6db61be23fec7fe44840fb360ad3b71a9e6c7d7e (patch) | |
tree | 5ee693d3d62a13cde30c9436081f4b88ce1fea9b /x11-fonts/urwfonts | |
parent | 22a63468a6a1f2597f166b5c2322ff4052b072f4 (diff) | |
download | freebsd-ports-gnome-6db61be23fec7fe44840fb360ad3b71a9e6c7d7e.tar.gz freebsd-ports-gnome-6db61be23fec7fe44840fb360ad3b71a9e6c7d7e.tar.zst freebsd-ports-gnome-6db61be23fec7fe44840fb360ad3b71a9e6c7d7e.zip |
Add fc-cache handling.
Obtained from: Dejan Lesjak <dejan.lesjak(at)ijs.si>
Diffstat (limited to 'x11-fonts/urwfonts')
-rw-r--r-- | x11-fonts/urwfonts/Makefile | 2 | ||||
-rw-r--r-- | x11-fonts/urwfonts/pkg-plist | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/x11-fonts/urwfonts/Makefile b/x11-fonts/urwfonts/Makefile index 7cc6ba1404c8..377ea07a9b3c 100644 --- a/x11-fonts/urwfonts/Makefile +++ b/x11-fonts/urwfonts/Makefile @@ -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> diff --git a/x11-fonts/urwfonts/pkg-plist b/x11-fonts/urwfonts/pkg-plist index 72d1e34264c1..2172c665385d 100644 --- a/x11-fonts/urwfonts/pkg-plist +++ b/x11-fonts/urwfonts/pkg-plist @@ -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 |