summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2021-01-25 12:22:12 +0100
committerPatrice Clement <monsieurp@gentoo.org>2021-01-25 12:54:03 +0100
commit18c858830757d6146346314c1d148f5ab34d3c96 (patch)
tree72327d96bc31b156cf6a20ac614608687b6e1e80 /media-fonts
parentmedia-fonts/fira-mono: version bump. (diff)
downloadgentoo-18c858830757d6146346314c1d148f5ab34d3c96.tar.gz
gentoo-18c858830757d6146346314c1d148f5ab34d3c96.tar.bz2
gentoo-18c858830757d6146346314c1d148f5ab34d3c96.zip
media-fonts/fira-sans: version bump.
* Apply similar changes made to the fira-mono ebuild. Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/fira-sans/Manifest1
-rw-r--r--media-fonts/fira-sans/fira-sans-4.202.ebuild39
-rw-r--r--media-fonts/fira-sans/metadata.xml4
3 files changed, 44 insertions, 0 deletions
diff --git a/media-fonts/fira-sans/Manifest b/media-fonts/fira-sans/Manifest
index 48405656ff7..9588c7af3a3 100644
--- a/media-fonts/fira-sans/Manifest
+++ b/media-fonts/fira-sans/Manifest
@@ -1,2 +1,3 @@
+DIST Fira-4.202.tar.gz 94581261 BLAKE2B 346e18a115098570a3540345d165018477a071d4ee3d9d305f8de5442bd6341439ebfc58ec364b428ddd1e1833224ce27bd9fdde4e4251173ef271c26d72c237 SHA512 fec770fa038f2aa0654f9382f95aa1266a2655970f4c7755b237af9d1c09f47ce719f8daf3afc39812fc69448b9481ee0e2a1414f1d007ad70b4254c92950ebb
DIST FiraFonts4002.zip 22975177 BLAKE2B 6dfc143568605ecd4fa956d8ef567ce4d86e187e985e9f43213dda41dd9de2d417e7e29dafcf27ab97ffff11ca6571f0cd5ca084e623fa6a6dd84297cf514013 SHA512 9ce5350cea8fddf5fc5282a23ffe3d142ddb6fb778a78308bf4083be50f036feb1faadf72ade5c0e62638302c26a1ead91692ca016e0220d152871294b467508
DIST FiraFonts4105.zip 27227111 BLAKE2B c8ef15673735537c0d849c3e0dfa46a0b9cdcb7fff1d82d50d18b0119192282fa3956f57fa182420f71479f9479a4b8da5f87cddedea2469fd01562dc7bf8ee3 SHA512 f451e99d761ae9e714461e1ac244ee1c12af11751f61c94fa7ed10bf04bfa26520fbf50d1aeae55346348aec932481888780ae12df27349c966ba79a3eeae37d
diff --git a/media-fonts/fira-sans/fira-sans-4.202.ebuild b/media-fonts/fira-sans/fira-sans-4.202.ebuild
new file mode 100644
index 00000000000..18116e8c423
--- /dev/null
+++ b/media-fonts/fira-sans/fira-sans-4.202.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
+
+MY_PN="Fira"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Default monospaced typeface for FirefoxOS, designed for legibility"
+HOMEPAGE="https://mozilla.github.io/Fira"
+SRC_URI="https://github.com/mozilla/Fira/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="otf +ttf"
+
+REQUIRED_USE="|| ( otf ttf )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( README.md LICENSE )
+
+src_prepare() {
+ default
+
+ use ttf && { rm "${S}"/ttf/FiraMono-*.ttf || die; }
+ use otf && { rm "${S}"/otf/FiraMono*.otf || die; }
+}
+
+src_install() {
+ use otf && { FONT_S="${S}/otf"; FONT_SUFFIX="otf"; }
+ use ttf && { FONT_S="${S}/ttf"; FONT_SUFFIX="ttf"; }
+
+ font_src_install
+ einstalldocs
+}
diff --git a/media-fonts/fira-sans/metadata.xml b/media-fonts/fira-sans/metadata.xml
index d0f1df7c94c..4eb642804cf 100644
--- a/media-fonts/fira-sans/metadata.xml
+++ b/media-fonts/fira-sans/metadata.xml
@@ -5,4 +5,8 @@
<email>fonts@gentoo.org</email>
<name>Fonts</name>
</maintainer>
+ <use>
+ <flag name="otf">Install the OpenType version of the font</flag>
+ <flag name="ttf">Install the TrueType version of the font</flag>
+ </use>
</pkgmetadata>