commit: dc45d94e472456e0f7353766364877ee6dc379a7 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> AuthorDate: Fri Nov 29 16:19:13 2024 +0000 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> CommitDate: Fri Nov 29 16:19:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc45d94e
dev-libs/castxml: add 0.6.10 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> dev-libs/castxml/Manifest | 1 + dev-libs/castxml/castxml-0.6.10.ebuild | 64 ++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-libs/castxml/Manifest b/dev-libs/castxml/Manifest index 0575492df556..3f2afc899c90 100644 --- a/dev-libs/castxml/Manifest +++ b/dev-libs/castxml/Manifest @@ -1 +1,2 @@ +DIST CastXML-0.6.10.tar.gz 123149 BLAKE2B c69caf043bdf733cbc519109ba0e2c675f169fbcbf3fe4d4c13c509fcd01838eab9e71b69369f152c7c3d41d48e73f8c1288091cd8addcefdb04de254f79ce0a SHA512 40d16714600f20f94d2b2da6d0021665f5115faf25d3d92d76b320fd8167f093991ad6e36ce0cbf9979d5ab265f246018f609f4b96a46b115bed411d398937cc DIST CastXML-0.6.8.tar.gz 122609 BLAKE2B 3266535a2f08e4aa3c344f2d26cb0b98ba5d3736036ba95face5a603bbc9547a53647892e1f11cf748d954c556bec2099a734a9b9e566254186e9765c0410413 SHA512 7645286ef7fe89ebd1d582a289f9446a96f9aa6db89539314cc2a77bd005ca203d0346f5b4f7d14b83baefc41e0a2a8e55585b429985777cff6c3c0ffc1ef6ce diff --git a/dev-libs/castxml/castxml-0.6.10.ebuild b/dev-libs/castxml/castxml-0.6.10.ebuild new file mode 100644 index 000000000000..bf58e6d3db2b --- /dev/null +++ b/dev-libs/castxml/castxml-0.6.10.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( {17..19} ) + +inherit cmake llvm-r1 + +MY_P=CastXML-${PV} +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 + -> ${MY_P}.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~riscv ~x86" +IUSE="+man test" +RESTRICT="!test? ( test )" + +DEPEND=" + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}= + ') +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + man? ( dev-python/sphinx ) +" + +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 + cmd.cc-gnu-tgt-i386-opt-E + cmd.cc-gnu-c-tgt-i386-opt-E + ) + + cmake_src_test +}