From f764295e9087205ffd73accbce22b86b2910825c Mon Sep 17 00:00:00 2001 From: Leroy Tennie Date: Sun, 15 Mar 2026 05:08:43 +0100 Subject: [PATCH] media-fonts/geist-font: new package, add 1.8.0 Signed-off-by: Leroy Tennie --- media-fonts/geist-font/Manifest | 1 + .../geist-font/geist-font-1.8.0.ebuild | 50 +++++++++++++++++++ media-fonts/geist-font/metadata.xml | 18 +++++++ 3 files changed, 69 insertions(+) create mode 100644 media-fonts/geist-font/Manifest create mode 100644 media-fonts/geist-font/geist-font-1.8.0.ebuild create mode 100644 media-fonts/geist-font/metadata.xml diff --git a/media-fonts/geist-font/Manifest b/media-fonts/geist-font/Manifest new file mode 100644 index 0000000000..573bf5e6e5 --- /dev/null +++ b/media-fonts/geist-font/Manifest @@ -0,0 +1 @@ +DIST geist-font-1.8.0.zip 8033666 BLAKE2B 88e0d34a8e4eea673f6a52956aedf3f2d5358a9e9aa841143886e275183e66d6e3570fe24d2551e64320f136fbece0f9b00e9055f6674ceb4442f145a0e1a195 SHA512 6b8f20cc6c479005822a7982d925b446cd3533a1d9f95d5363a4d2f20062f978d881488a50d3afb6964026bd171cb086b771b95e556c55c549174fcffaed20bb diff --git a/media-fonts/geist-font/geist-font-1.8.0.ebuild b/media-fonts/geist-font/geist-font-1.8.0.ebuild new file mode 100644 index 0000000000..7ebc8012cf --- /dev/null +++ b/media-fonts/geist-font/geist-font-1.8.0.ebuild @@ -0,0 +1,50 @@ +# 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" + +S="${WORKDIR}/${P}" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="+geist +geistmono geistpixel +otf ttf" +REQUIRED_USE="|| ( geist geistmono geistpixel ) || ( otf ttf )" + +DOCS="${WORKDIR}/${P}/OFL.txt" + +BDEPEND="app-arch/unzip" + +src_install() { + local FONT_S_ARRAY=() + local FONT_SUFFIX_LIST="" + + if use otf; then + local FONT_S=() + local FONT_SUFFIX="otf" + + use geist && { FONT_S+=( "${S}/fonts/Geist/otf" ); } + use geistmono && { FONT_S+=( "${S}/fonts/GeistMono/otf" ); } + use geistpixel && { FONT_S+=( "${S}/fonts/GeistPixel/otf" ); } + + font_src_install + fi + + if use ttf; then + local FONT_S=() + local FONT_SUFFIX="ttf" + + use geist && { FONT_S+=( "${S}/fonts/Geist/ttf" ); } + use geistmono && { FONT_S+=( "${S}/fonts/GeistMono/ttf" ); } + use geistpixel && { FONT_S+=( "${S}/fonts/GeistPixel/ttf" ); } + + font_src_install + fi +} diff --git a/media-fonts/geist-font/metadata.xml b/media-fonts/geist-font/metadata.xml new file mode 100644 index 0000000000..06c42d4dc8 --- /dev/null +++ b/media-fonts/geist-font/metadata.xml @@ -0,0 +1,18 @@ + + + + + gentoo@gtdm.me + Leroy Tennie + + + Install the standard "Geist" font + Install the "Geist Mono" monospace font variant + Install the "Geist Pixel" font variant + Install OpenType font files (.otf) + Install TrueType font files (.ttf) + + + vercel/geist-font + +