Files
guru/media-fonts/monaspace/monaspace-1.200.ebuild
Michael Seifert 5c8006e5d3 media-fonts/monaspace: add 1.200, drop 1.000
Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
2025-06-06 14:26:55 +02:00

44 lines
951 B
Bash

# 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="frozen +otf variable"
REQUIRED_USE="|| ( frozen otf variable )"
BDEPEND="app-arch/unzip"
src_prepare() {
default
mkdir "${S}/fonts/total" || die
if use frozen ; then
mv "${S}/fonts/frozen/"* "${S}/fonts/total" || die
FONT_SUFFIX="${FONT_SUFFIX} ttf"
fi
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
}