mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Stage support
PR: 190782
This commit is contained in:
parent
0b47527e7c
commit
f1d750f9e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359563
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= junicode
|
||||
PORTVERSION= 0.7.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11-fonts
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:S|.|-|g} \
|
||||
http://anthesphoria.net/FreeBSD/ports/distfiles/
|
||||
@ -14,26 +15,20 @@ COMMENT= Unicode/MUFI OpenType font for medievalists (Latin, IPA, Runic, Greek)
|
||||
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
NO_BUILD= yes
|
||||
USES= zip
|
||||
|
||||
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
|
||||
|
||||
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${PORTNAME}
|
||||
FONTSDIR?= lib/X11/fonts/${PORTNAME}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
@${MKDIR} ${FONTSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/fonts/*.ttf ${FONTSDIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG} "===> Running fc-cache"
|
||||
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
|
||||
@${ECHO_MSG}
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${FONTSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/fonts/*.ttf ${STAGEDIR}${PREFIX}/${FONTSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -9,6 +9,6 @@
|
||||
%%PORTDOCS%%%%DOCSDIR%%/homer_sample.pdf
|
||||
%%PORTDOCS%%%%DOCSDIR%%/homer_sample.tex
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@exec %%LOCALBASE%%/bin/fc-cache -f -v %%FONTSDIR%% || /usr/bin/true
|
||||
@unexec /bin/rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
|
||||
@dirrm %%FONTSDIR%%
|
||||
@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% 2>/dev/null || /usr/bin/true
|
||||
|
Loading…
Reference in New Issue
Block a user