pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/fonts/dejavu-ttf



Module Name:    pkgsrc
Committed By:   hauke
Date:           Fri Jul 23 10:20:30 UTC 2021

Modified Files:
        pkgsrc/fonts/dejavu-ttf: Makefile

Log Message:
Registering the fonts via FONTS_DIRS.ttf incurs a dependency on
mkfontdir, which means X11.

Since there are legitimate uses for fonts on sans-X machines
(rrdtool), control the dependency with a (default) x11 option.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/fonts/dejavu-ttf/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/fonts/dejavu-ttf/Makefile
diff -u pkgsrc/fonts/dejavu-ttf/Makefile:1.24 pkgsrc/fonts/dejavu-ttf/Makefile:1.25
--- pkgsrc/fonts/dejavu-ttf/Makefile:1.24       Tue Aug  1 17:40:11 2017
+++ pkgsrc/fonts/dejavu-ttf/Makefile    Fri Jul 23 10:20:30 2021
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2017/08/01 17:40:11 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2021/07/23 10:20:30 hauke Exp $
 
 DISTNAME=      dejavu-fonts-ttf-2.37
+PKGREVISION=   1
 PKGNAME=       ${DISTNAME:S/fonts-//}
 CATEGORIES=    fonts
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=dejavu/}
@@ -14,13 +15,23 @@ COMMENT=    DejaVu family of TrueType fonts
 NO_CONFIGURE=  yes
 NO_BUILD=      yes
 
-FONTS_DIRS.ttf=        ${PREFIX}/share/fonts/X11/TTF
-
 EGDIR=         ${PREFIX}/share/examples/${PKGBASE}
+TTFDIR=                ${PREFIX}/share/fonts/X11/TTF
 FCEGDIR=       ${EGDIR}/fontconfig-conf.d
 FCCFDIR=       ${PKG_SYSCONFDIR}/fontconfig/conf.d
 DOCSDIR=       ${PREFIX}/share/doc/${PKGBASE}
 
+PKG_OPTIONS_VAR=       PKG_OPTIONS.dejavu-fonts-ttf
+PKG_SUPPORTED_OPTIONS+=        x11
+PKG_SUGGESTED_OPTIONS+=        x11
+
+.include "../../mk/bsd.options.mk"
+
+# Only attempt to register fonts if we have X11 support (mkfontdir)
+.if !empty(PKG_OPTIONS:Mx11)
+FONTS_DIRS.ttf=        ${TTFDIR}
+.endif
+
 MAKE_DIRS+=    ${FCCFDIR}
 
 CONF_FILES=    ${FCEGDIR}/20-unhint-small-dejavu-sans-mono.conf \
@@ -43,7 +54,7 @@ REQD_DIRS+=   ${FCEGDIR}
 INSTALLATION_DIRS=     share/fonts/X11/TTF ${DOCSDIR} ${FCEGDIR}
 
 do-install:
-       ${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${DESTDIR}${FONTS_DIRS.ttf}
+       ${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${DESTDIR}${TTFDIR}
        ${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${DESTDIR}${FCEGDIR}
 .for docfile in AUTHORS BUGS LICENSE NEWS README.md
        ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DESTDIR}${DOCSDIR}



Home | Main Index | Thread Index | Old Index