summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-fonts/source-pro/Manifest3
-rw-r--r--media-fonts/source-pro/files/63-source-pro.conf40
-rw-r--r--media-fonts/source-pro/metadata.xml12
-rw-r--r--media-fonts/source-pro/source-pro-20210115.ebuild39
4 files changed, 94 insertions, 0 deletions
diff --git a/media-fonts/source-pro/Manifest b/media-fonts/source-pro/Manifest
new file mode 100644
index 0000000..99d65ef
--- /dev/null
+++ b/media-fonts/source-pro/Manifest
@@ -0,0 +1,3 @@
+DIST source-code-pro-20210115.tar.gz 6818951 BLAKE2B b133aa317bf5057e8b346d81491bf08c0c257066ed05b2001a9e327308a63a3ef943da3b12b5933c217c31839750fbb3947b4f566f48aac6e88c7096cbbf82cd SHA512 96981af2a470027a372ab8a02265d34a6b2a810c4cca0b498b01e613019a04c9760d95e21fb740af2c7fff076098bb36f5c282bf9b8f1875eed72ed70e4b3ac9
+DIST source-sans-pro-20210115.tar.gz 12105836 BLAKE2B 3e2fed594f74614afd49ef731497b9abd6c75a78850cc1c5abbae0c246f454a0d06b82d4b7eaeefe8fb6b0d8246adb3f2751b4de6e2637f05f6cc20ead66faba SHA512 4b53ca10053bf10b23f3a2488d562b79a8dfd39f1402d068098856bbd1bd5bd9ddbb8f269acea45f003289dc95378229ed14e21fdcd39d49e3d6864693c0fbb4
+DIST source-serif-pro-20210115.tar.gz 40747188 BLAKE2B 9c91fbb5d9b29c28e1e64f36e410afce8ae6f0e6d030a6ee4e6069a20d270bf7852967641eb54b33bfe9a23eae024448f6c22de25d766a9f8a830cce04d29db1 SHA512 fff923121f1d536886468fd4887e036d9d85603e57c4ecabe64f73af4506b15265481ca69cbe7d83751f93ff72f7f9dce3aae56dacdd2c4da1bc1e7285f76d6b
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 0000000..4265e65
--- /dev/null
+++ b/media-fonts/source-pro/files/63-source-pro.conf
@@ -0,0 +1,40 @@
+<?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>
+ <alias>
+ <family>Source Serif Pro</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Source Serif 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 0000000..bcdcbf1
--- /dev/null
+++ b/media-fonts/source-pro/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>fonts@gentoo.org</email>
+ <name>Fonts</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">adobe-fonts/source-code-pro</remote-id>
+ <remote-id type="sourceforge">sourcesans.adobe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-fonts/source-pro/source-pro-20210115.ebuild b/media-fonts/source-pro/source-pro-20210115.ebuild
new file mode 100644
index 0000000..f20042b
--- /dev/null
+++ b/media-fonts/source-pro/source-pro-20210115.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit font
+
+SANSV="3.046R"
+SERIFV="4.004R"
+CODEV="2.038R-ro/1.058R-it/1.018R-VAR"
+
+DESCRIPTION="Adobe's open source typeface family designed for UI environments"
+HOMEPAGE="https://adobe-fonts.github.io/source-sans/
+ https://adobe-fonts.github.io/source-serif/
+ https://adobe-fonts.github.io/source-code-pro/"
+SRC_URI="https://github.com/adobe-fonts/source-sans/archive/${SANSV}.tar.gz -> source-sans-pro-${PV}.tar.gz
+ https://github.com/adobe-fonts/source-serif/archive/${SERIFV}.tar.gz -> source-serif-pro-${PV}.tar.gz
+ https://github.com/adobe-fonts/source-code-pro/archive/${CODEV}.tar.gz -> source-code-pro-${PV}.tar.gz"
+S="${WORKDIR}"
+
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos"
+IUSE="cjk"
+
+RESTRICT="binchecks strip"
+
+RDEPEND="
+ media-libs/fontconfig
+ cjk? ( media-fonts/source-han-sans )
+"
+
+FONT_CONF=( "${FILESDIR}"/63-${PN}.conf )
+FONT_SUFFIX="otf"
+
+src_prepare() {
+ default
+ mv source-*/OTF/*.otf . || die
+}