# Copyright 2023-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit font DESCRIPTION="High number of extra glyphs from popular 'iconic fonts'" HOMEPAGE="https://github.com/ryanoasis/nerd-fonts" SRC_URI="https://github.com/ryanoasis/nerd-fonts/releases/download/v${PV}/NerdFontsSymbolsOnly.tar.xz -> ${P}.tar.xz" S="${WORKDIR}" LICENSE="Apache-2.0 MIT OFL-1.1" SLOT="0" KEYWORDS="~amd64" IUSE="+wide mono" REQUIRED_USE="|| ( wide mono )" FONT_SUFFIX="ttf" src_prepare() { default_src_prepare if ! use wide; then rm "${S}/"*"NerdFont-"*.ttf fi if ! use mono; then rm "${S}/"*"NerdFontMono-"*.ttf fi }