ports/162614: New port for the Anonymous Pro font

Norberto Lopes nlopes.ml at gmail.com
Wed Nov 16 15:30:10 UTC 2011


>Number:         162614
>Category:       ports
>Synopsis:       New port for the Anonymous Pro font
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 16 15:30:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Norberto Lopes
>Release:        10.0-CURRENT
>Organization:
>Environment:
FreeBSD taf 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sun Nov 13 23:45:22 PST 2011     root at taf:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Add a new port for the Anonymous Pro font.
>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:
#
#	AnonymousPro
#	AnonymousPro/files
#	AnonymousPro/files/pkg-message.in
#	AnonymousPro/Makefile
#	AnonymousPro/distinfo
#	AnonymousPro/pkg-descr
#	AnonymousPro/pkg-plist
#
echo c - AnonymousPro
mkdir -p AnonymousPro > /dev/null 2>&1
echo c - AnonymousPro/files
mkdir -p AnonymousPro/files > /dev/null 2>&1
echo x - AnonymousPro/files/pkg-message.in
sed 's/^X//' >AnonymousPro/files/pkg-message.in << '7eba023cee6dab0d732a95500ca9dd56'
XAdd the following line to the "Files" section of xorg.conf or XF86Config:
X
X	FontPath "%%FONTSDIR%%/"
X
7eba023cee6dab0d732a95500ca9dd56
echo x - AnonymousPro/Makefile
sed 's/^X//' >AnonymousPro/Makefile << '4ac295aa1a1184f74a1aedeeefed05f3'
X# New ports collection makefile for:    AnonymousPro
X# Date Created:                         14 Nov 2011
X# Whom:                                 Norberto Lopes <nlopes.ml at gmail.com>
X#
X# $FreeBSD: ports/x11-fonts/AnonymousPro/Makefile,v 1.21 2011/11/14 17:22:50 nlopes Exp $
X#
X
XPORTNAME=	AnonymousPro
XPORTVERSION=	1.002
XCATEGORIES=	x11-fonts
XMASTER_SITES=	http://www.ms-studio.com/FontSales/
X
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=     someone at somewhere.com
XCOMMENT=	A fixed width sans designed especially for coders
X
XLICENSE=	OFL
XLICENSE_FILE=	${WRKSRC}/OFL.txt
XLICENSE_NAME=	Open Font License (OFL)
XLICENSE_PERMS=	auto-accept
X
XBUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip \
X		fc-cache:${PORTSDIR}/x11-fonts/fontconfig
X
XRUN_DEPENDS=	fc-cache:${PORTSDIR}/x11-fonts/fontconfig
X
XUSE_ZIP=        yes
XNO_BUILD=       yes
X
XPLIST_SUB=	FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
XFONTSDIR=	${PREFIX}/lib/X11/fonts/${PORTNAME}
XSUB_LIST=	FONTSDIR=${FONTSDIR}
XSUB_FILES=	pkg-message
X
XWRKSRC=		${WRKDIR}/${DISTNAME}.001	
X
Xdo-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
X.endif
X	@${MKDIR} ${FONTSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR}
X
Xpost-install:
X	@${ECHO_MSG} "===> Running fc-cache"
X	-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
4ac295aa1a1184f74a1aedeeefed05f3
echo x - AnonymousPro/distinfo
sed 's/^X//' >AnonymousPro/distinfo << '1bd4c7eb37b4071f65358e2224bc68f4'
XSHA256 (AnonymousPro-1.002.zip) = 86665847a51cdfb58a1e1dfd8b1ba33f183485affe50b53e3304f63d3d3552ab
XSIZE (AnonymousPro-1.002.zip) = 284289
1bd4c7eb37b4071f65358e2224bc68f4
echo x - AnonymousPro/pkg-descr
sed 's/^X//' >AnonymousPro/pkg-descr << 'b035356908c1be2400cf561688860d86'
XAnonymous Pro (2009) is a family of four fixed-width fonts designed
Xespecially with coding in mind. Characters that could be mistaken for
Xone another (O, 0, I, l, 1, etc.) have distinct shapes to make them
Xeasier to tell apart in the context of source code.
X
XAuthor: Mark Simonson <mark at marksimonson.com>
XWWW: http://www.ms-studio.com/FontSales/anonymouspro.html
b035356908c1be2400cf561688860d86
echo x - AnonymousPro/pkg-plist
sed 's/^X//' >AnonymousPro/pkg-plist << 'c37f814a54d108600d423c2b9f96fb3c'
X%%FONTSDIR%%/Anonymous Pro.ttf
X%%FONTSDIR%%/Anonymous Pro I.ttf
X%%FONTSDIR%%/Anonymous Pro B.ttf
X%%FONTSDIR%%/Anonymous Pro BI.ttf
X%%PORTDOCS%%%%DOCSDIR%%/FONTLOG.txt
X%%PORTDOCS%%%%DOCSDIR%%/OFL-FAQ.txt
X%%PORTDOCS%%%%DOCSDIR%%/OFL.txt
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X at unexec /bin/rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
X at dirrm %%FONTSDIR%%
X at exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || /usr/bin/true
c37f814a54d108600d423c2b9f96fb3c
exit



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



More information about the freebsd-ports-bugs mailing list