aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-02-15 03:43:04 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-02-15 03:43:04 +0800
commitd2c100448f700b8045733fdeb120ae805aad4056 (patch)
tree022090d136b3745c42bf50999dbb106218b446fc
parentcd890aafdae0b5fb267d43733a073ed1d8a382e9 (diff)
downloadfreebsd-ports-gnome-d2c100448f700b8045733fdeb120ae805aad4056.tar.gz
freebsd-ports-gnome-d2c100448f700b8045733fdeb120ae805aad4056.tar.zst
freebsd-ports-gnome-d2c100448f700b8045733fdeb120ae805aad4056.zip
- Remove fontconfig from dependency list
- Turn LINKS option on by default - Update PLIST and PLIST_SUB: do not use _REL suffix - Simplify Makefile - Cosmetic change - Bump PORTREVISION for dependency and package change
-rw-r--r--x11-fonts/dejavu/Makefile40
-rw-r--r--x11-fonts/dejavu/pkg-plist75
2 files changed, 51 insertions, 64 deletions
diff --git a/x11-fonts/dejavu/Makefile b/x11-fonts/dejavu/Makefile
index f032f11d5d3a..ac1fd80fc1ed 100644
--- a/x11-fonts/dejavu/Makefile
+++ b/x11-fonts/dejavu/Makefile
@@ -3,7 +3,7 @@
PORTNAME= dejavu
PORTVERSION= 2.34
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-fonts
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
@@ -11,51 +11,35 @@ DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Bitstream Vera Fonts clone with a wider range of characters
-BUILD_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
- ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+BUILD_DEPENDS= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
-RUN_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig
OPTIONS_DEFINE= DOCS LINKS
+OPTIONS_DEFAULT=LINKS
+OPTIONS_SUB= yes
LINKS_DESC= Install links of configuration files in conf.d
USE_BZIP2= yes
-FCDIR= ${PREFIX}/${FCDIR_REL}
-FCDIR_REL?= etc/fonts/conf.avail
-FONTSDIR= ${PREFIX}/${FONTSDIR_REL}
-FONTSDIR_REL?= lib/X11/fonts/${PORTNAME}
-PLIST_SUB= FCDIR_REL=${FCDIR_REL} FONTSDIR_REL=${FONTSDIR_REL}
+PLIST_SUB= FCDIR=${FCDIR} FCDIR_LINKS=${FCDIR_LINKS} FONTSDIR=${FONTSDIR}
PORTDOCS= README langcover.txt status.txt unicover.txt
SUB_FILES= pkg-message
SUB_LIST= FONTSDIR=${FONTSDIR}
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MLINKS}
-FCDIR_LINKS= ${FCDIR_REL:S|conf.avail|conf.d|}
-PLIST_SUB+= FCDIR_LINKS="${FCDIR_LINKS}"
-.else
-PLIST_SUB+= FCDIR_LINKS="@comment "
-.endif
+FCDIR?= etc/fonts/conf.avail
+FCDIR_LINKS= ${FCDIR:S|conf.avail|conf.d|}
+FONTSDIR?= lib/X11/fonts/${PORTNAME}
do-build:
@cd ${WRKSRC}/ && ${LOCALBASE}/bin/mkfontscale
@cd ${WRKSRC}/ && ${LOCALBASE}/bin/mkfontdir
do-install:
- ${MKDIR} ${STAGEDIR}${FCDIR}/ ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ ${STAGEDIR}${FONTSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${FCDIR}/
- ${INSTALL_DATA} ${WRKSRC}/fonts.* ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
-.if ${PORT_OPTIONS:MDOCS}
+ cd ${STAGEDIR}${PREFIX}/ && ${MKDIR} ${FCDIR}/ ${FCDIR_LINKS}/ ${FONTSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${STAGEDIR}${PREFIX}/${FCDIR}/
+ cd ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf .
+ ${INSTALL_DATA} ${WRKSRC}/fonts.* ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${PREFIX}/${FONTSDIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
-.endif
-.if ${PORT_OPTIONS:MLINKS}
- cd ${STAGEDIR}${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf .
-.endif
- @${ECHO_MSG} "===> Running fc-cache"
- -${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}/
- @${ECHO_MSG}
.include <bsd.port.mk>
diff --git a/x11-fonts/dejavu/pkg-plist b/x11-fonts/dejavu/pkg-plist
index efb7290041b7..f050d519f8c1 100644
--- a/x11-fonts/dejavu/pkg-plist
+++ b/x11-fonts/dejavu/pkg-plist
@@ -1,36 +1,39 @@
-%%FCDIR_REL%%/20-unhint-small-dejavu-sans-mono.conf
-%%FCDIR_REL%%/20-unhint-small-dejavu-sans.conf
-%%FCDIR_REL%%/20-unhint-small-dejavu-serif.conf
-%%FCDIR_REL%%/57-dejavu-sans-mono.conf
-%%FCDIR_REL%%/57-dejavu-sans.conf
-%%FCDIR_REL%%/57-dejavu-serif.conf
-%%FCDIR_LINKS%%/20-unhint-small-dejavu-sans-mono.conf
-%%FCDIR_LINKS%%/20-unhint-small-dejavu-sans.conf
-%%FCDIR_LINKS%%/20-unhint-small-dejavu-serif.conf
-%%FCDIR_LINKS%%/57-dejavu-sans-mono.conf
-%%FCDIR_LINKS%%/57-dejavu-sans.conf
-%%FCDIR_LINKS%%/57-dejavu-serif.conf
-%%FONTSDIR_REL%%/DejaVuSans-Bold.ttf
-%%FONTSDIR_REL%%/DejaVuSans-BoldOblique.ttf
-%%FONTSDIR_REL%%/DejaVuSans-ExtraLight.ttf
-%%FONTSDIR_REL%%/DejaVuSans-Oblique.ttf
-%%FONTSDIR_REL%%/DejaVuSans.ttf
-%%FONTSDIR_REL%%/DejaVuSansCondensed-Bold.ttf
-%%FONTSDIR_REL%%/DejaVuSansCondensed-BoldOblique.ttf
-%%FONTSDIR_REL%%/DejaVuSansCondensed-Oblique.ttf
-%%FONTSDIR_REL%%/DejaVuSansCondensed.ttf
-%%FONTSDIR_REL%%/DejaVuSansMono-Bold.ttf
-%%FONTSDIR_REL%%/DejaVuSansMono-BoldOblique.ttf
-%%FONTSDIR_REL%%/DejaVuSansMono-Oblique.ttf
-%%FONTSDIR_REL%%/DejaVuSansMono.ttf
-%%FONTSDIR_REL%%/DejaVuSerif-Bold.ttf
-%%FONTSDIR_REL%%/DejaVuSerif-BoldItalic.ttf
-%%FONTSDIR_REL%%/DejaVuSerif-Italic.ttf
-%%FONTSDIR_REL%%/DejaVuSerif.ttf
-%%FONTSDIR_REL%%/DejaVuSerifCondensed-Bold.ttf
-%%FONTSDIR_REL%%/DejaVuSerifCondensed-BoldItalic.ttf
-%%FONTSDIR_REL%%/DejaVuSerifCondensed-Italic.ttf
-%%FONTSDIR_REL%%/DejaVuSerifCondensed.ttf
-%%FONTSDIR_REL%%/fonts.dir
-%%FONTSDIR_REL%%/fonts.scale
-@dirrm %%FONTSDIR_REL%%
+%%FCDIR%%/20-unhint-small-dejavu-sans-mono.conf
+%%FCDIR%%/20-unhint-small-dejavu-sans.conf
+%%FCDIR%%/20-unhint-small-dejavu-serif.conf
+%%FCDIR%%/57-dejavu-sans-mono.conf
+%%FCDIR%%/57-dejavu-sans.conf
+%%FCDIR%%/57-dejavu-serif.conf
+%%LINKS%%%%FCDIR_LINKS%%/20-unhint-small-dejavu-sans-mono.conf
+%%LINKS%%%%FCDIR_LINKS%%/20-unhint-small-dejavu-sans.conf
+%%LINKS%%%%FCDIR_LINKS%%/20-unhint-small-dejavu-serif.conf
+%%LINKS%%%%FCDIR_LINKS%%/57-dejavu-sans-mono.conf
+%%LINKS%%%%FCDIR_LINKS%%/57-dejavu-sans.conf
+%%LINKS%%%%FCDIR_LINKS%%/57-dejavu-serif.conf
+%%FONTSDIR%%/DejaVuSans-Bold.ttf
+%%FONTSDIR%%/DejaVuSans-BoldOblique.ttf
+%%FONTSDIR%%/DejaVuSans-ExtraLight.ttf
+%%FONTSDIR%%/DejaVuSans-Oblique.ttf
+%%FONTSDIR%%/DejaVuSans.ttf
+%%FONTSDIR%%/DejaVuSansCondensed-Bold.ttf
+%%FONTSDIR%%/DejaVuSansCondensed-BoldOblique.ttf
+%%FONTSDIR%%/DejaVuSansCondensed-Oblique.ttf
+%%FONTSDIR%%/DejaVuSansCondensed.ttf
+%%FONTSDIR%%/DejaVuSansMono-Bold.ttf
+%%FONTSDIR%%/DejaVuSansMono-BoldOblique.ttf
+%%FONTSDIR%%/DejaVuSansMono-Oblique.ttf
+%%FONTSDIR%%/DejaVuSansMono.ttf
+%%FONTSDIR%%/DejaVuSerif-Bold.ttf
+%%FONTSDIR%%/DejaVuSerif-BoldItalic.ttf
+%%FONTSDIR%%/DejaVuSerif-Italic.ttf
+%%FONTSDIR%%/DejaVuSerif.ttf
+%%FONTSDIR%%/DejaVuSerifCondensed-Bold.ttf
+%%FONTSDIR%%/DejaVuSerifCondensed-BoldItalic.ttf
+%%FONTSDIR%%/DejaVuSerifCondensed-Italic.ttf
+%%FONTSDIR%%/DejaVuSerifCondensed.ttf
+%%FONTSDIR%%/fonts.dir
+%%FONTSDIR%%/fonts.scale
+@dirrm %%FONTSDIR%%
+%%LINKS%%@dirrmtry %%FCDIR_LINKS%%
+@dirrmtry %%FCDIR%%
+@dirrmtry etc/fonts