summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-03-21 17:44:53 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-03-21 20:06:04 +0100
commitbc421934b81ea3805e86879fbe03720aab43aeef (patch)
tree5137acdcbd28855b442a0c16b722612626a4c7e6 /media-fonts/essays1743
parentmedia-fonts/lklug: EAPI-7 bump (diff)
downloadgentoo-bc421934b81ea3805e86879fbe03720aab43aeef.tar.gz
gentoo-bc421934b81ea3805e86879fbe03720aab43aeef.tar.bz2
gentoo-bc421934b81ea3805e86879fbe03720aab43aeef.zip
media-fonts/essays1743: EAPI-7 bump, add IUSE="otf,ttf"
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-fonts/essays1743')
-rw-r--r--media-fonts/essays1743/Manifest1
-rw-r--r--media-fonts/essays1743/essays1743-2.100.ebuild20
-rw-r--r--media-fonts/essays1743/metadata.xml12
3 files changed, 20 insertions, 13 deletions
diff --git a/media-fonts/essays1743/Manifest b/media-fonts/essays1743/Manifest
index bdfadfe099f3..ab431cabcc71 100644
--- a/media-fonts/essays1743/Manifest
+++ b/media-fonts/essays1743/Manifest
@@ -1 +1,2 @@
+DIST essays1743-2.100-1-otf.tar.gz 3582487 BLAKE2B 787ac5015b3da3ddcbad4a988c2b683159cb176789a39033e6103dddc5a101562b310e438cc1cebfc99ca1dc7efc15e256d3fd02c6cc283ebef70bc1ef8c7a0c SHA512 f1d205e9ad77be119a32b105a36c0a8ec45eedd19451c64643dbe13add46a6407d7cad9444d16d096b648405b4abb04b70bb943767308bcf7b6512398c2e4df6
DIST essays1743-2.100-1-ttf.tar.gz 3107168 BLAKE2B b8c9b55b3bf0178bdcd4fd25e0fc151ecf5666052530b596bf22f6ae362464b5f9947a8e8e877dfa775acb9898a180b3dafb2fdbf4a5724a266088321a72b1ec SHA512 31885e430713e6931b1bf2f7ce307e964576f1f2909a60c4a0a9adfa6293fd1c02200155d3bd56d0714210c7e653ee1980425539a554b304c3a3c6fb6121bd2e
diff --git a/media-fonts/essays1743/essays1743-2.100.ebuild b/media-fonts/essays1743/essays1743-2.100.ebuild
index 962931d7eb9e..8e23029b793f 100644
--- a/media-fonts/essays1743/essays1743-2.100.ebuild
+++ b/media-fonts/essays1743/essays1743-2.100.ebuild
@@ -1,22 +1,24 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit font
DESCRIPTION="John Stracke's Essays 1743 font"
HOMEPAGE="https://www.thibault.org/fonts/essays/"
-SRC_URI="https://www.thibault.org/fonts/essays/${P}-1-ttf.tar.gz"
+SRC_URI="otf? ( https://www.thibault.org/fonts/essays/${P}-1-otf.tar.gz )
+ ttf? ( https://www.thibault.org/fonts/essays/${P}-1-ttf.tar.gz )"
+S="${WORKDIR}/${PN}"
LICENSE="|| ( LGPL-2.1 OFL-1.1 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sparc ~x86 ~x64-macos"
-IUSE=""
+IUSE="+otf ttf"
-DEPEND=""
-RDEPEND=""
+REQUIRED_USE="|| ( otf ttf )"
-S="${WORKDIR}/${PN}"
-FONT_S="${S}"
-FONT_SUFFIX="ttf"
+src_install() {
+ local FONT_SUFFIX="$(usex otf otf '') $(usex ttf ttf '')"
+ font_src_install
+}
diff --git a/media-fonts/essays1743/metadata.xml b/media-fonts/essays1743/metadata.xml
index 13ee79314597..d8434021029a 100644
--- a/media-fonts/essays1743/metadata.xml
+++ b/media-fonts/essays1743/metadata.xml
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>fonts@gentoo.org</email>
- <name>Fonts</name>
-</maintainer>
+ <maintainer type="project">
+ <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>