Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2014 19:00:25 GMT
From:      Winston Weinert <winston@ml1.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186926: Update port: x11-fonts/roboto-fonts-ttf 1.2
Message-ID:  <201402201900.s1KJ0PxO029611@cgiserv.freebsd.org>
Resent-Message-ID: <201402201910.s1KJA0hq054251@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186926
>Category:       ports
>Synopsis:       Update port: x11-fonts/roboto-fonts-ttf 1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 20 19:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Winston Weinert
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD freebsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Bumped from 20111129 to 1.2, added STAGEDIR support, and added rules to pkg-plist to rebuild the font cache.

I am the original maintainer (winstonw@lavabit.com). Unfortunately lavabit.com has since closed down -- my new email is winston@ml1.net
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN roboto-fonts-ttf.orig/Makefile roboto-fonts-ttf/Makefile
--- roboto-fonts-ttf.orig/Makefile	2014-02-20 11:03:37.000000000 -0600
+++ roboto-fonts-ttf/Makefile	2014-02-20 11:19:12.000000000 -0600
@@ -2,20 +2,24 @@
 # $FreeBSD: head/x11-fonts/roboto-fonts-ttf/Makefile 340722 2014-01-22 17:00:46Z mat $
 
 PORTNAME=	roboto-fonts-ttf
-PORTVERSION=	20111129
+PORTVERSION=	1.2
+PORTEPOCH=	1
 CATEGORIES=	x11-fonts
-MASTER_SITES=	http://developer.android.com/design/static/download/
-DISTNAME=	Roboto_Hinted_${PORTVERSION}
+MASTER_SITES=	http://developer.android.com/downloads/design/
+DISTNAME=	roboto-${PORTVERSION}
 
-MAINTAINER=	winstonw@lavabit.com
+MAINTAINER=	winston@ml1.net
 COMMENT=	The Roboto typeface family
 
 LICENSE=	APACHE20
 
 BUILD_DEPENDS=	mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
-		mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+		mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
+		fc-cache:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS=    fc-cache:${PORTSDIR}/x11-fonts/fontconfig
 
 USE_ZIP=	yes
+WRKSRC=		${WRKDIR}/Roboto_v${PORTVERSION}
 
 FONTDIR=	lib/X11/fonts/Roboto
 PKGMESSAGE=	${WRKDIR}/pkg-message
@@ -23,17 +27,15 @@
 SUB_FILES=	pkg-message
 SUB_LIST=	FONTDIR=${FONTDIR}
 
-NO_STAGE=	yes
 do-build:
-	@cd ${WRKSRC}/ && \
+	@${MV} ${WRKSRC}/Roboto/*.ttf ${WRKSRC}/RobotoCondensed/*.ttf ${WRKSRC}
+	@cd ${WRKSRC} && \
 		${LOCALBASE}/bin/mkfontscale && \
 		${LOCALBASE}/bin/mkfontdir
 
 do-install:
-	${MKDIR} ${PREFIX}/${FONTDIR}/
-	cd ${WRKSRC}/ && ${INSTALL_DATA} *.ttf fonts.* ${PREFIX}/${FONTDIR}/
-
-post-install:
-	@${CAT} ${PKGMESSAGE}
+	${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR}
+	cd ${WRKSRC}/ && ${INSTALL_DATA} *.ttf fonts.dir fonts.scale \
+		 ${STAGEDIR}${PREFIX}/${FONTDIR}
 
 .include <bsd.port.mk>
diff -ruN roboto-fonts-ttf.orig/distinfo roboto-fonts-ttf/distinfo
--- roboto-fonts-ttf.orig/distinfo	2014-02-20 11:03:37.000000000 -0600
+++ roboto-fonts-ttf/distinfo	2014-02-17 17:15:56.000000000 -0600
@@ -1,2 +1,2 @@
-SHA256 (Roboto_Hinted_20111129.zip) = 99e865226391af3ac922f476c20d3e82fb471e7cece512486f92438b6d37dfcf
-SIZE (Roboto_Hinted_20111129.zip) = 1505533
+SHA256 (roboto-1.2.zip) = 5101b5bdb3b7b14cc922a771ba068bfcae8634467c1f446bc89bc2b4f8b4f1b5
+SIZE (roboto-1.2.zip) = 2641284
diff -ruN roboto-fonts-ttf.orig/pkg-descr roboto-fonts-ttf/pkg-descr
--- roboto-fonts-ttf.orig/pkg-descr	2014-02-20 11:03:37.000000000 -0600
+++ roboto-fonts-ttf/pkg-descr	2014-02-17 17:18:17.000000000 -0600
@@ -3,4 +3,4 @@
 Cream Sandwich". This typeface is designed for high resolution mobile
 devices so it includes several typefaces for text in different sizes.
 
-WWW:	http://developer.android.com/design/style/typography.html
+WWW: http://developer.android.com/design/style/typography.html
diff -ruN roboto-fonts-ttf.orig/pkg-plist roboto-fonts-ttf/pkg-plist
--- roboto-fonts-ttf.orig/pkg-plist	2014-02-20 11:03:37.000000000 -0600
+++ roboto-fonts-ttf/pkg-plist	2014-02-20 11:19:58.000000000 -0600
@@ -1,11 +1,7 @@
 %%FONTDIR%%/Roboto-Black.ttf
 %%FONTDIR%%/Roboto-BlackItalic.ttf
 %%FONTDIR%%/Roboto-Bold.ttf
-%%FONTDIR%%/Roboto-BoldCondensed.ttf
-%%FONTDIR%%/Roboto-BoldCondensedItalic.ttf
 %%FONTDIR%%/Roboto-BoldItalic.ttf
-%%FONTDIR%%/Roboto-Condensed.ttf
-%%FONTDIR%%/Roboto-CondensedItalic.ttf
 %%FONTDIR%%/Roboto-Italic.ttf
 %%FONTDIR%%/Roboto-Light.ttf
 %%FONTDIR%%/Roboto-LightItalic.ttf
@@ -14,7 +10,14 @@
 %%FONTDIR%%/Roboto-Regular.ttf
 %%FONTDIR%%/Roboto-Thin.ttf
 %%FONTDIR%%/Roboto-ThinItalic.ttf
+%%FONTDIR%%/RobotoCondensed-Bold.ttf
+%%FONTDIR%%/RobotoCondensed-BoldItalic.ttf
+%%FONTDIR%%/RobotoCondensed-Italic.ttf
+%%FONTDIR%%/RobotoCondensed-Light.ttf
+%%FONTDIR%%/RobotoCondensed-LightItalic.ttf
+%%FONTDIR%%/RobotoCondensed-Regular.ttf
 %%FONTDIR%%/fonts.dir
 %%FONTDIR%%/fonts.scale
-@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || true
+@unexec /bin/rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
 @dirrm %%FONTDIR%%
+@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTDIR%% || /usr/bin/true


>Release-Note:
>Audit-Trail:
>Unformatted:



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