diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2012-10-14 14:04:50 +0000 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2012-10-14 14:04:50 +0000 |
commit | 1118075764b9f97cc8463a7ac632500caa33a941 (patch) | |
tree | e9d379899d86ead1a271d1237212204d07fec8d5 | |
parent | Tests require numpy. (diff) | |
download | gentoo-2-1118075764b9f97cc8463a7ac632500caa33a941.tar.gz gentoo-2-1118075764b9f97cc8463a7ac632500caa33a941.tar.bz2 gentoo-2-1118075764b9f97cc8463a7ac632500caa33a941.zip |
Source Code Pro is the monospace sister font of Source Sans Pro, from Adobe.
(Portage version: 2.2.0_alpha137/cvs/Linux x86_64)
-rw-r--r-- | media-fonts/source-code-pro/ChangeLog | 9 | ||||
-rw-r--r-- | media-fonts/source-code-pro/files/63-source-code-pro.conf | 16 | ||||
-rw-r--r-- | media-fonts/source-code-pro/metadata.xml | 9 | ||||
-rw-r--r-- | media-fonts/source-code-pro/source-code-pro-1.010.ebuild | 41 |
4 files changed, 75 insertions, 0 deletions
diff --git a/media-fonts/source-code-pro/ChangeLog b/media-fonts/source-code-pro/ChangeLog new file mode 100644 index 000000000000..9747a9b65b9c --- /dev/null +++ b/media-fonts/source-code-pro/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for media-fonts/source-code-pro +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/source-code-pro/ChangeLog,v 1.1 2012/10/14 14:04:50 zx2c4 Exp $ + +*source-code-pro-1.010 (14 Oct 2012) + + 14 Oct 2012; Jason A. Donenfeld <zx2c4@gentoo.org> + +files/63-source-code-pro.conf, +metadata.xml, +source-code-pro-1.010.ebuild: + Source Code Pro is the monospace sister font of Source Sans Pro, from Adobe. diff --git a/media-fonts/source-code-pro/files/63-source-code-pro.conf b/media-fonts/source-code-pro/files/63-source-code-pro.conf new file mode 100644 index 000000000000..1faea90d64de --- /dev/null +++ b/media-fonts/source-code-pro/files/63-source-code-pro.conf @@ -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> diff --git a/media-fonts/source-code-pro/metadata.xml b/media-fonts/source-code-pro/metadata.xml new file mode 100644 index 000000000000..04a9bbee4fb1 --- /dev/null +++ b/media-fonts/source-code-pro/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>fonts</herd> + <maintainer> + <email>zx2c4@gentoo.org</email> + <name>Jason A. Donenfeld</name> + </maintainer> +</pkgmetadata> diff --git a/media-fonts/source-code-pro/source-code-pro-1.010.ebuild b/media-fonts/source-code-pro/source-code-pro-1.010.ebuild new file mode 100644 index 000000000000..4dd5085a16ad --- /dev/null +++ b/media-fonts/source-code-pro/source-code-pro-1.010.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/source-code-pro/source-code-pro-1.010.ebuild,v 1.1 2012/10/14 14:04:50 zx2c4 Exp $ + +EAPI=4 +inherit font + +MY_P=SourceCodePro_FontsOnly-${PV} + +DESCRIPTION="Adobe Source Code Pro, an open source multi-lingual font family" +HOMEPAGE="http://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 +} |