aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-03-30 22:39:51 +0800
committerbapt <bapt@FreeBSD.org>2014-03-30 22:39:51 +0800
commita17a93a8172e362d6a52bd683bacce46d0ef9fc0 (patch)
tree8ed48c09b55f20e7eca46435d5542ec2a2847535 /x11-fonts
parent47b682746a98282629c1608407c133b59591c9c4 (diff)
downloadfreebsd-ports-gnome-a17a93a8172e362d6a52bd683bacce46d0ef9fc0.tar.gz
freebsd-ports-gnome-a17a93a8172e362d6a52bd683bacce46d0ef9fc0.tar.zst
freebsd-ports-gnome-a17a93a8172e362d6a52bd683bacce46d0ef9fc0.zip
Support stage
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/linuxlibertine/Makefile17
-rw-r--r--x11-fonts/linuxlibertine/pkg-plist1
2 files changed, 6 insertions, 12 deletions
diff --git a/x11-fonts/linuxlibertine/Makefile b/x11-fonts/linuxlibertine/Makefile
index 29baaf6943ce..5eb67527d98e 100644
--- a/x11-fonts/linuxlibertine/Makefile
+++ b/x11-fonts/linuxlibertine/Makefile
@@ -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>
diff --git a/x11-fonts/linuxlibertine/pkg-plist b/x11-fonts/linuxlibertine/pkg-plist
index 53c136898277..7b3437cbbc34 100644
--- a/x11-fonts/linuxlibertine/pkg-plist
+++ b/x11-fonts/linuxlibertine/pkg-plist
@@ -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