diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2021-01-25 12:01:31 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2021-01-25 12:54:02 +0100 |
commit | 2a80c54b0b68a862b05ea81c2d09e86bb1c9c00a (patch) | |
tree | 0242eeb34fbbcd3be7d1464788401c975934b7d2 /media-fonts/fira-mono/fira-mono-4.202.ebuild | |
parent | x11-plugins/wmbiff: remove unused patch (diff) | |
download | gentoo-2a80c54b0b68a862b05ea81c2d09e86bb1c9c00a.tar.gz gentoo-2a80c54b0b68a862b05ea81c2d09e86bb1c9c00a.tar.bz2 gentoo-2a80c54b0b68a862b05ea81c2d09e86bb1c9c00a.zip |
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@gentoo.org>
Diffstat (limited to 'media-fonts/fira-mono/fira-mono-4.202.ebuild')
-rw-r--r-- | media-fonts/fira-mono/fira-mono-4.202.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
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 000000000000..6a4e2221c274 --- /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 +} |