1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: use @fcfontsdir.
This commit is contained in:
Vanilla I. Shu 2014-07-04 15:00:33 +00:00
parent fd7eddfebe
commit 12ae62842c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360632
2 changed files with 4 additions and 15 deletions

View File

@ -19,12 +19,8 @@ USES= zip
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
FONTNAME= ${PORTNAME}
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
NO_BUILD= yes
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
FCCACHE_CMD= ${LOCALBASE}/bin/fc-cache -f -v
NO_STAGE= yes
post-extract:
@${MKDIR} ${WRKSRC}/
@${MV} ${WRKDIR}/kaputaunicode.ttf ${WRKSRC}/kaputa.ttf
@ -33,9 +29,7 @@ do-build:
@cd ${WRKSRC}/ && ${MKFONTSCL_CMD} && ${MKFONTDIR_CMD}
do-install:
@${INSTALL} -d ${FONTSDIR}/
@${INSTALL_DATA} ${WRKSRC}/* ${FONTSDIR}/
@${ECHO_MSG} "===> Running fc-cache"
-${FCCACHE_CMD} ${FONTSDIR}
@${INSTALL} -d ${STAGEDIR}${FONTSDIR}/
@${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${FONTSDIR}/
.include <bsd.port.mk>

View File

@ -1,7 +1,2 @@
%%FONTSDIR%%/fonts.dir
%%FONTSDIR%%/fonts.scale
%%FONTSDIR%%/kaputa.ttf
@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
@unexec rm -f %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || true
@unexec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || true
@dirrm %%FONTSDIR%%
@fcfontsdir %%FONTSDIR%%