Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/capstone/
Date: Fri, 29 Apr 2022 09:01:47
Message-Id: 1651222900.88a60755a21f4040a54612fcf347b509f7a7527b.juippis@gentoo
1 commit: 88a60755a21f4040a54612fcf347b509f7a7527b
2 Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
3 AuthorDate: Tue Apr 19 20:04:30 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 09:01:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88a60755
7
8 dev-libs/capstone: version bump 5.0_rc2
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
12 Closes: https://bugs.gentoo.org/837647
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 dev-libs/capstone/Manifest | 1 +
16 dev-libs/capstone/capstone-5.0_rc2.ebuild | 75 +++++++++++++++++++++++++++++++
17 2 files changed, 76 insertions(+)
18
19 diff --git a/dev-libs/capstone/Manifest b/dev-libs/capstone/Manifest
20 index 90b32128accd..b6fb009623c3 100644
21 --- a/dev-libs/capstone/Manifest
22 +++ b/dev-libs/capstone/Manifest
23 @@ -1 +1,2 @@
24 DIST capstone-4.0.2.tar.gz 3439542 BLAKE2B 435729a8fef2dce6495635352101b3befe563c8404efdbb0dccabecbe2bded332221665bacdbcd9043dda72b652b6f29c0e1a548cefb8c64d5b6b9dc174ed3d9 SHA512 7f93534517307b737422a8825b66b2a1f3e1cca2049465d60ab12595940154aaf843ba40ed348fce58de58b990c19a0caef289060eb72898cb008a88c470970e
25 +DIST capstone-5.0_rc2.tar.gz 5761725 BLAKE2B 2f5074fe1881309ee2d36cdfeba10bacefbac5c994d42dd3b08c07fe8b70e298d9d18e9c061dad1a54c6368bdc296fd02f30d77f78b1ae05074764e7041aef2c SHA512 fdc4992399a2add960b12ff2495087a97fa66dce85e87375ba9d19e02b7ea5fb16a7efa93d839c2693378f6367efc9df68f192584ba624443d3b0b197d4dcd9a
26
27 diff --git a/dev-libs/capstone/capstone-5.0_rc2.ebuild b/dev-libs/capstone/capstone-5.0_rc2.ebuild
28 new file mode 100644
29 index 000000000000..f54ab3111868
30 --- /dev/null
31 +++ b/dev-libs/capstone/capstone-5.0_rc2.ebuild
32 @@ -0,0 +1,75 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DISTUTILS_OPTIONAL=1
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +
41 +inherit cmake distutils-r1 toolchain-funcs
42 +
43 +DESCRIPTION="disassembly/disassembler framework + bindings"
44 +HOMEPAGE="http://www.capstone-engine.org/"
45 +SRC_URI="https://github.com/aquynh/${PN}/archive/${PV/_rc/-rc}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0/5" # libcapstone.so.5
49 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
50 +
51 +IUSE="python test"
52 +RDEPEND="python? ( ${PYTHON_DEPS} )"
53 +DEPEND="${RDEPEND}
54 + python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
55 +"
56 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
57 +
58 +distutils_enable_tests setup.py
59 +
60 +S=${WORKDIR}/${P/_rc/-rc}
61 +
62 +wrap_python() {
63 + local phase=$1
64 + shift
65 +
66 + if use python; then
67 + pushd bindings/python >/dev/null || die
68 + echo distutils-r1_${phase} "$@"
69 + pwd
70 + distutils-r1_${phase} "$@"
71 + popd >/dev/null
72 + fi
73 +}
74 +
75 +src_prepare() {
76 + tc-export RANLIB
77 + cmake_src_prepare
78 +
79 + wrap_python ${FUNCNAME}
80 +}
81 +
82 +src_configure() {
83 + local mycmakeargs=(
84 + -DCAPSTONE_BUILD_TESTS="$(usex test)"
85 + )
86 + cmake_src_configure
87 +
88 + wrap_python ${FUNCNAME}
89 +}
90 +
91 +src_compile() {
92 + cmake_src_compile
93 +
94 + wrap_python ${FUNCNAME}
95 +}
96 +
97 +src_test() {
98 + cmake_src_test
99 +
100 + wrap_python ${FUNCNAME}
101 +}
102 +
103 +src_install() {
104 + cmake_src_install
105 +
106 + wrap_python ${FUNCNAME}
107 +}