Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2013 16:11:46 GMT
From:      Horia Racoviceanu <horia@racoviceanu.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182414: New port: x11-fonts/fira Sans-serif and monospaced typeface for small screens
Message-ID:  <201309261611.r8QGBkBx091955@oldred.freebsd.org>
Resent-Message-ID: <201309261620.r8QGK0Rg081072@freefall.freebsd.org>

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

>Number:         182414
>Category:       ports
>Synopsis:       New port: x11-fonts/fira Sans-serif and monospaced typeface for small screens
>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 Sep 26 16:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Horia Racoviceanu
>Release:        FreeBSD 9.1-RELEASE
>Organization:
>Environment:
FreeBSD horia.lan 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep  9 21:34:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The Fira font family was designed to cover the legibility needs for a
large range of handsets varying in screen quality and rendering. It
comes in a Sans Serif with 4 weights (light, regular, medium and bold)
all accompanied by italic styles. The package also includes a Mono
Spaced variant with 2 weights (regular and bold).

Available formats: Open Type, True Type, Web Font

WWW: http://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	fira
#	fira/files
#	fira/files/pkg-message.in
#	fira/pkg-descr
#	fira/distinfo
#	fira/pkg-plist
#	fira/Makefile
#
echo c - fira
mkdir -p fira > /dev/null 2>&1
echo c - fira/files
mkdir -p fira/files > /dev/null 2>&1
echo x - fira/files/pkg-message.in
sed 's/^X//' >fira/files/pkg-message.in << '13525cd8f85bbd1bb3ea45ed59f4343c'
XMake sure that the freetype module is loaded.  If it is not, add the following
Xline to the "Modules" section of your X Windows configuration file:
X
X	Load "freetype"
X
XAdd the following line to the "Files" section of X Windows configuration file:
X
X	FontPath "/usr/local/lib/X11/fonts/fira/"
X
XNote: your X Windows configuration file is typically /etc/X11/xorg.conf
13525cd8f85bbd1bb3ea45ed59f4343c
echo x - fira/pkg-descr
sed 's/^X//' >fira/pkg-descr << '43a4e1c2dd6e6deab2ba546050173f01'
XThe Fira font family was designed to cover the legibility needs for a
Xlarge range of handsets varying in screen quality and rendering. It
Xcomes in a Sans Serif with 4 weights (light, regular, medium and bold)
Xall accompanied by italic styles. The package also includes a Mono
XSpaced variant with 2 weights (regular and bold).
X
XAvailable formats: Open Type, True Type, Web Font
X
XWWW: http://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/
43a4e1c2dd6e6deab2ba546050173f01
echo x - fira/distinfo
sed 's/^X//' >fira/distinfo << '3ce65accae5a72a77ec6fe37a9cccd15'
XSHA256 (fira-1.0.tar.gz) = f87bd7d1380e5a93a3743edd3d038b44c7460ea14c204b152b750f5551fd2531
XSIZE (fira-1.0.tar.gz) = 3973356
3ce65accae5a72a77ec6fe37a9cccd15
echo x - fira/pkg-plist
sed 's/^X//' >fira/pkg-plist << '69973583ede205058d286d1d224a1dba'
X%%TTF%%lib/X11/fonts/fira/FiraMono-Bold.ttf
X%%TTF%%lib/X11/fonts/fira/FiraMono-Regular.ttf
X%%OTF%%lib/X11/fonts/fira/FiraMonoOT-Bold.otf
X%%OTF%%lib/X11/fonts/fira/FiraMonoOT-Regular.otf
X%%TTF%%lib/X11/fonts/fira/FiraSans-Bold.ttf
X%%TTF%%lib/X11/fonts/fira/FiraSans-BoldItalic.ttf
X%%TTF%%lib/X11/fonts/fira/FiraSans-Light.ttf
X%%TTF%%lib/X11/fonts/fira/FiraSans-LightItalic.ttf
X%%TTF%%lib/X11/fonts/fira/FiraSans-Medium.ttf
X%%TTF%%lib/X11/fonts/fira/FiraSans-MediumItalic.ttf
X%%TTF%%lib/X11/fonts/fira/FiraSans-Regular.ttf
X%%TTF%%lib/X11/fonts/fira/FiraSans-RegularItalic.ttf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-Bold.otf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-BoldItalic.otf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-Light.otf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-LightItalic.otf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-Medium.otf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-MediumItalic.otf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-Regular.otf
X%%OTF%%lib/X11/fonts/fira/FiraSansOT-RegularItalic.otf
X%%WEBFONT%%www/fira/eot/FiraMono-Bold.eot
X%%WEBFONT%%www/fira/eot/FiraMono-Regular.eot
X%%WEBFONT%%www/fira/eot/FiraSans-Bold.eot
X%%WEBFONT%%www/fira/eot/FiraSans-BoldItalic.eot
X%%WEBFONT%%www/fira/eot/FiraSans-Light.eot
X%%WEBFONT%%www/fira/eot/FiraSans-LightItalic.eot
X%%WEBFONT%%www/fira/eot/FiraSans-Medium.eot
X%%WEBFONT%%www/fira/eot/FiraSans-MediumItalic.eot
X%%WEBFONT%%www/fira/eot/FiraSans-Regular.eot
X%%WEBFONT%%www/fira/eot/FiraSans-RegularItalic.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-Bold.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-BoldItalic.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-Light.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-LightItalic.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-Medium.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-MediumItalic.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-Regular.eot
X%%WEBFONT%%www/fira/eot/FiraSansSC-RegularItalic.eot
X%%WEBFONT%%www/fira/fira.css
X%%WEBFONT%%www/fira/index.html
X%%WEBFONT%%www/fira/ttf/FiraMono-Bold.ttf
X%%WEBFONT%%www/fira/ttf/FiraMono-Regular.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-Bold.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-BoldItalic.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-Light.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-LightItalic.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-Medium.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-MediumItalic.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-Regular.ttf
X%%WEBFONT%%www/fira/ttf/FiraSans-RegularItalic.ttf
X%%WEBFONT%%www/fira/woff/FiraMono-Bold.woff
X%%WEBFONT%%www/fira/woff/FiraMono-Regular.woff
X%%WEBFONT%%www/fira/woff/FiraSans-Bold.woff
X%%WEBFONT%%www/fira/woff/FiraSans-BoldItalic.woff
X%%WEBFONT%%www/fira/woff/FiraSans-Light.woff
X%%WEBFONT%%www/fira/woff/FiraSans-LightItalic.woff
X%%WEBFONT%%www/fira/woff/FiraSans-Medium.woff
X%%WEBFONT%%www/fira/woff/FiraSans-MediumItalic.woff
X%%WEBFONT%%www/fira/woff/FiraSans-Regular.woff
X%%WEBFONT%%www/fira/woff/FiraSans-RegularItalic.woff
X%%WEBFONT%%www/fira/woff/FiraSansOT-Light.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-Bold.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-BoldItalic.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-Light.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-LightItalic.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-Medium.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-MediumItalic.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-Regular.woff
X%%WEBFONT%%www/fira/woff/FiraSansSC-RegularItalic.woff
X%%WEBFONT%%@dirrmtry www/fira/woff
X%%WEBFONT%%@dirrmtry www/fira/ttf
X%%WEBFONT%%@dirrmtry www/fira/eot
X%%WEBFONT%%@dirrmtry www/fira
X%%TTF%%@dirrmtry lib/X11/fonts/fira
69973583ede205058d286d1d224a1dba
echo x - fira/Makefile
sed 's/^X//' >fira/Makefile << 'eab923270d8a5e40e41eaa175227a9e5'
X# Created by: Horia Racoviceanu <horia@racoviceanu.com>
X# $FreeBSD$
X
XPORTNAME=	fira
XPORTVERSION=	1.0
XCATEGORIES=	x11-fonts www
X
XMAINTAINER=	horia@racoviceanu.com
XCOMMENT=	Sans-serif and monospaced typeface for small screens
X
XLICENSE=	OFL
XLICENSE_NAME=	SIL OPEN FONT LICENSE Version 1.1
XLICENSE_FILE=	${WRKSRC}/LICENSE
XLICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	mozilla
XGH_PROJECT=	Fira
XGH_TAGNAME=	${GH_COMMIT}
XGH_COMMIT=	705ffff
X
XNO_BUILD=	yes
XNEED_ROOT=	yes
X
XFONTSDIR=	${PREFIX}/${FONTSDIR_REL}
XFONTSDIR_REL?=	lib/X11/fonts/${PORTNAME}
X
XPORTDOCS=	README.md
XSUB_FILES=	pkg-message
X
XOPTIONS_DEFINE=	DOCS TTF OTF WEBFONT
XOPTIONS_DEFAULT=TTF OTF
XTTF_DESC=	True Type
XOTF_DESC=	Open Type
XWEBFONT_DESC=	Web Font (EOT, WOFF, TTF, example HTML+CSS)
XOPTIONS_SUB=	yes
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MTTF} || ${PORT_OPTIONS:MOTF}
XBUILD_DEPENDS+=	fc-cache:${PORTSDIR}/x11-fonts/fontconfig
XRUN_DEPENDS:=	${BUILD_DEPENDS}
X.endif
X
X.SILENT:
X
Xdo-install:
X	${MKDIR} ${STAGEDIR}${FONTSDIR}
X.if ${PORT_OPTIONS:MDOCS}
X	${MKDIR} ${STAGEDIR}${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
X.endif
X.if ${PORT_OPTIONS:MTTF}
X	${INSTALL_DATA} ${WRKSRC}/ttf/${GH_PROJECT}*.ttf ${STAGEDIR}${FONTSDIR}/
X.endif
X.if ${PORT_OPTIONS:MOTF}
X	${INSTALL_DATA} ${WRKSRC}/otf/${GH_PROJECT}*.otf ${STAGEDIR}${FONTSDIR}/
X.endif
X.if ${PORT_OPTIONS:MWEBFONT}
X	${MKDIR} ${STAGEDIR}${WWWDIR}
X	${MKDIR} ${STAGEDIR}${WWWDIR}/eot
X	${MKDIR} ${STAGEDIR}${WWWDIR}/ttf
X	${MKDIR} ${STAGEDIR}${WWWDIR}/woff
X	${INSTALL_DATA} ${WRKSRC}/index.html ${STAGEDIR}${WWWDIR}/
X	${INSTALL_DATA} ${WRKSRC}/fira.css ${STAGEDIR}${WWWDIR}/
X	${INSTALL_DATA} ${WRKSRC}/eot/${GH_PROJECT}*.eot ${STAGEDIR}${WWWDIR}/eot/
X	${INSTALL_DATA} ${WRKSRC}/ttf/${GH_PROJECT}*.ttf ${STAGEDIR}${WWWDIR}/ttf/
X	${INSTALL_DATA} ${WRKSRC}/woff/${GH_PROJECT}*.woff ${STAGEDIR}${WWWDIR}/woff/
X.endif
X
Xpost-install:
X.if ${PORT_OPTIONS:MTTF} || ${PORT_OPTIONS:MOTF}
X	@${ECHO_MSG} "===> Running fc-cache"
X	-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}/
X.endif
X
X.include <bsd.port.mk>
eab923270d8a5e40e41eaa175227a9e5
exit



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



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