mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-23 23:31:00 +02:00
lief: 0.10.0 untagged
This commit is contained in:
parent
e2ee5a83d8
commit
487afeb2d5
4 changed files with 3 additions and 87 deletions
|
|
@ -1,3 +1,2 @@
|
|||
DIST lief-0.9.0_p20181231.tar.gz 12757493 BLAKE2B 30070aafa92f1e62998d301b885f0a36f3e710e32cb5617a6d88eda185b52097888c47da9c0a67e9f295b1bd4cb166e8b962ece03730715f59bcbc767a9409e3 SHA512 9f64739068e6e68648c3496516fe96a780a0ec71cbbfb395a86fb97368197ee6951c40e68368c7e311d5249eebc303e4e4cb9e8869b312fbd514c284996df65d
|
||||
DIST lief-0.9.0_p20190511.tar.gz 13130064 BLAKE2B 4d72c54d367e3c282ed54b276c62d6c057c61e7c0e126dc890c6b3f677913a1a6c9d11939c9e94d5622dd52a7bc7a01f096e1b70156e5dcb8d2797ec5f8a155b SHA512 c90167bc263b8b4a2047b5157e31b96611748c0bf2d0f8617adc4c62d2190dfd34c49bafebd60082b8144c0f7dd2ee8b773341fbff3e6526fa90a98ab7927fe8
|
||||
DIST lief-0.10.0_pre20191124.tar.gz 13158550 BLAKE2B d4eed811083d85ac6f0b68b3d7f7ea9bc789beb57c3f151492e5e8ff03c6f061b727d830cd34a9cc524da1b605173c8f0323a18df272a9f494f2fc8ba4ddf355 SHA512 277d25f6c6f6f971169666e69d0d8cef7de96017a7587ab999c4d7d53f7a2181330b1cac54cbd1d7e0ad193bff39053183a63554d921e3d202dfd174d05b3ad9
|
||||
DIST lief-0.9.0_p20190626.tar.gz 13133521 BLAKE2B b3bdd46535e894cf4989a52082d0763c2958eaca215fb5a69219f7d12d50a5c2e1f8bf0528ace5b81eeec19b732340959ff974cacbfd9097b59ddceae4a83520 SHA512 ee943b4048994b0969cb9e5a0ebc83e74d26a64752b3b098cd47dd261b01cee11b23b12bb058619aeffbe9673aa63f9a430c55f3ee249f410cca6cdad6a5e21a
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ PYTHON_COMPAT=( python{3_5,3_6,3_7} )
|
|||
|
||||
inherit cmake-utils distutils-r1
|
||||
|
||||
HASH_COMMIT="ca846b3ce70b62f2de1a5ddc14ecffd8c9a33ee4"
|
||||
HASH_COMMIT="f5d152ee92bb243adb4d559da6d081c6c8776977"
|
||||
|
||||
DESCRIPTION="Library to instrument executable formats"
|
||||
HOMEPAGE="https://lief.quarkslab.com/"
|
||||
|
|
@ -26,7 +26,6 @@ DEPEND="${RDEPEND}
|
|||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
CMAKE_BUILD_TYPE=
|
||||
#Release
|
||||
|
||||
S=${WORKDIR}/LIEF-${HASH_COMMIT}
|
||||
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
# 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
|
||||
# multilib
|
||||
# python-r1
|
||||
|
||||
HASH_COMMIT="8d7ec26a93800b0729c2c05be8c55c8318ba3b20"
|
||||
|
||||
DESCRIPTION="Library to instrument executable formats"
|
||||
HOMEPAGE="https://lief.quarkslab.com/"
|
||||
SRC_URI="https://github.com/lief-project/LIEF/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="examples +python"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S=${WORKDIR}/LIEF-${HASH_COMMIT}
|
||||
|
||||
CMAKE_BUILD_TYPE=
|
||||
#Release
|
||||
|
||||
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() {
|
||||
use examples && die "unable to compile examples, see https://github.com/lief-project/LIEF/issues/251"
|
||||
|
||||
#cmake/LIEFOptions.cmake
|
||||
#if(NOT PYBIND11_CPP_STANDARD AND NOT CMAKE_CXX_STANDARD)
|
||||
local FORCE32=NO
|
||||
use x86 && FORCE32=YES
|
||||
|
||||
#examples fail to compile
|
||||
#https://github.com/lief-project/LIEF/issues/251
|
||||
#Do not install python using cmake
|
||||
local mycmakeargs=(
|
||||
-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}
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright 1999-2019 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
|
|
|||
Loading…
Reference in a new issue