summaryrefslogtreecommitdiff
path: root/dev-libs/keystone
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-09-25 20:21:45 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-09-25 20:21:45 +0100
commitc719fdcee603a5a706a45d10cb598762d56a727d (patch)
tree620cbf137661399a3fb1eff92914204f9a970713 /dev-libs/keystone
parentcc4618c9ba3d974948ebf340b542d8cb01db2f55 (diff)
gentoo resync : 25.09.2021
Diffstat (limited to 'dev-libs/keystone')
-rw-r--r--dev-libs/keystone/Manifest4
-rw-r--r--dev-libs/keystone/keystone-0.9.2.ebuild84
-rw-r--r--dev-libs/keystone/keystone-9999.ebuild13
3 files changed, 90 insertions, 11 deletions
diff --git a/dev-libs/keystone/Manifest b/dev-libs/keystone/Manifest
index e8000d7cd2c3..7d0906545db3 100644
--- a/dev-libs/keystone/Manifest
+++ b/dev-libs/keystone/Manifest
@@ -1,4 +1,6 @@
DIST keystone-0.9.1.tar.gz 4326151 BLAKE2B 2d41388f4beeff3c424386c77cb75eeca613c66f80e807035f709822f241ef74f64085260678772580cb82bcceda83b4b3c31b92393f8d70f24d54f77f7ba224 SHA512 3bd9c3793d5862a0a8628b52da381625e62445f661dbd5ed715723e7d9db01ce3f9586e5ca0a5cc71e8ceb6c912050f5c28e3ccd540e72c8abcfd2f0d1bbae17
+DIST keystone-0.9.2.tar.gz 4433222 BLAKE2B 5654ae6a66ccf6832fbdbb8c1083a2318e413bb833a0fadc4e1374f0de601e3dad9f354b1dec92d9a944621923458e432510299c1b55579ac9bb6b6e90a818de SHA512 5d4dd30410410bc7848e75a2e31e8ecef6241ad25e21963aa7a07bbea21d95b75e235c80573129014102684c9647710ace3c0776a8401844d7e4b45cab7bd04b
EBUILD keystone-0.9.1-r1.ebuild 1975 BLAKE2B e377bd45243d07ba66bd3d06f4319189c62d37c4c2a94e192f60d965c15e4f418490cc9b805ca2b1daa016b1a76279791990998a4c8d9bf25dff700eaa7dcb9e SHA512 900867295aba6145779ffdbd166d797a63e8b104bd3a2bf27ad8c3cbfa0e1ea6efb02a29962f7439c5285480263ef29bb121a9bad212b75c693d74a86a09716b
-EBUILD keystone-9999.ebuild 1975 BLAKE2B e377bd45243d07ba66bd3d06f4319189c62d37c4c2a94e192f60d965c15e4f418490cc9b805ca2b1daa016b1a76279791990998a4c8d9bf25dff700eaa7dcb9e SHA512 900867295aba6145779ffdbd166d797a63e8b104bd3a2bf27ad8c3cbfa0e1ea6efb02a29962f7439c5285480263ef29bb121a9bad212b75c693d74a86a09716b
+EBUILD keystone-0.9.2.ebuild 1874 BLAKE2B 8442127195f6743206a934710a65490bf59606ce5c1ffcfbe3c556e07c77bdcdd82f552a83add6fc9ba8f2aef51d7853c95959737f710f3e2c0896976c824b9d SHA512 a34b154e207ef7a644f6bd9bfefaec165668fd6d8e092cccd3db05a693884aa1941098db9ed0fe9e0e8d639fa1e2cdb196de56685f5cb8a83957a5cdafdc4d36
+EBUILD keystone-9999.ebuild 1874 BLAKE2B 8442127195f6743206a934710a65490bf59606ce5c1ffcfbe3c556e07c77bdcdd82f552a83add6fc9ba8f2aef51d7853c95959737f710f3e2c0896976c824b9d SHA512 a34b154e207ef7a644f6bd9bfefaec165668fd6d8e092cccd3db05a693884aa1941098db9ed0fe9e0e8d639fa1e2cdb196de56685f5cb8a83957a5cdafdc4d36
MISC metadata.xml 257 BLAKE2B 76fe53d3c6c9b7020dac2713ef1617ad24c1fedd8029d5ba29598d2bde4d992f3e6bbf5055ac58176ccd6b9650f28c2702830ba9bc30d756cfffc35696d9f006 SHA512 73aac59c45a34e5709ce6efb1bf342b6309ffde68d632db53d83fe7da0d05e06fa43d74a6b90e5771aa7262d83531768f0a0da431a4c86d54ec05d5fe2383c4d
diff --git a/dev-libs/keystone/keystone-0.9.2.ebuild b/dev-libs/keystone/keystone-0.9.2.ebuild
new file mode 100644
index 000000000000..7ef25cfa1b43
--- /dev/null
+++ b/dev-libs/keystone/keystone-0.9.2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LLVM_MAX_SLOT=12
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python3_{8,9,10} )
+
+inherit cmake distutils-r1 llvm
+
+DESCRIPTION="assembly/assembler framework + bindings"
+HOMEPAGE="https://www.keystone-engine.org/"
+
+if [[ ${PV} == 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/keystone-engine/keystone.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/keystone-engine/keystone/archive/${PV/_rc/-rc}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+# Keep in sync with llvm/CMakeLists.txt, subset of sys-devel/llvm
+ALL_LLVM_TARGETS=( AArch64 ARM Hexagon Mips PowerPC Sparc SystemZ X86 )
+ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
+LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
+
+IUSE="python ${ALL_LLVM_TARGETS[*]}"
+
+RDEPEND="
+ <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[${LLVM_TARGET_USEDEPS// /,}]
+ python? ( ${PYTHON_DEPS} )
+"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="
+ || ( ${ALL_LLVM_TARGETS[*]} )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+S=${WORKDIR}/${P/_rc/-rc}
+
+wrap_python() {
+ if use python; then
+ pushd bindings/python >/dev/null || die
+ distutils-r1_${1} "$@"
+ popd >/dev/null || die
+ fi
+}
+
+src_prepare() {
+ default
+ sed -i '/NOT uppercase_CMAKE_BUILD_TYPE MATCHES/ s/DEBUG/GENTOO|DEBUG/' \
+ llvm/CMakeLists.txt || die
+ cmake_src_prepare
+ wrap_python ${FUNCNAME}
+}
+
+src_configure() {
+ local libdir="$(get_libdir)"
+ local mycmakeargs=(
+ -DCMAKE_CONFIGURATION_TYPES="Gentoo"
+ -DLLVM_LIBDIR_SUFFIX=${libdir#lib}
+ -DBUILD_SHARED_LIBS=ON
+ -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
+ -DLLVM_HOST_TRIPLE="${CHOST}"
+ )
+
+ cmake_src_configure
+ wrap_python ${FUNCNAME}
+}
+
+src_compile() {
+ cmake_src_compile
+ wrap_python ${FUNCNAME}
+}
+
+src_install() {
+ cmake_src_install
+ wrap_python ${FUNCNAME}
+}
diff --git a/dev-libs/keystone/keystone-9999.ebuild b/dev-libs/keystone/keystone-9999.ebuild
index 7a76969465cf..7ef25cfa1b43 100644
--- a/dev-libs/keystone/keystone-9999.ebuild
+++ b/dev-libs/keystone/keystone-9999.ebuild
@@ -3,8 +3,9 @@
EAPI=7
+LLVM_MAX_SLOT=12
DISTUTILS_OPTIONAL=1
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{8,9,10} )
inherit cmake distutils-r1 llvm
@@ -29,18 +30,10 @@ LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
IUSE="python ${ALL_LLVM_TARGETS[*]}"
-LLVM_MAX_SLOT=10
-
RDEPEND="
- <sys-devel/llvm-11:=
- || (
- sys-devel/llvm:8[${LLVM_TARGET_USEDEPS// /,}]
- sys-devel/llvm:9[${LLVM_TARGET_USEDEPS// /,}]
- sys-devel/llvm:10[${LLVM_TARGET_USEDEPS// /,}]
- )
+ <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[${LLVM_TARGET_USEDEPS// /,}]
python? ( ${PYTHON_DEPS} )
"
-
DEPEND="${RDEPEND}"
REQUIRED_USE="