From 6554f04b9a44e1ffe5d2f614201c11deed2703bd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 17 Feb 2023 20:08:44 +0000 Subject: gentoo auto-resync : 17:02:2023 - 20:08:44 --- dev-libs/capstone/Manifest | 3 +- dev-libs/capstone/capstone-5.0_rc2-r3.ebuild | 95 ++++++++++++++++++++++++++++ dev-libs/capstone/capstone-9999.ebuild | 11 +++- 3 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 dev-libs/capstone/capstone-5.0_rc2-r3.ebuild (limited to 'dev-libs/capstone') diff --git a/dev-libs/capstone/Manifest b/dev-libs/capstone/Manifest index 13f28a66bda9..dcd5962c9197 100644 --- a/dev-libs/capstone/Manifest +++ b/dev-libs/capstone/Manifest @@ -5,5 +5,6 @@ DIST capstone-4.0.2.tar.gz 3439542 BLAKE2B 435729a8fef2dce6495635352101b3befe563 DIST capstone-5.0_rc2.tar.gz 5761725 BLAKE2B 2f5074fe1881309ee2d36cdfeba10bacefbac5c994d42dd3b08c07fe8b70e298d9d18e9c061dad1a54c6368bdc296fd02f30d77f78b1ae05074764e7041aef2c SHA512 fdc4992399a2add960b12ff2495087a97fa66dce85e87375ba9d19e02b7ea5fb16a7efa93d839c2693378f6367efc9df68f192584ba624443d3b0b197d4dcd9a EBUILD capstone-4.0.2-r2.ebuild 1536 BLAKE2B ff48fcc776ee396d790f6c1a52a9059fc1db4650b1f73ef5b2de2caa0ed51c662ffef2d53c0008d7a3abb5261dd7ae22fbc0f214882b33e674ab7e64c2929831 SHA512 6b5913274cf1d6c9d6deb0972a2e2d3532b81e52acc88191560effa22bfc8df3374d09ea2ffa5f6ca804c292e671d523793dd937c7e658fe03cbc53ff331f3f7 EBUILD capstone-5.0_rc2-r2.ebuild 1530 BLAKE2B 3cd7be6305deefb6c8c2b404119f9a139856c3156c255bac229bb0b2817a694f47e260a7e6e1385518f426e8ec10a2f64232039f00dfac40f7c0bfec88847ee9 SHA512 ff56bf0e531e1284963d79a5917fd3cc15c269f5986d5adba51fb3476abd629b85a390649dd011f44f3344028813a8349b0d27a4274c6d1ae86794a38eda05b0 -EBUILD capstone-9999.ebuild 1576 BLAKE2B b81afdd2ab403bd07ef6bb8d3113ea2f2728a6efc2efad49f0d356e96db9a63fa6c6610d7cee6119837d2cd677356617b6eac7831ed34ee86d738e154d3aba96 SHA512 d521402016249257470b713e1bbedd7fc3ad029384bda42ccd0f8495891c17c14667f32e9f7d0ee059995c957b773101d94bdb9111c8e2b38d82e62787e76c56 +EBUILD capstone-5.0_rc2-r3.ebuild 1826 BLAKE2B e99b0f622f31504520faef815338404666afa5bce9483be742b09d8f0029dc4e15f56e81db85bd4c9d5eeeb0f864e9f655efe2f7d2ec56efe340af4260f47cd9 SHA512 1f1bee3d00ece564ec58e5b9ce6b6138e6cd42482c5d76e3a56c8a2a5f530e9c156a36b3119be5e34e8bc3aeb42ad2b460b225392a46a3247d9b05163b04f454 +EBUILD capstone-9999.ebuild 1724 BLAKE2B 0a93e9a68ce80099c5b8ddf8fefd6254720138b24492bbe0825b9d14db1ada58a92040c8f669bca7861aa7904a1f9a0f10e265d336e6ed6d5354e7b9fdc10a48 SHA512 594cb2f8f049cdb0e1eec2457d19c31a580957a8bbc06cd6d2ca59d4fc07a7084e8d9dd653eef452bab064e70f9e0e3b06f291c87d8a7503d2aad458fdcf7581 MISC metadata.xml 484 BLAKE2B 32c39bf06443ce4ca18191a4c9626cf517d5bd4f837c179e6186a68a0053217bf41d61d2c4d46c9792b1974879d22b36e4a02fa461a1b085acf5c4406bde4891 SHA512 f06dcd3133982f72cf21c5bb3d9a34207d7083233b5e70856f6a1dab60ef361cf1432659af30ea6b90fcb38cfdaec49f0792623ef841e136bc33cb5e1c40d1cf diff --git a/dev-libs/capstone/capstone-5.0_rc2-r3.ebuild b/dev-libs/capstone/capstone-5.0_rc2-r3.ebuild new file mode 100644 index 000000000000..52e6eaa6617a --- /dev/null +++ b/dev-libs/capstone/capstone-5.0_rc2-r3.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools + +inherit cmake distutils-r1 toolchain-funcs + +DESCRIPTION="disassembly/disassembler framework + bindings" +HOMEPAGE="https://www.capstone-engine.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/capstone-engine/capstone.git" + EGIT_REPO_BRANCH="next" +else + SRC_URI="https://github.com/capstone-engine/capstone/archive/${PV/_rc/-rc}.tar.gz -> ${P}.tar.gz" + S=${WORKDIR}/${P/_rc/-rc} + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +LICENSE="BSD" +SLOT="0/5" # libcapstone.so.5 + +IUSE="python static-libs test" +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + python? ( dev-python/setuptools[${PYTHON_USEDEP}] ) +" +BDEPEND="${DISTUTILS_DEPS}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +distutils_enable_tests setup.py + +PATCHES=( + "${FILESDIR}"/${P}-pkgconfig.patch + "${FILESDIR}"/${P}-oob-mem-access.patch +) + +if [[ ${PV} == *_rc* ]]; then + # Upstream doesn't flag release candidates (bug 858350) + QA_PKGCONFIG_VERSION="" +fi + +wrap_python() { + local phase=$1 + shift + + if use python; then + pushd bindings/python >/dev/null || die + distutils-r1_${phase} "$@" + popd >/dev/null || die + fi +} + +src_prepare() { + tc-export RANLIB + cmake_src_prepare + + wrap_python ${FUNCNAME} +} + +src_configure() { + local mycmakeargs=( + -DCAPSTONE_BUILD_TESTS="$(usex test)" + ) + cmake_src_configure + + wrap_python ${FUNCNAME} +} + +src_compile() { + cmake_src_compile + + wrap_python ${FUNCNAME} +} + +src_test() { + cmake_src_test + + wrap_python ${FUNCNAME} +} + +src_install() { + cmake_src_install + + wrap_python ${FUNCNAME} + + if ! use static-libs ; then + find "${ED}" -name '*.a' -delete || die + fi +} diff --git a/dev-libs/capstone/capstone-9999.ebuild b/dev-libs/capstone/capstone-9999.ebuild index 259fa40dbb50..ef624cde1cad 100644 --- a/dev-libs/capstone/capstone-9999.ebuild +++ b/dev-libs/capstone/capstone-9999.ebuild @@ -5,6 +5,7 @@ EAPI=8 DISTUTILS_OPTIONAL=1 PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools inherit cmake distutils-r1 toolchain-funcs @@ -17,23 +18,23 @@ if [[ ${PV} == 9999 ]]; then EGIT_REPO_BRANCH="next" else SRC_URI="https://github.com/capstone-engine/capstone/archive/${PV/_rc/-rc}.tar.gz -> ${P}.tar.gz" + S=${WORKDIR}/${P/_rc/-rc} KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" fi LICENSE="BSD" SLOT="0/5" # libcapstone.so.5 -IUSE="python test" +IUSE="python static-libs test" RDEPEND="python? ( ${PYTHON_DEPS} )" DEPEND="${RDEPEND} python? ( dev-python/setuptools[${PYTHON_USEDEP}] ) " +BDEPEND="${DISTUTILS_DEPS}" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" distutils_enable_tests setup.py -S=${WORKDIR}/${P/_rc/-rc} - if [[ ${PV} == *_rc* ]]; then # Upstream doesn't flag release candidates (bug 858350) QA_PKGCONFIG_VERSION="" @@ -82,4 +83,8 @@ src_install() { cmake_src_install wrap_python ${FUNCNAME} + + if ! use static-libs ; then + find "${ED}" -name '*.a' -delete || die + fi } -- cgit v1.2.3