summaryrefslogtreecommitdiff
path: root/media-fonts/geist-font/geist-font-1.8.0.ebuild
blob: 45d900a5040e8a264cf2da1306314dae616fae6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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
}