mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Support stage
This commit is contained in:
parent
caf1a6cd95
commit
5198159578
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349625
@ -14,6 +14,8 @@ COMMENT= Linux Libertine Open Fonts
|
||||
LICENSE= GPLv2 LINUXLIBERTINE OFL10
|
||||
LICENSE_COMB= multi
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
||||
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
||||
|
||||
@ -37,21 +39,14 @@ PORTDOCS= Bugs.txt \
|
||||
Readme.txt \
|
||||
Readme-TEX.txt
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
${MKDIR} ${FONTSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${FONTSDIR}
|
||||
.for ext in ttf otf
|
||||
${INSTALL_DATA} ${WRKSRC}/Fonts/*.${ext} ${FONTSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/Fonts/*.${ext} ${STAGEDIR}${FONTSDIR}
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for i in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Running fc-cache"
|
||||
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -18,7 +18,6 @@
|
||||
%%FONTSDIR%%/LinLibertine_Re-4.7.5.ttf
|
||||
%%FONTSDIR%%/LinBiolinum_Sl-0.4.9.otf
|
||||
%%FONTSDIR%%/LinBiolinum_Sl-0.4.9.ttf
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
@unexec /bin/rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
|
||||
@dirrmtry %%FONTSDIR%%
|
||||
@exec %%LOCALBASE%%/bin/fc-cache -f -v %%FONTSDIR%% || /usr/bin/true
|
||||
|
Loading…
Reference in New Issue
Block a user