aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Greener <dev@greener.sh>2024-04-18 19:30:38 +0100
committerRobert Greener <dev@greener.sh>2024-04-18 19:38:10 +0100
commit81999883d9e2bd015117e9dbf25f010b61c5e161 (patch)
tree0f3f65b335675f2db2c8e1cb23818e0d9665ea79 /media-fonts
parentemails.yml: disable explicit "dev" checkout (diff)
downloadguru-81999883d9e2bd015117e9dbf25f010b61c5e161.tar.gz
guru-81999883d9e2bd015117e9dbf25f010b61c5e161.tar.bz2
guru-81999883d9e2bd015117e9dbf25f010b61c5e161.zip
media-fonts/monaspace: new package, version 1.000
Signed-off-by: Robert Greener <dev@greener.sh>
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/monaspace/Manifest1
-rw-r--r--media-fonts/monaspace/metadata.xml14
-rw-r--r--media-fonts/monaspace/monaspace-1.000.ebuild38
3 files changed, 53 insertions, 0 deletions
diff --git a/media-fonts/monaspace/Manifest b/media-fonts/monaspace/Manifest
new file mode 100644
index 000000000..0f31d4662
--- /dev/null
+++ b/media-fonts/monaspace/Manifest
@@ -0,0 +1 @@
+DIST monaspace-v1.000.zip 122949327 BLAKE2B f22a24580e21edc2488dffd8dfce22551ff5ba88e199349e9d835b9ccb04dc3f6bec3b6a4c0f22e3ce8fba1e541fd3b8ddc6593dc21bb12a082833b199a1c00e SHA512 f06bfcc20c48b6c92b16620ee5f649a284bfc8d8d20c212b28613491a26a3627be02eede167eda331e66509163fd50fb435e89c07c6cff297efd503c273a102c
diff --git a/media-fonts/monaspace/metadata.xml b/media-fonts/monaspace/metadata.xml
new file mode 100644
index 000000000..afce25511
--- /dev/null
+++ b/media-fonts/monaspace/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev@greener.sh</email>
+ <name>Robert Greener</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">githubnext/monaspace</remote-id>
+ </upstream>
+ <use>
+ <flag name="variable">Whether to install the variable weight fonts</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-fonts/monaspace/monaspace-1.000.ebuild b/media-fonts/monaspace/monaspace-1.000.ebuild
new file mode 100644
index 000000000..171c61734
--- /dev/null
+++ b/media-fonts/monaspace/monaspace-1.000.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit font
+
+DESCRIPTION="A free and open-source typeface for developers"
+HOMEPAGE="https://github.com/githubnext/monaspace"
+SRC_URI="https://github.com/githubnext/monaspace/releases/download/v${PV}/monaspace-v${PV}.zip"
+
+S="${WORKDIR}/monaspace-v${PV}"
+LICENSE="OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64"
+
+FONT_S="${S}/fonts/total"
+FONT_SUFFIX=""
+IUSE="variable +otf"
+REQUIRED_USE="|| ( otf variable )"
+
+BDEPEND="app-arch/unzip"
+
+src_prepare() {
+ default
+
+ mkdir "${S}/fonts/total" || die
+
+ if use otf ; then
+ mv "${S}/fonts/otf/"* "${S}/fonts/total" || die
+ FONT_SUFFIX="${FONT_SUFFIX} otf"
+ fi
+
+ if use variable ; then
+ mv "${S}/fonts/variable/"* "${S}/fonts/total" || die
+ FONT_SUFFIX="${FONT_SUFFIX} ttf"
+ fi
+}