aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/gohufont
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2014-05-11 20:22:43 +0800
committerrakuco <rakuco@FreeBSD.org>2014-05-11 20:22:43 +0800
commit51f186b86c81c817c20ceb7da753d39060092db1 (patch)
tree15db1086a11e7f51b7b22431462a65f9c61e29b3 /x11-fonts/gohufont
parent93ff34df0db71dcfce601b7564a886ab2825afca (diff)
downloadfreebsd-ports-gnome-51f186b86c81c817c20ceb7da753d39060092db1.tar.gz
freebsd-ports-gnome-51f186b86c81c817c20ceb7da753d39060092db1.tar.zst
freebsd-ports-gnome-51f186b86c81c817c20ceb7da753d39060092db1.zip
- Support staging.
- Stop calling fontconfig on installation and deinstallation: fontconfig should be smart enough to manage its cache automatically. - Stop depending on and using mkfont{dir,scale}. Even though this is not a TTF font, most programs already use freetype and fontconfig.
Diffstat (limited to 'x11-fonts/gohufont')
-rw-r--r--x11-fonts/gohufont/Makefile16
-rw-r--r--x11-fonts/gohufont/pkg-plist4
2 files changed, 4 insertions, 16 deletions
diff --git a/x11-fonts/gohufont/Makefile b/x11-fonts/gohufont/Makefile
index bbb6a1aa52b3..202f847451a4 100644
--- a/x11-fonts/gohufont/Makefile
+++ b/x11-fonts/gohufont/Makefile
@@ -2,6 +2,7 @@
PORTNAME= gohufont
PORTVERSION= 2.0
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= http://font.gohu.org/
@@ -13,21 +14,12 @@ LICENSE_NAME= Do What The Fuck You Want To Public License, Version 2
LICENSE_FILE= ${WRKSRC}/COPYING-LICENSE
LICENSE_PERMS= auto-accept dist-mirror dist-sell pkg-mirror pkg-sell
-BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
- mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
-
FONTDIR= lib/X11/fonts/${PORTNAME}
NO_BUILD= yes
-PLIST_SUB+= FONTDIR=${FONTDIR}
+PLIST_SUB= FONTDIR=${FONTDIR}
-NO_STAGE= yes
do-install:
- @${MKDIR} ${LOCALBASE}/${FONTDIR}
- @${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${LOCALBASE}/${FONTDIR}
-
-post-install:
- @cd ${LOCALBASE}/${FONTDIR} && mkfontdir
- @${CP} ${LOCALBASE}/${FONTDIR}/fonts.dir ${LOCALBASE}/${FONTDIR}/fonts.scale
- @command fc-cache -f -v ${LOCALBASE}/${FONTDIR}
+ ${MKDIR} ${STAGEDIR}${LOCALBASE}/${FONTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${STAGEDIR}${LOCALBASE}/${FONTDIR}
.include <bsd.port.mk>
diff --git a/x11-fonts/gohufont/pkg-plist b/x11-fonts/gohufont/pkg-plist
index d0c54c1828f5..1e74b8ae2e2d 100644
--- a/x11-fonts/gohufont/pkg-plist
+++ b/x11-fonts/gohufont/pkg-plist
@@ -1,5 +1,3 @@
-%%FONTDIR%%/fonts.dir
-%%FONTDIR%%/fonts.scale
%%FONTDIR%%/gohufont-11.pcf.gz
%%FONTDIR%%/gohufont-11b.pcf.gz
%%FONTDIR%%/gohufont-14.pcf.gz
@@ -8,6 +6,4 @@
%%FONTDIR%%/gohufont-uni-11b.pcf.gz
%%FONTDIR%%/gohufont-uni-14.pcf.gz
%%FONTDIR%%/gohufont-uni-14b.pcf.gz
-@unexec /bin/rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
@dirrm %%FONTDIR%%
-@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || /usr/bin/true