summaryrefslogtreecommitdiff
blob: eb25b659a5f230ac95835e4e4f6534024b13be0d (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
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python2_7 )

inherit python-single-r1 toolchain-funcs

DESCRIPTION="Traces TeX fonts to PFA or PFB fonts (formerly pktrace)"
HOMEPAGE="http://lilypond.org/mftrace/"
SRC_URI="http://lilypond.org/downloads/sources/mftrace/${P}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="amd64 ~hppa ppc x86"
# SLOT 1 was used in pktrace ebuild
SLOT="1"
IUSE="test truetype"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND=">=app-text/t1utils-1.25
	media-gfx/potrace
	truetype? ( media-gfx/fontforge )
	virtual/latex-base
	${PYTHON_DEPS}"
DEPEND="${RDEPEND}
	test? ( media-gfx/fontforge )"

src_configure() {
	tc-export CC
	econf \
		--datadir="$(python_get_sitedir)"
}

src_compile() {
	emake CFLAGS="-Wall ${CFLAGS}"
}

src_install() {
	default
	python_optimize
}