summary refs log tree commit diff
path: root/media-fonts/tewi-font/tewi-font-9999.ebuild
blob: 198e259173c8da8437b4e1f67caab3a0e8de016e (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
36
37
38
39
40
41
42
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python2_7 python3_{4,5,6} )

inherit git-r3 font python-any-r1

DESCRIPTION="A small bitmap font"
HOMEPAGE="https://github.com/lucy/tewi-font"
EGIT_REPO_URI="https://github.com/lucy/tewi-font.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="+pcf"

DEPEND="x11-libs/libX11
	pcf? ( x11-apps/bdftopcf )
"
RDEPEND="x11-libs/libX11"

src_compile() {
	if use pcf; then
		emake
	else
		emake var
	fi
}

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

	if use pcf; then
		doins out/*
	else
		doins *.bdf
	fi

	font_src_install
}

Consider giving Nix/NixOS a try! <3