commit:     cee81cd5a1250af808998de5e7c68b2921f314d3
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Tue May  7 17:41:34 2024 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Tue May  7 17:41:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cee81cd5

dev-libs/castxml: add 0.6.6

Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 dev-libs/castxml/Manifest             |  1 +
 dev-libs/castxml/castxml-0.6.6.ebuild | 62 +++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-libs/castxml/Manifest b/dev-libs/castxml/Manifest
index 846a840faaaf..a3ce05381dcf 100644
--- a/dev-libs/castxml/Manifest
+++ b/dev-libs/castxml/Manifest
@@ -1,2 +1,3 @@
 DIST CastXML-0.6.5.tar.gz 121667 BLAKE2B 
820a96dfb9f2763c00f22028ff4c232c15bf587f376aa11effd59d8d1014581d8dff4e8a01a6420a8e8e720e72f072da4ed5d0600171718d42e352d0439371eb
 SHA512 
1f6759242fd6097fc97df34b1689ae6660e42d64717be90fa2d2f251847a465e26e17d6ff5318d82c47981005c826dad0fe65b3536b13d9192b9bccf61097f10
+DIST CastXML-0.6.6.tar.gz 122349 BLAKE2B 
ab2d928386e3128cd05fcc60c02799508e671883cffd33f952eb81167672e4c76057be21d3ba6b3f327051b015894914c83ad66b5ce87e43fa1b251dea5c5371
 SHA512 
6ba62b91193eb3458cbd0a0838a626528f66972661cc33c6ef87b760f8baa985afe998a467d07fd7d28c1363f5ba74300f5d49c182830d217a4e051a97a4a913
 DIST castxml-0.5.1.tar.gz 106918 BLAKE2B 
9268f149ea5a511d24cbbd0c7faec5bff5eade5a511961d3bb120409691bf2b8aca7f2978e048a759419c097d9d97219a61a122bd37d4f835c1d86827bfb07e3
 SHA512 
1dff8f5cc6932a159e1132c0b283a28414ea6007c942cac4ae15a1c31789f5bd29efd65a6b5b63d7bc48b3d68c3550804f31bee2658e51082269fc5ecc15590e

diff --git a/dev-libs/castxml/castxml-0.6.6.ebuild 
b/dev-libs/castxml/castxml-0.6.6.ebuild
new file mode 100644
index 000000000000..894410252a94
--- /dev/null
+++ b/dev-libs/castxml/castxml-0.6.6.ebuild
@@ -0,0 +1,62 @@
+# 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
+       )
+
+       cmake_src_test
+}

Reply via email to