summaryrefslogtreecommitdiff
path: root/media-fonts/victor-mono/victor-mono-1.5.4.ebuild
blob: 3db83c69f32dcc570f633058b2a4fad2598b3193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit font

DESCRIPTION="A free programming font with cursive italics and ligatures"
HOMEPAGE="https://rubjo.github.io/victor-mono/"
SRC_URI="https://github.com/rubjo/victor-mono/raw/v${PV}/public/VictorMonoAll.zip -> ${P}.zip"
S="${WORKDIR}"

LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="+otf ttf"
REQUIRED_USE="|| ( otf ttf )"
RESTRICT="binchecks strip"

BDEPEND="app-arch/unzip"

FONT_CONF=(
	"${FILESDIR}/66-victor-mono.conf"
)

src_install() {
	use otf && { FONT_S="${S}/OTF"; FONT_SUFFIX="otf"; }
	use ttf && { FONT_S="${S}/TTF"; FONT_SUFFIX="ttf"; }

	font_src_install
}