public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/fira-mono/
Date: Mon, 25 Jan 2021 11:54:17 +0000 (UTC)	[thread overview]
Message-ID: <1611575642.2a80c54b0b68a862b05ea81c2d09e86bb1c9c00a.monsieurp@gentoo> (raw)

commit:     2a80c54b0b68a862b05ea81c2d09e86bb1c9c00a
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 25 11:01:31 2021 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Jan 25 11:54:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a80c54b

media-fonts/fira-mono: version bump.

* Add two USE flags to install both the otf and ttf versions of the font.
* Pick otf as the default installed version.
* EAPI 7 bump whilst at it.

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 media-fonts/fira-mono/Manifest               |  1 +
 media-fonts/fira-mono/fira-mono-4.202.ebuild | 39 ++++++++++++++++++++++++++++
 media-fonts/fira-mono/metadata.xml           |  4 +++
 3 files changed, 44 insertions(+)

diff --git a/media-fonts/fira-mono/Manifest b/media-fonts/fira-mono/Manifest
index 25cbab25898..63140fadaa7 100644
--- a/media-fonts/fira-mono/Manifest
+++ b/media-fonts/fira-mono/Manifest
@@ -1 +1,2 @@
+DIST Fira-4.202.tar.gz 94581261 BLAKE2B 346e18a115098570a3540345d165018477a071d4ee3d9d305f8de5442bd6341439ebfc58ec364b428ddd1e1833224ce27bd9fdde4e4251173ef271c26d72c237 SHA512 fec770fa038f2aa0654f9382f95aa1266a2655970f4c7755b237af9d1c09f47ce719f8daf3afc39812fc69448b9481ee0e2a1414f1d007ad70b4254c92950ebb
 DIST FiraMonoFonts3205.zip 1210827 BLAKE2B 99152a5b62ecf32369b84ba3b66662cb5db1662d0bac5f7c2d1cefb7e3cd0e72be13a2177f2d08e77cae30cebba2ad5c55b0b34235c55317f9f726dc774e82f9 SHA512 d1a05ed2610e6d1c688b5709bd30ff6de4597c93db99d049fca9f8a8b3e2bfd2faf2de2a6d23a5b24efaa502e0cb2f23f5239cadc0bb5cb709d04da1d37cba15

diff --git a/media-fonts/fira-mono/fira-mono-4.202.ebuild b/media-fonts/fira-mono/fira-mono-4.202.ebuild
new file mode 100644
index 00000000000..6a4e2221c27
--- /dev/null
+++ b/media-fonts/fira-mono/fira-mono-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/FiraSans-*.ttf || die; }
+	use otf && { rm "${S}"/otf/FiraSans*.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-mono/metadata.xml b/media-fonts/fira-mono/metadata.xml
index d0f1df7c94c..4eb642804cf 100644
--- a/media-fonts/fira-mono/metadata.xml
+++ b/media-fonts/fira-mono/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>


             reply	other threads:[~2021-01-25 11:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-25 11:54 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-16 15:39 [gentoo-commits] repo/gentoo:master commit in: media-fonts/fira-mono/ Andreas Sturmlechner
2022-05-10  1:07 WANG Xuerui
2022-06-24 12:40 Joonas Niilola
2022-06-24 12:40 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1611575642.2a80c54b0b68a862b05ea81c2d09e86bb1c9c00a.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox