aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-08-20 15:38:18 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-08-20 15:38:18 +0000
commit8b3c97b7496f319e0bae9c83113126be0e613db8 (patch)
treef97938f0ee4f2ed82ac84f02a6fd44bcdca7ec4e /x11-fonts
parentdd90bfed1e8a83e6374df1bf1b0a6ccbede779e2 (diff)
downloadports-8b3c97b7496f319e0bae9c83113126be0e613db8.tar.gz
ports-8b3c97b7496f319e0bae9c83113126be0e613db8.zip
Notes
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/Makefile1
-rw-r--r--x11-fonts/sourcesanspro-ttf/Makefile55
-rw-r--r--x11-fonts/sourcesanspro-ttf/distinfo2
-rw-r--r--x11-fonts/sourcesanspro-ttf/files/pkg-message.in5
-rw-r--r--x11-fonts/sourcesanspro-ttf/pkg-descr13
-rw-r--r--x11-fonts/sourcesanspro-ttf/pkg-plist16
6 files changed, 92 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index 73308d5c014c..959a212e93d1 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -137,6 +137,7 @@
SUBDIR += sgifonts
SUBDIR += sharefonts
SUBDIR += showfont
+ SUBDIR += sourcesanspro-ttf
SUBDIR += stix-fonts
SUBDIR += suxus
SUBDIR += terminus-font
diff --git a/x11-fonts/sourcesanspro-ttf/Makefile b/x11-fonts/sourcesanspro-ttf/Makefile
new file mode 100644
index 000000000000..7f14697b3210
--- /dev/null
+++ b/x11-fonts/sourcesanspro-ttf/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: SourceSansPro-ttf
+# Date created: 11 Aug 2012
+# Whom: Pedro Giffuni
+#
+# $FreeBSD$
+#
+
+PORTNAME= sourcesanspro-ttf
+PORTVERSION= 1.033
+CATEGORIES= x11-fonts
+MASTER_SITES= SF/sourcesans.adobe
+DISTNAME= SourceSansPro_FontsOnly-${PORTVERSION}
+
+MAINTAINER= office@FreeBSD.org
+COMMENT= A set of fonts by Adobe designed for user interfaces
+
+LICENSE= OFL
+LICENSE_NAME= SIL OPEN FONT LICENSE Version 1.1
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+LICENSE_PERMS= auto-accept
+
+BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
+ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
+
+USE_ZIP= yes
+USE_XORG= x11
+
+PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
+
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_LIST= FONTDIR=${FONTDIR}
+
+FONTNAME= SourceSansPro
+FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
+INSTDAT= fonts.dir fonts.scale
+
+MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
+MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
+
+do-build:
+ cd ${WRKSRC}/TTF && ${MKFONTSCL_CMD}
+ cd ${WRKSRC}/TTF && ${MKFONTDIR_CMD}
+
+do-install:
+ ${MKDIR} ${FONTDIR}
+ cd ${WRKSRC}/TTF && \
+ ${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
+
+post-install:
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/sourcesanspro-ttf/distinfo b/x11-fonts/sourcesanspro-ttf/distinfo
new file mode 100644
index 000000000000..c050a9394563
--- /dev/null
+++ b/x11-fonts/sourcesanspro-ttf/distinfo
@@ -0,0 +1,2 @@
+SHA256 (SourceSansPro_FontsOnly-1.033.zip) = 6d47d19f9e8e0211af24cad254e6fd69af16f2dde8c902516039607c0f213c8d
+SIZE (SourceSansPro_FontsOnly-1.033.zip) = 1372793
diff --git a/x11-fonts/sourcesanspro-ttf/files/pkg-message.in b/x11-fonts/sourcesanspro-ttf/files/pkg-message.in
new file mode 100644
index 000000000000..dca252c8f1d3
--- /dev/null
+++ b/x11-fonts/sourcesanspro-ttf/files/pkg-message.in
@@ -0,0 +1,5 @@
+You can start using the fonts by following these instructions:
+
+Add the following line to the "Files" section of your x.org configuration file:
+
+ FontPath "%%FONTDIR%%/"
diff --git a/x11-fonts/sourcesanspro-ttf/pkg-descr b/x11-fonts/sourcesanspro-ttf/pkg-descr
new file mode 100644
index 000000000000..13d26ee798fb
--- /dev/null
+++ b/x11-fonts/sourcesanspro-ttf/pkg-descr
@@ -0,0 +1,13 @@
+Source Sans Pro: Adobe’s first open source type family
+
+Source Sans Pro was designed by Paul D. Hunt as Adobe's first open source
+typeface family, conceived primarily as a typeface for user interfaces.
+Source Sans Pro draws inspiration from the clarity and legibility of
+twentieth-century American gothic typeface designs.
+
+Source Sans Pro currently supports a wide range of languages using Latin
+script, and includes all the characters in the Adobe Latin 4 glyph set. As
+an open source project, it is expected that incremental updates will be
+made over time to extend glyph set coverage and functionality.
+
+WWW: http://sourceforge.net/projects/sourcesans.adobe/
diff --git a/x11-fonts/sourcesanspro-ttf/pkg-plist b/x11-fonts/sourcesanspro-ttf/pkg-plist
new file mode 100644
index 000000000000..90bb76b2511e
--- /dev/null
+++ b/x11-fonts/sourcesanspro-ttf/pkg-plist
@@ -0,0 +1,16 @@
+%%FONTDIR%%/SourceSansPro-Black.ttf
+%%FONTDIR%%/SourceSansPro-BlackIt.ttf
+%%FONTDIR%%/SourceSansPro-Bold.ttf
+%%FONTDIR%%/SourceSansPro-BoldIt.ttf
+%%FONTDIR%%/SourceSansPro-ExtraLight.ttf
+%%FONTDIR%%/SourceSansPro-ExtraLightIt.ttf
+%%FONTDIR%%/SourceSansPro-It.ttf
+%%FONTDIR%%/SourceSansPro-Light.ttf
+%%FONTDIR%%/SourceSansPro-LightIt.ttf
+%%FONTDIR%%/SourceSansPro-Regular.ttf
+%%FONTDIR%%/SourceSansPro-Semibold.ttf
+%%FONTDIR%%/SourceSansPro-SemiboldIt.ttf
+%%FONTDIR%%/fonts.dir
+%%FONTDIR%%/fonts.scale
+@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
+@dirrm %%FONTDIR%%