Files
guru/media-fonts/geist-font/geist-font-1.8.0.ebuild
gtdm 171968a490 media-fonts/geist-font: optimize ebuild
- Remove redundant S="${WORKDIR}/${P}"
- Use ${S} instead of ${WORKDIR}/${P} for DOCS
- Refactor src_install to use a nested loop for fonts and suffixes

Signed-off-by: Leroy Tennie <gentoo@gtdm.me>
2026-03-19 03:17:30 +01:00

36 lines
770 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit font
DESCRIPTION="Geist is a new font family for Vercel"
HOMEPAGE="https://vercel.com/font"
SRC_URI="https://github.com/vercel/geist-font/releases/download/${PV}/${P}.zip"
LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+geist +geistmono geistpixel +otf ttf"
REQUIRED_USE="|| ( geist geistmono geistpixel ) || ( otf ttf )"
DOCS="${S}/OFL.txt"
BDEPEND="app-arch/unzip"
src_install() {
local font suffix
for font in Geist GeistMono GeistPixel; do
use "${font,,}" || continue
for suffix in otf ttf; do
use "${suffix}" || continue
FONT_SUFFIX="${suffix}"
FONT_S="${S}/fonts/${font}/${suffix}"
font_src_install
done
done
}