summaryrefslogtreecommitdiff
path: root/dev-perl/Font-AFM/Font-AFM-1.200.0-r3.ebuild
blob: 070e6541d5ad5d421d28c905a1855b1722cb78b6 (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DIST_AUTHOR=GAAS
DIST_VERSION=1.20
inherit perl-module

DESCRIPTION="Parse Adobe Font Metric files"

SLOT="0"
KEYWORDS="amd64 ppc ~riscv sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="
	test? (
		media-fonts/urw-fonts
	)
"

PATCHES=(
	"${FILESDIR}/${PN}-1.20-custom-test-font.patch"
)

src_test() {
	# nimbus sans l medium r normal iso8859-1
	TEST_FONT="n019003l" \
		TEST_FONT_WIDTH="4279" \
		METRICS="${EPREFIX}/usr/share/fonts/urw-fonts" \
		perl-module_src_test
}