summary refs log tree commit diff
path: root/media-fonts/siji/siji-9999.ebuild
blob: 5a50658e33205db14e6f2dfca0e2dab543bf0b4b (plain) (blame)
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
33
34
35
# Copyright 2018-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit git-r3 font

DESCRIPTION="An iconic bitmap font based on Stlarch with additional glyphs"
HOMEPAGE="https://github.com/stark/siji"
EGIT_REPO_URI="https://github.com/stark/siji.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="+pcf"

DEPEND="x11-apps/bdftopcf"
RDEPEND="${DEPEND}"
BDEPEND=""

src_compile() {
	if use pcf; then
		bdftopcf bdf/${PN}.bdf -o pcf/${PN}.pcf
	fi
}

src_install() {
	insinto "/usr/share/fonts/${PN}"

	if use pcf; then
		doins pcf/*
	else
		doins bdf/*
	fi
}

Consider giving Nix/NixOS a try! <3