mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- 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.
This commit is contained in:
parent
8172329573
commit
97ace078fa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353680
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user