1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Move post-install: to do-install:

- Support STAGEDIR
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-12-07 00:50:25 +00:00
parent 985042baef
commit a7472977f5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335796

View File

@ -28,7 +28,6 @@ PORTDOCS= README langcover.txt status.txt unicover.txt
SUB_FILES= pkg-message SUB_FILES= pkg-message
SUB_LIST= FONTSDIR=${FONTSDIR} SUB_LIST= FONTSDIR=${FONTSDIR}
NO_STAGE= yes
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLINKS} .if ${PORT_OPTIONS:MLINKS}
@ -39,22 +38,18 @@ PLIST_SUB+= FCDIR_LINKS="@comment "
.endif .endif
do-install: do-install:
${MKDIR} ${FONTSDIR}/ ${MKDIR} ${STAGEDIR}${FCDIR} ${STAGEDIR}${FONTSDIR}/
${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${FCDIR}/ ${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${FCDIR}/
${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${FONTSDIR}/ ${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/ ${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif .endif
.if ${PORT_OPTIONS:MLINKS} .if ${PORT_OPTIONS:MLINKS}
cd ${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf . cd ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf .
.endif .endif
post-install:
@${ECHO_MSG} "===> Running fc-cache" @${ECHO_MSG} "===> Running fc-cache"
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}/ -${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}/
@${ECHO_MSG} @${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk> .include <bsd.port.mk>