ceres-ebuilds/media-fonts/maple/maple-7.7.ebuild
2025-09-30 19:21:19 +01:00

43 lines
No EOL
2.4 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit font
IUSE="default normal ligature ttf nerd cn"
REQUIRED_USE="|| ( default normal )
|| ( ttf nerd cn )"
DESCRIPTION="Open source monospace font with round corner, ligatures and Nerd-Font icons for IDE and terminal, fine-grained customization options."
HOMEPAGE="https://font.subf.dev/"
SRC_URI="default? ( ligature? ( ttf? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMono-TTF.zip )
nerd? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMono-NF-unhinted.zip )
cn? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMono-CN-unhinted.zip )
)
!ligature? ( ttf? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNL-TTF.zip )
nerd? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNL-NF-unhinted.zip )
cn? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNL-CN-unhinted.zip )
)
)
normal? ( ligature? ( ttf? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNormal-TTF.zip )
nerd? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNormal-NF-unhinted.zip )
cn? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNormal-CN-unhinted.zip )
)
!ligature? ( ttf? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNormalNL-TTF.zip )
nerd? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNormalNL-NF-unhinted.zip )
cn? ( https://github.com/subframe7536/maple-font/releases/download/v${PV}/MapleMonoNormalNL-CN-unhinted.zip )
)
)"
LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~x64-macos"
BDEPEND="app-arch/unzip"
S=${WORKDIR}
FONT_SUFFIX="ttf"
FONT_S="${PORTAGE_BUILDDIR}/work"