summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2022-12-24 10:47:34 +0100
committerThomas Beierlein <tomjbe@gentoo.org>2022-12-24 10:49:04 +0100
commit55a3b43e756680ee6a8e390e40b9173efb33129c (patch)
treea5353881276cd7f24c296c1e813088cd652237c3 /dev-libs/castxml
parentdev-libs/castxml: Fix test code (diff)
downloadgentoo-55a3b43e756680ee6a8e390e40b9173efb33129c.tar.gz
gentoo-55a3b43e756680ee6a8e390e40b9173efb33129c.tar.bz2
gentoo-55a3b43e756680ee6a8e390e40b9173efb33129c.zip
dev-libs/castxml: add 0.5.1
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Diffstat (limited to 'dev-libs/castxml')
-rw-r--r--dev-libs/castxml/Manifest1
-rw-r--r--dev-libs/castxml/castxml-0.5.1.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/castxml/Manifest b/dev-libs/castxml/Manifest
index 11a4f5007da9..de8dcc691a90 100644
--- a/dev-libs/castxml/Manifest
+++ b/dev-libs/castxml/Manifest
@@ -1 +1,2 @@
DIST castxml-0.4.5.tar.gz 104158 BLAKE2B 7d1642442d6908a7d7e1dd8f80a37b55ec8652191c4c93faf7f45601d730653d9b0e5af601f74aca7bce8579c0006eab0e9a2a75752abe2acbec1cfbf1522645 SHA512 c35c5d60dc7487d5dddba34de92590122db8457659458ee4e735fe9936dc59473bd31ed602e05e73651780f25a55ef5554e2daec0923ffb5a7575904320f5352
+DIST castxml-0.5.1.tar.gz 106918 BLAKE2B 9268f149ea5a511d24cbbd0c7faec5bff5eade5a511961d3bb120409691bf2b8aca7f2978e048a759419c097d9d97219a61a122bd37d4f835c1d86827bfb07e3 SHA512 1dff8f5cc6932a159e1132c0b283a28414ea6007c942cac4ae15a1c31789f5bd29efd65a6b5b63d7bc48b3d68c3550804f31bee2658e51082269fc5ecc15590e
diff --git a/dev-libs/castxml/castxml-0.5.1.ebuild b/dev-libs/castxml/castxml-0.5.1.ebuild
new file mode 100644
index 000000000000..7eee74c7e25a
--- /dev/null
+++ b/dev-libs/castxml/castxml-0.5.1.ebuild
@@ -0,0 +1,44 @@
+# 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 ~arm ~riscv ~x86"
+IUSE="+man test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ sys-devel/llvm:=
+ sys-devel/clang:=
+ "
+DEPEND="${RDEPEND}"
+BDEPEND="
+ ${RDEPEND}
+ man? ( dev-python/sphinx )
+ "
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-fix-tests.patch
+)
+
+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
+}