diff options
author | miwi <miwi@FreeBSD.org> | 2014-06-28 00:08:58 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-06-28 00:08:58 +0800 |
commit | 42c3aeaf0b6a46050a8bed019bdf17ea870ab5ab (patch) | |
tree | 6b62ce8900f3b1d0466da677d5f45403e3da8d67 /x11-fonts/junicode | |
parent | 881af55c5c8855c55a0a771147bc27929e4272a9 (diff) | |
download | freebsd-ports-gnome-42c3aeaf0b6a46050a8bed019bdf17ea870ab5ab.tar.gz freebsd-ports-gnome-42c3aeaf0b6a46050a8bed019bdf17ea870ab5ab.tar.zst freebsd-ports-gnome-42c3aeaf0b6a46050a8bed019bdf17ea870ab5ab.zip |
- Stage support
PR: 190782
Diffstat (limited to 'x11-fonts/junicode')
-rw-r--r-- | x11-fonts/junicode/Makefile | 21 | ||||
-rw-r--r-- | x11-fonts/junicode/pkg-plist | 2 |
2 files changed, 9 insertions, 14 deletions
diff --git a/x11-fonts/junicode/Makefile b/x11-fonts/junicode/Makefile index 27b0415059fe..b45395f50d26 100644 --- a/x11-fonts/junicode/Makefile +++ b/x11-fonts/junicode/Makefile @@ -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> diff --git a/x11-fonts/junicode/pkg-plist b/x11-fonts/junicode/pkg-plist index c62d36db81c6..275585e06a6e 100644 --- a/x11-fonts/junicode/pkg-plist +++ b/x11-fonts/junicode/pkg-plist @@ -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 |