diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2020-12-30 20:32:04 +0000 |
---|---|---|
committer | Aisha Tammy <gentoo@aisha.cc> | 2020-12-30 20:32:04 +0000 |
commit | 9c31a44bb90881749ea9e1eedce9e03cb01bf84d (patch) | |
tree | df7c374565c6087af91ba283c9073ee8e3c54693 /dev-cpp | |
parent | dev-python/bz2file: add and fix tests (diff) | |
download | sci-9c31a44bb90881749ea9e1eedce9e03cb01bf84d.tar.gz sci-9c31a44bb90881749ea9e1eedce9e03cb01bf84d.tar.bz2 sci-9c31a44bb90881749ea9e1eedce9e03cb01bf84d.zip |
dev-cpp/castxml: version bump to 0.3.6
also fix install paths and EAPI 7
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/castxml/Manifest | 1 | ||||
-rw-r--r-- | dev-cpp/castxml/castxml-0.3.6.ebuild | 33 | ||||
-rw-r--r-- | dev-cpp/castxml/castxml-9999.ebuild | 33 | ||||
-rw-r--r-- | dev-cpp/castxml/files/castxml-0.3.6-install-paths.patch | 12 |
4 files changed, 64 insertions, 15 deletions
diff --git a/dev-cpp/castxml/Manifest b/dev-cpp/castxml/Manifest index 0169371f2..74cec9d45 100644 --- a/dev-cpp/castxml/Manifest +++ b/dev-cpp/castxml/Manifest @@ -1 +1,2 @@ DIST castxml-0.2.0.tar.gz 94793 BLAKE2B 3b1560b261d68ab86f3286c80166707f677835b020d15ce3e0a6533ec467afac28505a834bf974127ea48b4d873ef617b26858b16bb8242f8688aa4be759b552 SHA512 e0c7281e44dacb9c7605cb11dd9c07a4b3919fa78ac6423f2f165e19ce4336407383ad501f1f75f287a6dbb1adab021275d4c575e2cb34c61577476b0958294a +DIST castxml-0.3.6.tar.gz 95844 BLAKE2B c0ab3c7ba29b2abb4755320d97c36ee850135fff6fd5bb7a9436d68f50e9c6a80108ac95958fe9b51afaf6b4ebdde7db825a9cdf047c5e8f47f4f57fba77dcc1 SHA512 c850ce9ce0ef716cf64139d4311955deb8373db691e3cb7348932bbd3945056366838187603e5850a088911a8be6b0e5b53e2c700c0b5c8fed71008de7ab2350 diff --git a/dev-cpp/castxml/castxml-0.3.6.ebuild b/dev-cpp/castxml/castxml-0.3.6.ebuild new file mode 100644 index 000000000..dbf7fff49 --- /dev/null +++ b/dev-cpp/castxml/castxml-0.3.6.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake llvm + +MY_PN="CastXML" + +DESCRIPTION="CastXML is a C-family abstract syntax tree XML output tool." +HOMEPAGE="https://github.com/CastXML/CastXML" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/CastXML/CastXML" +else + SRC_URI="https://github.com/CastXML/CastXML/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="${RDEPEND}" +RDEPEND=" + dev-libs/glib:2 + dev-libs/libxml2 + sys-devel/llvm:= + sys-devel/clang:= +" + +PATCHES=( "${FILESDIR}"/${PN}-0.3.6-install-paths.patch ) diff --git a/dev-cpp/castxml/castxml-9999.ebuild b/dev-cpp/castxml/castxml-9999.ebuild index 47c25a07f..dbf7fff49 100644 --- a/dev-cpp/castxml/castxml-9999.ebuild +++ b/dev-cpp/castxml/castxml-9999.ebuild @@ -1,30 +1,33 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit cmake-utils git-r3 llvm +inherit cmake llvm MY_PN="CastXML" DESCRIPTION="CastXML is a C-family abstract syntax tree XML output tool." HOMEPAGE="https://github.com/CastXML/CastXML" -SRC_URI="" -EGIT_REPO_URI="https://github.com/gerddie/CastXML" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/CastXML/CastXML" +else + SRC_URI="https://github.com/CastXML/CastXML/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND="${RDEPEND}" RDEPEND=" - dev-libs/glib:2 - dev-libs/libxml2 - sys-devel/llvm:= - sys-devel/clang:= - " + dev-libs/glib:2 + dev-libs/libxml2 + sys-devel/llvm:= + sys-devel/clang:= +" -src_test() { - cd "${BUILD_DIR}" || die - ctest -j 20 -} +PATCHES=( "${FILESDIR}"/${PN}-0.3.6-install-paths.patch ) diff --git a/dev-cpp/castxml/files/castxml-0.3.6-install-paths.patch b/dev-cpp/castxml/files/castxml-0.3.6-install-paths.patch new file mode 100644 index 000000000..0b72085b4 --- /dev/null +++ b/dev-cpp/castxml/files/castxml-0.3.6-install-paths.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 90feea4..4b058a8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -194,5 +194,5 @@ install(DIRECTORY share/castxml/ DESTINATION "${CastXML_INSTALL_DATA_DIR}") + install(FILES + "LICENSE" + "NOTICE" +- DESTINATION "${CastXML_INSTALL_DOC_DIR}" ++ DESTINATION "${CastXML_INSTALL_DATA_DIR}" + ) + |