You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/castxml/castxml-0.4.5.ebuild

41 lines
806 B

# 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 ~x86"
IUSE="+man test"
RESTRICT="!test? ( test )"
RDEPEND="
sys-devel/llvm:=
sys-devel/clang:=
"
DEPEND="${RDEPEND}"
BDEPEND="
${RDEPEND}
man? ( dev-python/sphinx )
"
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
}