1: Stagify.

2: use @fc.

Approved by:	portmgr@ (blanket approval)
This commit is contained in:
Vanilla I. Shu 2014-07-04 15:49:19 +00:00
parent 6acc56d7fb
commit 0296e57dc1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360638
2 changed files with 3 additions and 10 deletions

View File

@ -29,7 +29,6 @@ FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME}
WRKSRC= ${WRKDIR}/src
NO_STAGE= yes
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,/usr/share/${PORTNAME},${DATADIR},g' \
setup.py \
@ -49,11 +48,7 @@ post-patch:
@cd ${WRKSRC} && ${RM} -fr test/*.bak example/*.bak
post-install:
@${MKDIR} ${FONTSDIR}
@${INSTALL_DATA} ${WRKSRC}/fonts/* ${FONTSDIR}
@${ECHO_MSG} "===> Running fc-cache"
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
@${ECHO_MSG}
${CAT} ${PKGMESSAGE}
@${MKDIR} ${STAGEDIR}${FONTSDIR}
@${INSTALL_DATA} ${WRKSRC}/fonts/* ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>

View File

@ -230,6 +230,4 @@ bin/conkyForecast-SunsetSunriseCountdown
@dirrm %%DATADIR%%/images
@dirrm %%DATADIR%%/example
@dirrm %%DATADIR%%
@unexec rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
@dirrm %%FONTSDIR%%
@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || /usr/bin/true
@fc %%FONTSDIR%%