Permalink
Browse files

Add media-fonts/source-code-pro

Based on media-fonts/source-sans-pro from Gentoo
  • Loading branch information...
1 parent e5a7682 commit 03a2fe95bef737fcbf82f90fe9bcc130691f9d27 @laurentb committed Oct 10, 2012
@@ -0,0 +1 @@
+DIST SourceCodePro_FontsOnly-1.010.zip 614267 SHA256 1d839a89a0910eb44f6e4512d68e020e191bec789f698674607d346559e589e9 SHA512 2aa315bfda8355bc09269ed7aa56dea703360a1dd4ac0fe20ed21d6e26ad331cd93ccea3759f410660c085939afa29e60843fed7fb42af0ee0d42496d5d91263 WHIRLPOOL 46fa0711da4591280b6781547c9f9ce48543bee408871d5ce111bf98b66732aaa1ee8e4818abd837b67c2902a1c978b6b9f09023bae0dbd398697551ebceef37
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>Source Code Pro</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Source Code Pro</family>
+ </prefer>
+ </alias>
+</fontconfig>
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit font
+
+MY_P=SourceCodePro_FontsOnly-${PV}
+
+DESCRIPTION="Adobe Source Code Pro, a monospaced adaptation of Source Sans Pro"
+HOMEPAGE="https://blogs.adobe.com/typblography/2012/09/source-code-pro.html"
+SRC_URI="mirror://sourceforge/sourcecodepro.adobe/${MY_P}.zip"
+
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+# This ebuild does not install any binaries
+RESTRICT="binchecks strip"
+
+RDEPEND="media-libs/fontconfig"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}
+
+FONT_SUFFIX="otf ttf"
+FONT_S=${S}
+# From .spec of http://bugzilla.redhat.com/show_bug.cgi?id=845743
+FONT_CONF=( "${FILESDIR}"/63-${PN}.conf )
+
+src_prepare() {
+ # Put otf and ttf files in one directory so that font_src_install can
+ # actually find them
+ mv -vf {OTF,TTF}/* . || die
+}
+
+src_install() {
+ font_src_install
+ dohtml *.html
+}
View
@@ -8,6 +8,7 @@ dev-python
dev-vcs
games-misc
games-strategy
+media-fonts
media-sound
net-im
net-misc

0 comments on commit 03a2fe9

Please sign in to comment.