mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
media-fonts/geist-font: new package, add 1.8.0
Signed-off-by: Leroy Tennie <gentoo@gtdm.me>
This commit is contained in:
3 files changed
+69
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST geist-font-1.8.0.zip 8033666 BLAKE2B 88e0d34a8e4eea673f6a52956aedf3f2d5358a9e9aa841143886e275183e66d6e3570fe24d2551e64320f136fbece0f9b00e9055f6674ceb4442f145a0e1a195 SHA512 6b8f20cc6c479005822a7982d925b446cd3533a1d9f95d5363a4d2f20062f978d881488a50d3afb6964026bd171cb086b771b95e556c55c549174fcffaed20bb
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@gtdm.me</email>
|
||||
<name>Leroy Tennie</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="geist">Install the standard "Geist" font</flag>
|
||||
<flag name="geistmono">Install the "Geist Mono" monospace font variant</flag>
|
||||
<flag name="geistpixel">Install the "Geist Pixel" font variant</flag>
|
||||
<flag name="otf">Install OpenType font files (.otf)</flag>
|
||||
<flag name="ttf">Install TrueType font files (.ttf)</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">vercel/geist-font</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in new issue
Block a user