diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2012-10-14 18:59:21 +0000 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2012-10-14 18:59:21 +0000 |
commit | 5a3d06f2c9370f938cbb70fa6a36059f8dd3f382 (patch) | |
tree | 717e4331a8b17c30c8d0b598443513787ed86aea /media-fonts/source-pro | |
parent | Prepare for fortran2.eclass update (diff) | |
download | gentoo-2-5a3d06f2c9370f938cbb70fa6a36059f8dd3f382.tar.gz gentoo-2-5a3d06f2c9370f938cbb70fa6a36059f8dd3f382.tar.bz2 gentoo-2-5a3d06f2c9370f938cbb70fa6a36059f8dd3f382.zip |
Per discussion with nirbheek, source-code-pro and source-sans-pro are merging into one package, using date as the versioning scheme.
(Portage version: 2.2.0_alpha137/cvs/Linux x86_64)
Diffstat (limited to 'media-fonts/source-pro')
-rw-r--r-- | media-fonts/source-pro/ChangeLog | 10 | ||||
-rw-r--r-- | media-fonts/source-pro/files/63-source-pro.conf | 28 | ||||
-rw-r--r-- | media-fonts/source-pro/metadata.xml | 17 | ||||
-rw-r--r-- | media-fonts/source-pro/source-pro-20121014.ebuild | 45 |
4 files changed, 100 insertions, 0 deletions
diff --git a/media-fonts/source-pro/ChangeLog b/media-fonts/source-pro/ChangeLog new file mode 100644 index 000000000000..0b8a9102c6af --- /dev/null +++ b/media-fonts/source-pro/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-fonts/source-pro +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/source-pro/ChangeLog,v 1.1 2012/10/14 18:59:21 zx2c4 Exp $ + +*source-pro-20121014 (14 Oct 2012) + + 14 Oct 2012; Jason A. Donenfeld <zx2c4@gentoo.org> +files/63-source-pro.conf, + +metadata.xml, +source-pro-20121014.ebuild: + Per discussion with nirbheek, source-code-pro and source-sans-pro are merging + into one package, using date as the versioning scheme. diff --git a/media-fonts/source-pro/files/63-source-pro.conf b/media-fonts/source-pro/files/63-source-pro.conf new file mode 100644 index 000000000000..ba5816e6cdd6 --- /dev/null +++ b/media-fonts/source-pro/files/63-source-pro.conf @@ -0,0 +1,28 @@ +<?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> + <alias> + <family>Source Sans Pro</family> + <default> + <family>sans-serif</family> + </default> + </alias> + <alias> + <family>sans-serif</family> + <prefer> + <family>Source Sans Pro</family> + </prefer> + </alias> +</fontconfig> diff --git a/media-fonts/source-pro/metadata.xml b/media-fonts/source-pro/metadata.xml new file mode 100644 index 000000000000..753ea917484f --- /dev/null +++ b/media-fonts/source-pro/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>fonts</herd> + <maintainer> + <email>nirbheek@gentoo.org</email> + <name>Nirbheek Chauhan</name> + </maintainer> + <maintainer> + <email>ssuominen@gentoo.org</email> + <name>Samuli Suominen</name> + </maintainer> + <maintainer> + <email>zx2c4@gentoo.org</email> + <name>Jason A. Donenfeld</name> + </maintainer> +</pkgmetadata> diff --git a/media-fonts/source-pro/source-pro-20121014.ebuild b/media-fonts/source-pro/source-pro-20121014.ebuild new file mode 100644 index 000000000000..dd91bf76e5f4 --- /dev/null +++ b/media-fonts/source-pro/source-pro-20121014.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/source-pro/source-pro-20121014.ebuild,v 1.1 2012/10/14 18:59:21 zx2c4 Exp $ + +EAPI=4 +inherit font + +CODE_P=SourceCodePro_FontsOnly-1.010 +SANS_P=SourceSansPro_FontsOnly-1.036 + +DESCRIPTION="Adobe Source Pro, an open source multi-lingual font family" +HOMEPAGE="http://blogs.adobe.com/typblography/2012/08/source-sans-pro.html + http://blogs.adobe.com/typblography/2012/09/source-code-pro.html" +SRC_URI="mirror://sourceforge/sourcecodepro.adobe/${CODE_P}.zip + mirror://sourceforge/sourcesans.adobe/${SANS_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}" +FONT_SUFFIX="otf ttf" +FONT_S=${S} +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. We make this non-fatal because releases appear to be + # alternating between having OTF/TTF subdirs and not, so it's easier just to + # glob for everything. + mv -vf ${CODE_P}/{OTF,TTF,""}/* . + mv -vf ${SANS_P}/{OTF,TTF,""}/* . +} + +src_install() { + font_src_install + dohtml *.html +} |