aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}