summaryrefslogtreecommitdiff
path: root/dev-libs/castxml/castxml-0.5.1.ebuild
blob: 7eee74c7e25af1ba47b683615e0325f2582629ac (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 cmake

DESCRIPTION="C-family abstract syntax tree XML output tool"
HOMEPAGE="https://github.com/CastXML/CastXML"
SRC_URI="https://github.com/CastXML/CastXML/archive/v${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/CastXML-${PV}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~riscv ~x86"
IUSE="+man test"

RESTRICT="!test? ( test )"

RDEPEND="
		sys-devel/llvm:=
		sys-devel/clang:=
	"
DEPEND="${RDEPEND}"
BDEPEND="
		${RDEPEND}
		man? ( dev-python/sphinx )
	"

PATCHES=(
	"${FILESDIR}"/${PN}-fix-tests.patch
)

src_configure() {
	local mycmakeargs=(
		-DCastXML_INSTALL_DOC_DIR="share/doc/${P}"
		-DCastXML_INSTALL_MAN_DIR="share/man"
		-DSPHINX_MAN="$(usex man)"
		-DSPHINX_HTML=OFF
		-DBUILD_TESTING="$(usex test)"
	)
	cmake_src_configure
}