public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-fonts/nerdfonts/
Date: Wed,  8 May 2024 02:25:05 +0000 (UTC)	[thread overview]
Message-ID: <1715134860.e003ee8c179a84a34fdd0df2e0f3c8eb699efbae.watermanpaint@gentoo> (raw)

commit:     e003ee8c179a84a34fdd0df2e0f3c8eb699efbae
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Wed May  8 02:21:00 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Wed May  8 02:21:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e003ee8c

media-fonts/nerdfonts: query font formats before setting FONT_SUFFIX

Suggested here: https://github.com/gentoo/guru/commit/0b15d030d05e7a1ff537f70e81a2d94a815eec8b#commitcomment-140845216

Fix variable order

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 media-fonts/nerdfonts/nerdfonts-3.2.0.ebuild | 90 ++++++++--------------------
 1 file changed, 25 insertions(+), 65 deletions(-)

diff --git a/media-fonts/nerdfonts/nerdfonts-3.2.0.ebuild b/media-fonts/nerdfonts/nerdfonts-3.2.0.ebuild
index 3096c23e11..f6d7900b6b 100644
--- a/media-fonts/nerdfonts/nerdfonts-3.2.0.ebuild
+++ b/media-fonts/nerdfonts/nerdfonts-3.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,22 +6,6 @@ EAPI=8
 inherit font
 
 DESCRIPTION="Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more"
-IUSE="0xproto 3270 agave anonymouspro arimo aurulentsansmono bigblueterminal bitstreamverasansmono
-cascadiacode cascadiamono codenewroman comicshannsmono commitmono cousine d2coding daddytimemono
-dejavusansmono droidsansmono envycoder fantasquesansmono firacode firamono geistmono gomono gohu
-hack hasklig heavydata hermit iawriter ibmplexmono inconsolata inconsolatago inconsolatalgc
-intelonemono iosevka iosevkaterm iosevkatermslab jetbrainsmono lekton liberationmono lilex
-martianmono meslo monaspace monofur monoid mononoki mplus nerdfontssymbolsonly noto opendyslexic
-overpass profont proggyclean recursive robotomono sharetechmono sourcecodepro spacemono terminus
-tinos ubuntu ubuntumono ubuntusans victormono zedmono"
-REQUIRED_USE="|| ( 0xproto 3270 agave anonymouspro arimo aurulentsansmono bigblueterminal bitstreamverasansmono
-cascadiacode cascadiamono codenewroman comicshannsmono commitmono cousine d2coding daddytimemono
-dejavusansmono droidsansmono envycoder fantasquesansmono firacode firamono geistmono gomono gohu
-hack hasklig heavydata hermit iawriter ibmplexmono inconsolata inconsolatago inconsolatalgc
-intelonemono iosevka iosevkaterm iosevkatermslab jetbrainsmono lekton liberationmono lilex
-martianmono meslo monaspace monofur monoid mononoki mplus nerdfontssymbolsonly noto opendyslexic
-overpass profont proggyclean recursive robotomono sharetechmono sourcecodepro spacemono terminus
-tinos ubuntu ubuntumono ubuntusans victormono zedmono )"
 HOMEPAGE="https://github.com/ryanoasis/nerd-fonts"
 SRC_URI="
 	0xproto? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/0xProto.tar.xz -> 0xProto-${PV}.tar.xz )
@@ -93,6 +77,23 @@ SRC_URI="
 	zedmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/ZedMono.tar.xz -> ZedMono-${PV}.tar.xz )
 "
 
+S="${WORKDIR}"
+
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE_FONTS="0xproto 3270 agave anonymouspro arimo aurulentsansmono bigblueterminal bitstreamverasansmono
+cascadiacode cascadiamono codenewroman comicshannsmono commitmono cousine d2coding daddytimemono
+dejavusansmono droidsansmono envycoder fantasquesansmono firacode firamono geistmono gomono gohu
+hack hasklig heavydata hermit iawriter ibmplexmono inconsolata inconsolatago inconsolatalgc
+intelonemono iosevka iosevkaterm iosevkatermslab jetbrainsmono lekton liberationmono lilex
+martianmono meslo monaspace monofur monoid mononoki mplus nerdfontssymbolsonly noto opendyslexic
+overpass profont proggyclean recursive robotomono sharetechmono sourcecodepro spacemono terminus
+tinos ubuntu ubuntumono ubuntusans victormono zedmono"
+IUSE="${IUSE_FONTS}"
+REQUIRED_USE="|| ( ${IUSE_FONTS} )"
+
 RDEPEND="
 	firacode? ( !media-fonts/firacode-nerdfont )
 	iosevka? ( !media-fonts/iosevka-nerdfont )
@@ -101,55 +102,14 @@ RDEPEND="
 	ubuntumono? ( !media-fonts/ubuntumono-nerdfont )
 "
 
-LICENSE="OFL-1.1"
-SLOT="0"
-KEYWORDS="~amd64"
-
-S="${WORKDIR}"
-
-FONT_SUFFIX="ttf otf"
+FONT_SUFFIX=""
 
-
-# From font.eclass
 src_install() {
-	local dir suffix commondoc
-
-	if [[ -n ${FONT_OPENTYPE_COMPAT} ]] && in_iuse opentype-compat && use opentype-compat ; then
-		font_wrap_opentype_compat
-	fi
-
-	if [[ $(declare -p FONT_S 2>/dev/null) == "declare -a"* ]]; then
-		# recreate the directory structure if FONT_S is an array
-		for dir in "${FONT_S[@]}"; do
-			pushd "${dir}" > /dev/null || die "pushd ${dir} failed"
-			insinto "${FONTDIR}/${dir#"${S}"}"
-			for suffix in ${FONT_SUFFIX}; do
-				if compgen -G "*.${suffix}" > /dev/null; then
-					doins *.${suffix}
-				fi
-			done
-			font_xfont_config "${dir}"
-			popd > /dev/null || die
-		done
-	else
-		pushd "${FONT_S:-${S}}" > /dev/null \
-			|| die "pushd ${FONT_S:-${S}} failed"
-		insinto "${FONTDIR}"
-		for suffix in ${FONT_SUFFIX}; do
-			if compgen -G "*.${suffix}" > /dev/null; then
-				doins *.${suffix}
-			fi
-		done
-		font_xfont_config
-		popd > /dev/null || die
-	fi
-
-	font_fontconfig
-
-	einstalldocs
-
-	# install common docs
-	for commondoc in COPYRIGHT FONTLOG.txt; do
-		[[ -s ${commondoc} ]] && dodoc ${commondoc}
+	for suffix in ttf otf; do
+		if nonfatal compgen -G "*.${suffix}" > /dev/null; then
+			FONT_SUFFIX+=" ${suffix}"
+		fi
 	done
+
+	font_src_install
 }


             reply	other threads:[~2024-05-08  2:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-08  2:25 Lucio Sauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-22 12:43 [gentoo-commits] repo/proj/guru:dev commit in: media-fonts/nerdfonts/ Steffen Winter
2024-04-11  6:39 Robert Greener
2024-04-10 20:41 Robert Greener
2024-04-10 20:41 Robert Greener
2024-04-03 18:27 Robert Greener
2024-04-03 18:27 Robert Greener
2024-04-01 16:38 Robert Greener

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=1715134860.e003ee8c179a84a34fdd0df2e0f3c8eb699efbae.watermanpaint@gentoo \
    --to=watermanpaint@posteo.net \
    --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