Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 2014 15:47:09 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343931 - head/x11-fonts/dejavu
Message-ID:  <201402121547.s1CFl9nE057306@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Wed Feb 12 15:47:09 2014
New Revision: 343931
URL: http://svnweb.freebsd.org/changeset/ports/343931
QAT: https://qat.redports.org/buildarchive/r343931/

Log:
  - Generate and install fonts.dir and fonts.scale
  - Bump PORTREVISION for package change
  
  PR:		ports/179965
  Submitted by:	Dmitry Afanasiev <KOT@MATPOCKuH.Ru>

Modified:
  head/x11-fonts/dejavu/Makefile
  head/x11-fonts/dejavu/pkg-plist

Modified: head/x11-fonts/dejavu/Makefile
==============================================================================
--- head/x11-fonts/dejavu/Makefile	Wed Feb 12 15:25:20 2014	(r343930)
+++ head/x11-fonts/dejavu/Makefile	Wed Feb 12 15:47:09 2014	(r343931)
@@ -3,6 +3,7 @@
 
 PORTNAME=	dejavu
 PORTVERSION=	2.34
+PORTREVISION=	1
 CATEGORIES=	x11-fonts
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-fonts-ttf-${PORTVERSION}
@@ -10,13 +11,14 @@ DISTNAME=	${PORTNAME}-fonts-ttf-${PORTVE
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Bitstream Vera Fonts clone with a wider range of characters
 
-BUILD_DEPENDS=	fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-RUN_DEPENDS:=	${BUILD_DEPENDS}
+BUILD_DEPENDS=	${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
+		${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
 LINKS_DESC=	Install links of configuration files in conf.d
 
-NO_BUILD=	yes
 USE_BZIP2=	yes
 
 FCDIR=		${PREFIX}/${FCDIR_REL}
@@ -37,10 +39,14 @@ PLIST_SUB+=	FCDIR_LINKS="${FCDIR_LINKS}"
 PLIST_SUB+=	FCDIR_LINKS="@comment "
 .endif
 
+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}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/fonts.* ${WRKSRC}/ttf/*.ttf ${STAGEDIR}${FONTSDIR}/
 .if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${STAGEDIR}${DOCSDIR}/
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/

Modified: head/x11-fonts/dejavu/pkg-plist
==============================================================================
--- head/x11-fonts/dejavu/pkg-plist	Wed Feb 12 15:25:20 2014	(r343930)
+++ head/x11-fonts/dejavu/pkg-plist	Wed Feb 12 15:47:09 2014	(r343931)
@@ -31,4 +31,6 @@
 %%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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402121547.s1CFl9nE057306>