aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2010-09-02 13:20:43 +0000
committerPav Lucistnik <pav@FreeBSD.org>2010-09-02 13:20:43 +0000
commit2c75fa0e070d4af9e7206b3d747fade863a9e568 (patch)
treea22668b41e74b12a827d81dedbf58461fb1052a6 /x11-fonts
parentc5298edd7e7d19a85919458cdb67549854024355 (diff)
downloadports-2c75fa0e070d4af9e7206b3d747fade863a9e568.tar.gz
ports-2c75fa0e070d4af9e7206b3d747fade863a9e568.zip
Notes
Diffstat (limited to 'x11-fonts')
-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