This commit is contained in:
blshkv 2021-01-10 10:27:50 +08:00
parent bb82c40e82
commit 5e0e992fd2
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 16 additions and 145 deletions

View file

@ -1 +0,0 @@
DIST keystone-0.9.1.tar.gz 4326151 BLAKE2B 2d41388f4beeff3c424386c77cb75eeca613c66f80e807035f709822f241ef74f64085260678772580cb82bcceda83b4b3c31b92393f8d70f24d54f77f7ba224 SHA512 3bd9c3793d5862a0a8628b52da381625e62445f661dbd5ed715723e7d9db01ce3f9586e5ca0a5cc71e8ceb6c912050f5c28e3ccd540e72c8abcfd2f0d1bbae17

View file

@ -1,88 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_OPTIONAL=1
CMAKE_MIN_VERSION=3.8.7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit cmake-utils distutils-r1 llvm
DESCRIPTION="assembly/assembler framework + bindings"
HOMEPAGE="http://www.keystone-engine.org/"
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/keystone-engine/keystone.git"
inherit git-r3
KEYWORDS=""
else
SRC_URI="https://github.com/keystone-engine/keystone/archive/${PV/_rc/-rc}.tar.gz -> ${P/-rc/_rc}.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
# Keep in sync with llvm/CMakeLists.txt, subset of sys-devel/llvm
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore )
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
IUSE="python ${ALL_LLVM_TARGETS[*]}"
RDEPEND="
>=sys-devel/llvm-3.8:=[${LLVM_TARGET_USEDEPS// /,}]
${PYTHON_DEPS}
"
DEPEND="${RDEPEND}"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
|| ( ${ALL_LLVM_TARGETS[*]} )
"
S=${WORKDIR}/${P/_rc/-rc}
CMAKE_BUILD_TYPE=RelWithDebInfo
llvm_check_deps() {
has_version "sys-devel/llvm:${LLVM_SLOT}[${LLVM_TARGET_USEDEPS// /,}]"
}
wrap_python() {
if use python; then
pushd bindings/python >/dev/null || die
distutils-r1_${EBUILD_PHASE_FUNC} "$@"
popd >/dev/null || die
fi
}
src_prepare() {
default
cmake-utils_src_prepare
wrap_python
}
src_configure() {
local libdir="$(get_libdir)"
local mycmakeargs=(
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
-DBUILD_SHARED_LIBS=ON
-DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
-DLLVM_HOST_TRIPLE="${CHOST}"
)
cmake-utils_src_configure
wrap_python
}
src_compile() {
cmake-utils_src_compile
wrap_python
}
src_install() {
cmake-utils_src_install
wrap_python
}

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
</pkgmetadata>

View file

@ -1,42 +1,7 @@
~dev-libs/libusb-1.0.23
~dev-libs/libxmlb-0.1.13
#for sys-apps/fwupd
~dev-libs/libjcat-0.1.2
~dev-libs/libxmlb-0.1.15
#opencl stuff unversioned and not by accident
dev-libs/intel-neo
dev-libs/opencl-icd-loader
dev-libs/opencl-clang
dev-libs/rocclr
dev-libs/rocm-opencl-runtime
dev-libs/rocr-runtime
dev-libs/rocm-comgr
dev-libs/rocm-device-libs
dev-util/rocm-cmake
dev-libs/roct-thunk-interface
#ugh https://bugs.gentoo.org/627576
~dev-libs/elfutils-0.170
#new kismet
dev-libs/msgpack
dev-libs/libnfc
~dev-libs/libtecla-1.6.3
### Pentoo ##############
~dev-libs/libguytools2-2.1.0
# required by dev-db/sqlitebrowser-3.3.1-r1::pentoo
~dev-libs/qcustomplot-1.3.2
#required by dev-embedded/mphidflash
~dev-libs/libhid-0.2.16
=dev-libs/capstone-4.0*
#libvshadow
dev-libs/libcerror
dev-libs/libcthreads
@ -62,18 +27,21 @@ dev-libs/libsmdev
#frida-gum
dev-libs/libdwarf
#usbguard
=dev-libs/pegtl-2.8*
~dev-libs/rapidjson-1.1.0
~dev-libs/elfio-1.0.3
#required by pwsh-bin
dev-libs/openssl-compat:1.0.0
### Gentoo ############
~dev-libs/keystone-0.9.1
#usbguard
=dev-libs/pegtl-2.8*
=dev-libs/capstone-4.0*
=dev-libs/libnfc-1.8*
# required by app-emulation/genymotion-bin
#required by firefox
#opencl stuff unversioned and not by accident
dev-libs/intel-neo
dev-libs/opencl-icd-loader
dev-libs/opencl-clang
dev-libs/rocclr
dev-libs/rocm-opencl-runtime
dev-libs/rocr-runtime
dev-libs/rocm-comgr
dev-libs/rocm-device-libs
dev-util/rocm-cmake
dev-libs/roct-thunk-interface