aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/dejavu
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2010-09-02 21:20:43 +0800
committerpav <pav@FreeBSD.org>2010-09-02 21:20:43 +0800
commit8e50fba88e523d00bfbecde440eb850d7fd25f80 (patch)
tree2ccaaed2c68b5c4b5e22cb33371711c19ca6a0e3 /x11-fonts/dejavu
parente499865392b649c9cbbaacd14511960622c23cb3 (diff)
downloadfreebsd-ports-gnome-8e50fba88e523d00bfbecde440eb850d7fd25f80.tar.gz
freebsd-ports-gnome-8e50fba88e523d00bfbecde440eb850d7fd25f80.tar.zst
freebsd-ports-gnome-8e50fba88e523d00bfbecde440eb850d7fd25f80.zip
- Update to 2.32
- Install fontconfig configuration files PR: ports/149986 Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> (maintainer)
Diffstat (limited to 'x11-fonts/dejavu')
-rw-r--r--x11-fonts/dejavu/Makefile29
-rw-r--r--x11-fonts/dejavu/distinfo6
-rw-r--r--x11-fonts/dejavu/pkg-plist12
3 files changed, 38 insertions, 9 deletions
diff --git a/x11-fonts/dejavu/Makefile b/x11-fonts/dejavu/Makefile
index f0a85e3fbb2d..c56771f6ad51 100644
--- a/x11-fonts/dejavu/Makefile
+++ b/x11-fonts/dejavu/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= dejavu
-PORTVERSION= 2.31
+PORTVERSION= 2.32
CATEGORIES= x11-fonts
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-fonts-ttf-${PORTVERSION}
@@ -18,22 +18,39 @@ COMMENT= Bitstream Vera Fonts clone with a wider range of characters
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+OPTIONS= LINKS "Install links of configuration files in conf.d" off
+
NO_BUILD= yes
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= FONTSDIR_REL=${FONTSDIR_REL}
+PLIST_SUB= FCDIR_REL=${FCDIR_REL} FONTSDIR_REL=${FONTSDIR_REL}
PORTDOCS= README langcover.txt status.txt unicover.txt
SUB_FILES= pkg-message
SUB_LIST= FONTSDIR=${FONTSDIR}
+.include <bsd.port.options.mk>
+
+.if defined(WITH_LINKS)
+FCDIR_LINKS= ${FCDIR_REL:S|conf.avail|conf.d|}
+PLIST_SUB+= FCDIR_LINKS="${FCDIR_LINKS}"
+.else
+PLIST_SUB+= FCDIR_LINKS="@comment "
+.endif
+
do-install:
- @${MKDIR} ${FONTSDIR}
- @${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${FONTSDIR}
+ ${MKDIR} ${FONTSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${FCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${FONTSDIR}
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+.if defined(WITH_LINKS)
+ cd ${PREFIX}/${FCDIR_LINKS} && ${LN} -fs ../conf.avail/*dejavu*.conf .
.endif
post-install:
diff --git a/x11-fonts/dejavu/distinfo b/x11-fonts/dejavu/distinfo
index 045e7241d4c3..0c7d31950217 100644
--- a/x11-fonts/dejavu/distinfo
+++ b/x11-fonts/dejavu/distinfo
@@ -1,3 +1,3 @@
-MD5 (dejavu-fonts-ttf-2.31.tar.bz2) = a794a75d8c43c83f0226207cd3aaf666
-SHA256 (dejavu-fonts-ttf-2.31.tar.bz2) = 1add6782060780d77eabf3d09bb5db1e8cb3a2451fbb0655a4c2cec44649ae03
-SIZE (dejavu-fonts-ttf-2.31.tar.bz2) = 4441882
+MD5 (dejavu-fonts-ttf-2.32.tar.bz2) = 63b1bf644cd54188a2ec43aff1846104
+SHA256 (dejavu-fonts-ttf-2.32.tar.bz2) = 3b79e2cd3838112e896751337142fb7328e095710763128434c89c3d221c3266
+SIZE (dejavu-fonts-ttf-2.32.tar.bz2) = 4394279
diff --git a/x11-fonts/dejavu/pkg-plist b/x11-fonts/dejavu/pkg-plist
index 21928797e749..adf2b0861fc5 100644
--- a/x11-fonts/dejavu/pkg-plist
+++ b/x11-fonts/dejavu/pkg-plist
@@ -1,4 +1,16 @@
@comment $FreeBSD$
+%%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