mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-05 23:33:11 +01:00
lief-0.11.1.ebuild
This commit is contained in:
parent
e25da396f7
commit
7b39fd5342
2 changed files with 79 additions and 0 deletions
|
|
@ -1,2 +1,3 @@
|
|||
DIST lief-0.10.1.tar.gz 13155687 BLAKE2B bb3df4ac9d05430baf401e5e4790af2f623f83a901a00abe14352c65367dc77feb394abf7cdb03d98d0ab9dd3050d134f1e4e6614111e81bc5e4da5ffe71ce3f SHA512 08cc6374fa5026099e4d43cb6bcd6401a8eadb6ea9749f5cde09ce80a555eb5ebc05ef6db8f01085ff20d56ba506fa0ab07e8d5f2e12dea723bebeb0f93410e3
|
||||
DIST lief-0.11.0.tar.gz 15517701 BLAKE2B 8454960614d925f0b6acb5b6c240e8e439affcd92d36ee05671b871175fc2cc4c8745ba2240ca0c5010f9f2e5cb94d573512440a5cd6ff7e399099c03eea1b2c SHA512 1dc6a34a2f144c794bd763c9162073045172238f931f3dc11f7491e312adfcdc92ff896e4a795de1ad1aa2d8ceb35c73893c8abb8bdbbc8179e4c2aa4100497f
|
||||
DIST lief-0.11.1.tar.gz 15518520 BLAKE2B 3971b056d6716deac52936846c68f6646b0ec9b5a110f717888bbbd12758bfa39a9d32a17eda422b3b9b145cabcb2278b423684a3851c2d235c171e37f2aac41 SHA512 eec067e4bacd2410b629b5e16c646998bc0b1113b377a1d0bd9cec45ad1b59a15cdc7cc8e3bd6d07c6c2a27b24ba20b71fef8e94aca75423c763aa15840c1f4c
|
||||
|
|
|
|||
78
dev-util/lief/lief-0.11.1.ebuild
Normal file
78
dev-util/lief/lief-0.11.1.ebuild
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
|
||||
inherit cmake distutils-r1
|
||||
|
||||
DESCRIPTION="Library to instrument executable formats"
|
||||
HOMEPAGE="https://lief.quarkslab.com/"
|
||||
SRC_URI="https://github.com/lief-project/LIEF/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE="examples +python static-libs"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# linxon: WHY??
|
||||
CMAKE_BUILD_TYPE=
|
||||
|
||||
S=${WORKDIR}/LIEF-${PV}
|
||||
|
||||
wrap_python() {
|
||||
if use python; then
|
||||
# pushd "${BUILD_DIR}"/api/python >/dev/null || die
|
||||
distutils-r1_${1} "$@"
|
||||
# popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#fix multilib
|
||||
sed -i "s/DESTINATION lib/DESTINATION $(get_libdir)/" CMakeLists.txt || die
|
||||
cmake_src_prepare
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
#cmake/LIEFOptions.cmake
|
||||
local FORCE32=NO
|
||||
use x86 && FORCE32=YES
|
||||
|
||||
#Do not install python using cmake
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS="$(usex static-libs OFF ON)"
|
||||
-DLIEF_EXAMPLES="$(usex examples ON OFF)"
|
||||
-DLIEF_PYTHON_API=off
|
||||
-DLIEF_INSTALL_PYTHON="OFF"
|
||||
-DLIEF_FORCE32="$FORCE32"
|
||||
)
|
||||
cmake_src_configure
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
|
||||
# wrap_python ${FUNCNAME}
|
||||
compile_python() {
|
||||
${EPYTHON} setup.py build_ext
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
python_foreach_impl compile_python
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
Loading…
Reference in a new issue