mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-30 12:02:57 +01:00
lief: 0.10.0 bump
This commit is contained in:
parent
b8d23661bc
commit
eba172df1d
2 changed files with 73 additions and 1 deletions
|
|
@ -1,2 +1,2 @@
|
|||
DIST lief-0.10.0_pre20191124.tar.gz 13158550 BLAKE2B d4eed811083d85ac6f0b68b3d7f7ea9bc789beb57c3f151492e5e8ff03c6f061b727d830cd34a9cc524da1b605173c8f0323a18df272a9f494f2fc8ba4ddf355 SHA512 277d25f6c6f6f971169666e69d0d8cef7de96017a7587ab999c4d7d53f7a2181330b1cac54cbd1d7e0ad193bff39053183a63554d921e3d202dfd174d05b3ad9
|
||||
DIST lief-0.10.0.tar.gz 13155479 BLAKE2B 4b94c9bc7ee1e7f2bd621f52580aaeee302f396c865fb60e47e56646ceae7fd530b60ab5000ab31e64bfcb07e604620ccbe89deca80e2c1ef190d53c5569848e SHA512 51fcd21710dd7c603ebd0ebcc596f723906ababa67ee7433a4b2fc35f41965346978cd14126d59611bfc7544e1a7d77a6aeff0f3521981f29e5d3e06f7313f7f
|
||||
DIST lief-0.9.0_p20190626.tar.gz 13133521 BLAKE2B b3bdd46535e894cf4989a52082d0763c2958eaca215fb5a69219f7d12d50a5c2e1f8bf0528ace5b81eeec19b732340959ff974cacbfd9097b59ddceae4a83520 SHA512 ee943b4048994b0969cb9e5a0ebc83e74d26a64752b3b098cd47dd261b01cee11b23b12bb058619aeffbe9673aa63f9a430c55f3ee249f410cca6cdad6a5e21a
|
||||
|
|
|
|||
72
dev-util/lief/lief-0.10.0.ebuild
Normal file
72
dev-util/lief/lief-0.10.0.ebuild
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{3_5,3_6,3_7} )
|
||||
|
||||
inherit cmake-utils 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} )"
|
||||
|
||||
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-utils_src_prepare
|
||||
# wrap_python ${FUNCNAME}
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
wrap_python ${FUNCNAME}
|
||||
default
|
||||
}
|
||||
|
||||
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="$(usex python)"
|
||||
-DLIEF_INSTALL_PYTHON="OFF"
|
||||
-DLIEF_FORCE32="$FORCE32"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
wrap_python ${FUNCNAME}
|
||||
}
|
||||
Loading…
Reference in a new issue