aboutsummaryrefslogtreecommitdiff
blob: d8da251a6751eb20307cefea567daa778f6bff07 (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
44
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="An util for validating and sanitising OpenType files"
HOMEPAGE="https://github.com/khaledhosny/ots"
SRC_URI="https://github.com/khaledhosny/ots/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
SLOT="0"
IUSE="debug sanitize test"

RDEPEND="
	media-libs/freetype
	media-libs/woff2
	sys-libs/zlib

	sanitize? ( app-arch/lz4 )
"
DEPEND="
	${RDEPEND}
	test? ( dev-cpp/gtest )
"

RESTRICT="!test? ( test )"
DOCS=(
	README.md
	docs/{DesignDoc,HowToFix,HowToTest}.md
)

PATCHES=( "${FILESDIR}/${P}-meson-gtest.diff" )

src_configure() {
	local emesonargs=(
		$(meson_use debug)
		$(meson_use sanitize graphite)
		$(meson_use test tests)
	)
	meson_src_configure
}