diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2024-03-24 22:06:09 +0100 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2024-03-24 22:06:09 +0100 |
commit | 6acfa930742dde01051b6b566f2d43c9870826fb (patch) | |
tree | f2e9ef22eda926b3c95e418cd9a7346077fe3d20 /dev-libs/castxml/castxml-0.6.4.ebuild | |
parent | sci-libs/plplot: drop 5.15.0-r105 (diff) | |
download | gentoo-6acfa930742dde01051b6b566f2d43c9870826fb.tar.gz gentoo-6acfa930742dde01051b6b566f2d43c9870826fb.tar.bz2 gentoo-6acfa930742dde01051b6b566f2d43c9870826fb.zip |
dev-libs/castxml: add 0.6.4
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Diffstat (limited to 'dev-libs/castxml/castxml-0.6.4.ebuild')
-rw-r--r-- | dev-libs/castxml/castxml-0.6.4.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/castxml/castxml-0.6.4.ebuild b/dev-libs/castxml/castxml-0.6.4.ebuild new file mode 100644 index 000000000000..f255915f61eb --- /dev/null +++ b/dev-libs/castxml/castxml-0.6.4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_MAX_SLOT=18 +inherit cmake llvm + +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 )" + +# See comment in llvm.eclass for why we don't depend on LLVM if we already +# depend on Clang. +RDEPEND=" + <sys-devel/clang-$((LLVM_MAX_SLOT + 1)):= +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${RDEPEND} + man? ( dev-python/sphinx ) +" + +PATCHES=( +# "${FILESDIR}"/${PN}-fix-tests.patch +) + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +src_configure() { + local mycmakeargs=( + -DCastXML_INSTALL_DOC_DIR="share/doc/${PF}" + -DCastXML_INSTALL_MAN_DIR="share/man" + -DSPHINX_MAN="$(usex man)" + -DSPHINX_HTML=OFF + -DBUILD_TESTING="$(usex test)" + ) + cmake_src_configure +} + +src_test() { + local CMAKE_SKIP_TESTS=( + # Regex doesn't match the full build path + cmd.input-missing + cmd.rsp-missing + + # Gets confused by extra #defines we set for hardening etc (bug #891813) + cmd.cc-gnu-src-cxx-E + cmd.cc-gnu-src-cxx-cmd + cmd.cc-gnu-c-src-c-E + cmd.cc-gnu-c-src-c-cmd + ) + + cmake_src_test +} |