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 | |
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')
-rw-r--r-- | dev-libs/castxml/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/castxml/castxml-0.6.4.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/castxml/Manifest b/dev-libs/castxml/Manifest index afed59928523..fc05da820446 100644 --- a/dev-libs/castxml/Manifest +++ b/dev-libs/castxml/Manifest @@ -1,3 +1,4 @@ DIST castxml-0.5.1.tar.gz 106918 BLAKE2B 9268f149ea5a511d24cbbd0c7faec5bff5eade5a511961d3bb120409691bf2b8aca7f2978e048a759419c097d9d97219a61a122bd37d4f835c1d86827bfb07e3 SHA512 1dff8f5cc6932a159e1132c0b283a28414ea6007c942cac4ae15a1c31789f5bd29efd65a6b5b63d7bc48b3d68c3550804f31bee2658e51082269fc5ecc15590e DIST castxml-0.6.1.tar.gz 119089 BLAKE2B 8e7ea8254debc05fb2d145a1945228607bb7f903dd7748d81f7647f16f0814d331f98f4be1ab430bbb509afdb18c998be998496ef2a8a2e563169747cae1c91c SHA512 0477209979679ca5cae05d99e3ae9c2850f19a39a310a376047570d9e14b37e32aa2ebdea41d000194343e6ec9a27f21b0fcdf633d8b74733e655d9de70bc2a5 DIST castxml-0.6.2.tar.gz 119190 BLAKE2B fd3522a19898d96fbcbf7044d8d4c03ec7a5192df0ec28e04eecee753367aca76e53e7320f788877b449ca90ee4f441ade76e833ec6fdc1a73ad4f5dfa64c0e0 SHA512 eec6495b8ed837031b5d41cb09b8f70c497c865fbef47bc51b5f296fb9db852ded0bd13c45c3f3017d7d1eb5976557634e52369a24ddbf1f2cf9705c321bac3b +DIST castxml-0.6.4.tar.gz 121583 BLAKE2B 9e4992306bc1380b92ff4d8fcfcf24934036aaf4ecbf2b4db4dfb942ce16152c385b64f96ec0559e6e175f06cf15da0635e61324f92ed6fd0cefc7c83326885d SHA512 3494b7a31a397b390c412a5f445e40d92b3f02840a3eaf9fd94cef2c10fdd52b3621b3990056f2d0619a7d09de448a6988160406d3286472a8db5322a9b1caeb 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 +} |