summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-08-14 03:57:52 +0200
committerJoonas Niilola <juippis@gentoo.org>2022-09-15 10:05:41 +0300
commit2370bd23660b84f2e97231cd6a47e42e68641168 (patch)
tree85a9ea015d530e12e7e1cc565808d9da3e1e17b6 /media-fonts/source-sans
parentmedia-fonts/source-serif: new package, add 4.004 (diff)
downloadgentoo-2370bd23660b84f2e97231cd6a47e42e68641168.tar.gz
gentoo-2370bd23660b84f2e97231cd6a47e42e68641168.tar.bz2
gentoo-2370bd23660b84f2e97231cd6a47e42e68641168.zip
media-fonts/source-sans: new package, add 3.046
media-fonts/source-pro split, see previous message. This version has changed font metrics compared to the -pro version. Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-fonts/source-sans')
-rw-r--r--media-fonts/source-sans/Manifest1
-rw-r--r--media-fonts/source-sans/files/63-source-sans-3.conf16
-rw-r--r--media-fonts/source-sans/metadata.xml12
-rw-r--r--media-fonts/source-sans/source-sans-3.046.ebuild30
4 files changed, 59 insertions, 0 deletions
diff --git a/media-fonts/source-sans/Manifest b/media-fonts/source-sans/Manifest
new file mode 100644
index 000000000000..631498e51af0
--- /dev/null
+++ b/media-fonts/source-sans/Manifest
@@ -0,0 +1 @@
+DIST source-sans-3.046.tar.gz 12105836 BLAKE2B 3e2fed594f74614afd49ef731497b9abd6c75a78850cc1c5abbae0c246f454a0d06b82d4b7eaeefe8fb6b0d8246adb3f2751b4de6e2637f05f6cc20ead66faba SHA512 4b53ca10053bf10b23f3a2488d562b79a8dfd39f1402d068098856bbd1bd5bd9ddbb8f269acea45f003289dc95378229ed14e21fdcd39d49e3d6864693c0fbb4
diff --git a/media-fonts/source-sans/files/63-source-sans-3.conf b/media-fonts/source-sans/files/63-source-sans-3.conf
new file mode 100644
index 000000000000..d31050fc74d0
--- /dev/null
+++ b/media-fonts/source-sans/files/63-source-sans-3.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>Source Sans 3</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Source Sans 3</family>
+ </prefer>
+ </alias>
+</fontconfig>
diff --git a/media-fonts/source-sans/metadata.xml b/media-fonts/source-sans/metadata.xml
new file mode 100644
index 000000000000..bbdf5786938a
--- /dev/null
+++ b/media-fonts/source-sans/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>
+ <stabilize-allarches />
+ <upstream>
+ <remote-id type="github">adobe-fonts/source-sans</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-fonts/source-sans/source-sans-3.046.ebuild b/media-fonts/source-sans/source-sans-3.046.ebuild
new file mode 100644
index 000000000000..2668b3cb9565
--- /dev/null
+++ b/media-fonts/source-sans/source-sans-3.046.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MAJORV="${PV%%.*}"
+FONT_PN=${PN}-${MAJORV}
+
+inherit font
+
+DESCRIPTION="Sans serif font family for user interface environments"
+HOMEPAGE="https://adobe-fonts.github.io/source-sans/"
+SRC_URI="https://github.com/adobe-fonts/source-sans/archive/${PV}R.tar.gz -> source-sans-${PV}.tar.gz"
+S="${WORKDIR}/${P}R"
+
+LICENSE="OFL-1.1"
+SLOT="${MAJORV}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
+
+RESTRICT="binchecks strip"
+
+RDEPEND="media-libs/fontconfig"
+
+FONT_CONF=( "${FILESDIR}"/63-${FONT_PN}.conf )
+FONT_SUFFIX="otf"
+
+src_prepare() {
+ default
+ mv OTF/*.otf . || die
+}