From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 07D6A1582EF for ; Wed, 19 Feb 2025 11:14:21 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E6BB33431FA for ; Wed, 19 Feb 2025 11:14:20 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9B0DA11047A; Wed, 19 Feb 2025 11:14:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 942C911047A for ; Wed, 19 Feb 2025 11:14:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4B3033431DE for ; Wed, 19 Feb 2025 11:14:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AB4F2762 for ; Wed, 19 Feb 2025 11:14:00 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1739963493.b2885213f35451839f36d38a9de3b86e7765991d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/capstone/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/capstone/Manifest dev-libs/capstone/capstone-6.0.0_alpha3.ebuild X-VCS-Directories: dev-libs/capstone/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b2885213f35451839f36d38a9de3b86e7765991d X-VCS-Branch: master Date: Wed, 19 Feb 2025 11:14:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 005a74cc-2277-40b8-9013-0f8e5f215e9e X-Archives-Hash: ea7489e566b545d2fd58790b6d967f30 commit: b2885213f35451839f36d38a9de3b86e7765991d Author: Mario Haustein hrz tu-chemnitz de> AuthorDate: Wed Jan 29 19:27:45 2025 +0000 Commit: Sam James gentoo org> CommitDate: Wed Feb 19 11:11:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2885213 dev-libs/capstone: add 6.0.0_alpha3 Signed-off-by: Mario Haustein hrz.tu-chemnitz.de> Signed-off-by: Sam James gentoo.org> dev-libs/capstone/Manifest | 1 + dev-libs/capstone/capstone-6.0.0_alpha3.ebuild | 104 +++++++++++++++++++++++++ 2 files changed, 105 insertions(+) diff --git a/dev-libs/capstone/Manifest b/dev-libs/capstone/Manifest index 61572d2153f6..70d3457df2c2 100644 --- a/dev-libs/capstone/Manifest +++ b/dev-libs/capstone/Manifest @@ -1,3 +1,4 @@ DIST capstone-5.0.3.tar.gz 7650875 BLAKE2B 3750964a95cbaba685dfb5cf511f12d18f2c157fb622a15c4615734987b8a49ffacf021457f36302606ccf9055e45a7fc56af000b8f09df467922896b431537c SHA512 2fd3194dd37065e6091d208c7670b12c0ca6872931eef794bd6b2dd624601c843e8ee6c5714eae0372e394e91a9bc1e4de7dfea6b1087542dd461226569101de DIST capstone-5.0.5.tar.gz 7654484 BLAKE2B 9725340b74a6e1acf54debeecce63c262dddc23e69940b1d2f94ba14562ea5da07d93cb572ce24fc2c087d73eaedef265cdd0341377685082543568d8e61a40e SHA512 36c81fb6f36867b7d43f4e930493cd821cb5f233a56dbe504c6244569f154f462db565181aa2fe7df8f194a7225f56d42f941ff82e2ee16e44d5fb74ff27c818 DIST capstone-6.0.0_alpha2.tar.gz 10158754 BLAKE2B cbd2a337f53ce3d69501b3f3859f8c2f97f613c96d1f32fe74856ee9eb716ecca0ad6cbbd23c4c9cf7cfa111c9f2f4e24bd222de0773f42dc15b014c179502d5 SHA512 6f5dc2baaa3d26ba1c1f487a91167395110614004f72d66aa3b0656098d46fffd7f79a9fef0fb861c0cf12dd88e53d3989bbcf74851fdd480af69bf81d6017e1 +DIST capstone-6.0.0_alpha3.tar.gz 10282208 BLAKE2B ff7ffb3bbd6c138a644ebbc9dec1bd7e86b8d7dfcd0d1646cf35a560303a5759cdd587e5b78596e2a82bd1327796e1312e3d88efadd0f542c4a39d3eb57d9825 SHA512 45611f95f2e889feb688cb58fb2819737747e7d3f94f1f60e6517359bba21cd2bfda72527b0f19053c260e898861aee4753a5f5823f6c1e1a690cf4914dc3d62 diff --git a/dev-libs/capstone/capstone-6.0.0_alpha3.ebuild b/dev-libs/capstone/capstone-6.0.0_alpha3.ebuild new file mode 100644 index 000000000000..e82f056e4815 --- /dev/null +++ b/dev-libs/capstone/capstone-6.0.0_alpha3.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +DISTUTILS_EXT=1 +DISTUTILS_OPTIONAL=1 +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 + MY_PV="${PV}" + MY_PV="${MY_PV/_alpha/-Alpha}" + MY_PV="${MY_PV/_beta/-Beta}" + MY_PV="${MY_PV/_rc/-rc}" + SRC_URI="https://github.com/capstone-engine/capstone/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${MY_PV}" + if [[ ${PV} != *_alpha* && ${PV} != *_beta* && ${PV} != *_rc* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + fi +fi + +LICENSE="BSD" +SLOT="0/6" # libcapstone.so.6 + +IUSE="python static-libs" +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + python? ( dev-python/setuptools[${PYTHON_USEDEP}] ) +" +BDEPEND="${DISTUTILS_DEPS}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +PATCHES=( + # Currently "-Werror" is only added in the `next`-development branch, but + # not merged into 5.* releases. Eventually this patch may be needed in the + # version 5 release line. See bug #911481. + "${FILESDIR}/${PN}-werror.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 "${S}/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_SHARED_LIBS=true + -DCAPSTONE_BUILD_STATIC_LIBS=false + ) + 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} +} + +python_test() { + ./tests/test_all.py || die + ./tests/test_iter.py || die +}