mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-07 06:02:58 -04:00
media-fonts/nerdfonts: DRY up ebuild by generating SRC_URI and IUSE
Fixes ExcessiveLineLength QA notice. Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
DIST -AdwaitaMono-3.4.0.tar.xz 3438012 BLAKE2B 8f4a52a04535b14913d0baf15076dfca1be8f6a08308db74b4460938eea69047b61cb1da94c11fc629379f5caa801552d8d32aebb8a5548d6a57c8109a63550a SHA512 d494d6fde0d10458fa0da1eae9b9d12d0ba42e840fd39ce30a95076f31e66620c960e0b37496fea0960916677cf2e35ae4d868dd6f39beb329b5639c2b420ec1
|
||||
DIST 0xProto-3.4.0.tar.xz 2188748 BLAKE2B fed942b6bf1c88404c485609b756535c13020edbe567c7169bf8cebd835c028a2b8e74b91e6a9fd80d1f60659dbf3a27136bd84ae6a8140b053fc11b1959d80b SHA512 e23f5b4d777d36caa76e075b20e048f924e5136e2c571161cebc99091caf684d72ce0d0f4d0318ef986b1c115eaab839af53b02c3d7d88c7130f81194cbbdeb0
|
||||
DIST 3270-3.4.0.tar.xz 4935028 BLAKE2B 814f8348eb45651af0a33a1ff024874534849e050e57ae2e71de017d1289a245abaef7c98c0cb0d05b59ddd98a0acb27a9d9724358d19e3282a406dce2cfda48 SHA512 5d11cc1cff583aa5074b99e60dfd288eadca4f21ae767345677c78e759463355f6ba6c130fc5a725b08891caccd7d12ca394ca8dd8301c5473a0c1fc78874456
|
||||
DIST AdwaitaMono-3.4.0.tar.xz 3438012 BLAKE2B 8f4a52a04535b14913d0baf15076dfca1be8f6a08308db74b4460938eea69047b61cb1da94c11fc629379f5caa801552d8d32aebb8a5548d6a57c8109a63550a SHA512 d494d6fde0d10458fa0da1eae9b9d12d0ba42e840fd39ce30a95076f31e66620c960e0b37496fea0960916677cf2e35ae4d868dd6f39beb329b5639c2b420ec1
|
||||
DIST Agave-3.4.0.tar.xz 2331100 BLAKE2B 768ea02945bea1276af9c374b1993f133d266e9047bf8bfaa0bebd8724288a0691640b1ffdfb0ab19fe6d26c8d95474a73244b8d2fb4dde753c377bf7335b9ce SHA512 4c48d98c51bbf68c740d289772cfc4be08c19aa31bbd5fe16d5a8f85aa40e13cda320c1fe07dc861ff4a4cd22a3ade6a2abc6aaaa55e0fea76bb196a31e29fe1
|
||||
DIST AnonymousPro-3.4.0.tar.xz 2416332 BLAKE2B e079896dda7f5b543f51e671a1f7be197b801e6166f936a5b809bf93864eeafd2f5898e08bc018846a3ff2c9159f437d672418fbc2b477f12f05a42e4f1cd8c4 SHA512 1df0a476af13ca167cb8272c07f1fc1fc76294863fcbd07ed588e1822797e736fff47d7d14e1e59927309081d895a7c5cd5656257b6a40adbbe9110eb864aa04
|
||||
DIST Arimo-3.4.0.tar.xz 1896012 BLAKE2B 86f09aa2f28cdf67ae039539ae8dc92abb25c2cf38daedf13eb19185a420785d52d528588e1efed0dd8dfae553f71be30c6931684720edc8eac293ad7c9013ca SHA512 1617bb22726ef415cad3e8ba8e90f86fab6b4405c7d3a15343a4a4e9d40d226c1ff43179df4ea011d7fbf8afd419aaa89ac91c7931f3064eb9c92460531aa890
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -7,96 +7,33 @@ inherit font
|
||||
|
||||
DESCRIPTION="Patched font collection with a high number of glyphs (icons)"
|
||||
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 )
|
||||
3270? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/3270.tar.xz -> 3270-${PV}.tar.xz )
|
||||
adwaitamono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/AdwaitaMono.tar.xz -> -AdwaitaMono-${PV}.tar.xz )
|
||||
agave? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Agave.tar.xz -> Agave-${PV}.tar.xz )
|
||||
anonymouspro? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/AnonymousPro.tar.xz -> AnonymousPro-${PV}.tar.xz )
|
||||
arimo? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Arimo.tar.xz -> Arimo-${PV}.tar.xz )
|
||||
atkinsonhyperlegiblemono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/AtkinsonHyperlegibleMono.tar.xz -> AtkinsonHyperlegibleMono-${PV}.tar.xz )
|
||||
aurulentsansmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/AurulentSansMono.tar.xz -> AurulentSansMono-${PV}.tar.xz )
|
||||
bigblueterminal? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/BigBlueTerminal.tar.xz -> BigBlueTerminal-${PV}.tar.xz )
|
||||
bitstreamverasansmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/BitstreamVeraSansMono.tar.xz -> BitstreamVeraSansMono-${PV}.tar.xz )
|
||||
cascadiacode? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/CascadiaCode.tar.xz -> CascadiaCode-${PV}.tar.xz )
|
||||
cascadiamono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/CascadiaMono.tar.xz -> CascadiaMono-${PV}.tar.xz )
|
||||
codenewroman? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/CodeNewRoman.tar.xz -> CodeNewRoman-${PV}.tar.xz )
|
||||
comicshannsmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/ComicShannsMono.tar.xz -> ComicShannsMono-${PV}.tar.xz )
|
||||
commitmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/CommitMono.tar.xz -> CommitMono-${PV}.tar.xz )
|
||||
cousine? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Cousine.tar.xz -> Cousine-${PV}.tar.xz )
|
||||
d2coding? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/D2Coding.tar.xz -> D2Coding-${PV}.tar.xz )
|
||||
daddytimemono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/DaddyTimeMono.tar.xz -> DaddyTimeMono-${PV}.tar.xz )
|
||||
dejavusansmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/DejaVuSansMono.tar.xz -> DejaVuSansMono-${PV}.tar.xz )
|
||||
departuremono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/DepartureMono.tar.xz -> DepartureMono-${PV}.tar.xz )
|
||||
droidsansmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/DroidSansMono.tar.xz -> DroidSansMono-${PV}.tar.xz )
|
||||
envycoder? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/EnvyCodeR.tar.xz -> EnvyCodeR-${PV}.tar.xz )
|
||||
fantasquesansmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/FantasqueSansMono.tar.xz -> FantasqueSansMono-${PV}.tar.xz )
|
||||
firacode? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/FiraCode.tar.xz -> FiraCode-${PV}.tar.xz )
|
||||
firamono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/FiraMono.tar.xz -> FiraMono-${PV}.tar.xz )
|
||||
geistmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/GeistMono.tar.xz -> GeistMono-${PV}.tar.xz )
|
||||
gomono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Go-Mono.tar.xz -> Go-Mono-${PV}.tar.xz )
|
||||
gohu? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Gohu.tar.xz -> Gohu-${PV}.tar.xz )
|
||||
hack? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Hack.tar.xz -> Hack-${PV}.tar.xz )
|
||||
hasklig? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Hasklig.tar.xz -> Hasklig-${PV}.tar.xz )
|
||||
heavydata? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/HeavyData.tar.xz -> HeavyData-${PV}.tar.xz )
|
||||
hermit? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Hermit.tar.xz -> Hermit-${PV}.tar.xz )
|
||||
iawriter? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/iA-Writer.tar.xz -> iA-Writer-${PV}.tar.xz )
|
||||
ibmplexmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/IBMPlexMono.tar.xz -> IBMPlexMono-${PV}.tar.xz )
|
||||
inconsolata? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Inconsolata.tar.xz -> Inconsolata-${PV}.tar.xz )
|
||||
inconsolatago? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/InconsolataGo.tar.xz -> InconsolataGo-${PV}.tar.xz )
|
||||
inconsolatalgc? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/InconsolataLGC.tar.xz -> InconsolataLGC-${PV}.tar.xz )
|
||||
intelonemono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/IntelOneMono.tar.xz -> IntelOneMono-${PV}.tar.xz )
|
||||
iosevka? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Iosevka.tar.xz -> Iosevka-${PV}.tar.xz )
|
||||
iosevkaterm? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/IosevkaTerm.tar.xz -> IosevkaTerm-${PV}.tar.xz )
|
||||
iosevkatermslab? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/IosevkaTermSlab.tar.xz -> IosevkaTermSlab-${PV}.tar.xz )
|
||||
jetbrainsmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/JetBrainsMono.tar.xz -> JetBrainsMono-${PV}.tar.xz )
|
||||
lekton? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Lekton.tar.xz -> Lekton-${PV}.tar.xz )
|
||||
liberationmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/LiberationMono.tar.xz -> LiberationMono-${PV}.tar.xz )
|
||||
lilex? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Lilex.tar.xz -> Lilex-${PV}.tar.xz )
|
||||
martianmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/MartianMono.tar.xz -> MartianMono-${PV}.tar.xz )
|
||||
meslo? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Meslo.tar.xz -> Meslo-${PV}.tar.xz )
|
||||
monaspace? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Monaspace.tar.xz -> Monaspace-${PV}.tar.xz )
|
||||
monofur? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Monofur.tar.xz -> Monofur-${PV}.tar.xz )
|
||||
monoid? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Monoid.tar.xz -> Monoid-${PV}.tar.xz )
|
||||
mononoki? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Mononoki.tar.xz -> Mononoki-${PV}.tar.xz )
|
||||
mplus? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/MPlus.tar.xz -> MPlus-${PV}.tar.xz )
|
||||
nerdfontssymbolsonly? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/NerdFontsSymbolsOnly.tar.xz -> NerdFontsSymbolsOnly-${PV}.tar.xz )
|
||||
noto? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Noto.tar.xz -> Noto-${PV}.tar.xz )
|
||||
opendyslexic? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/OpenDyslexic.tar.xz -> OpenDyslexic-${PV}.tar.xz )
|
||||
overpass? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Overpass.tar.xz -> Overpass-${PV}.tar.xz )
|
||||
profont? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/ProFont.tar.xz -> ProFont-${PV}.tar.xz )
|
||||
proggyclean? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/ProggyClean.tar.xz -> ProggyClean-${PV}.tar.xz )
|
||||
recursive? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Recursive.tar.xz -> Recursive-${PV}.tar.xz )
|
||||
robotomono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/RobotoMono.tar.xz -> RobotoMono-${PV}.tar.xz )
|
||||
sharetechmono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/ShareTechMono.tar.xz -> ShareTechMono-${PV}.tar.xz )
|
||||
sourcecodepro? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/SourceCodePro.tar.xz -> SourceCodePro-${PV}.tar.xz )
|
||||
spacemono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/SpaceMono.tar.xz -> SpaceMono-${PV}.tar.xz )
|
||||
terminus? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Terminus.tar.xz -> Terminus-${PV}.tar.xz )
|
||||
tinos? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Tinos.tar.xz -> Tinos-${PV}.tar.xz )
|
||||
ubuntu? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/Ubuntu.tar.xz -> Ubuntu-${PV}.tar.xz )
|
||||
ubuntumono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/UbuntuMono.tar.xz -> UbuntuMono-${PV}.tar.xz )
|
||||
ubuntusans? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/UbuntuSans.tar.xz -> UbuntuSans-${PV}.tar.xz )
|
||||
victormono? ( https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/VictorMono.tar.xz -> VictorMono-${PV}.tar.xz )
|
||||
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 ~arm64"
|
||||
|
||||
IUSE_FONTS="0xproto 3270 adwaitamono agave anonymouspro arimo
|
||||
atkinsonhyperlegiblemono aurulentsansmono bigblueterminal bitstreamverasansmono
|
||||
cascadiacode cascadiamono codenewroman comicshannsmono commitmono cousine
|
||||
d2coding daddytimemono dejavusansmono departuremono 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"
|
||||
FONTS=(
|
||||
0xProto 3270 AdwaitaMono Agave AnonymousPro Arimo AtkinsonHyperlegibleMono
|
||||
AurulentSansMono BigBlueTerminal BitstreamVeraSansMono CascadiaCode
|
||||
CascadiaMono CodeNewRoman ComicShannsMono CommitMono Cousine D2Coding
|
||||
DaddyTimeMono DejaVuSansMono DepartureMono DroidSansMono EnvyCodeR
|
||||
FantasqueSansMono FiraCode FiraMono GeistMono Go-Mono Gohu Hack Hasklig
|
||||
HeavyData Hermit iA-Writer 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_FONTS=""
|
||||
BASE_URI="https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}"
|
||||
for font in ${FONTS[*]}; do
|
||||
font_use=${font,,}
|
||||
font_use=${font_use//-}
|
||||
IUSE_FONTS+=" ${font_use}"
|
||||
SRC_URI+=" ${font_use}? ( ${BASE_URI}/${font}.tar.xz -> ${font}-${PV}.tar.xz )"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_FONTS} +nerdfontssymbolsonly"
|
||||
REQUIRED_USE="|| ( ${IUSE_FONTS} )"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user