mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-22 14:51:14 +02:00
lief: workaround for upstream issue https://github.com/lief-project/LIEF/issues/251
This commit is contained in:
parent
755dfc1064
commit
b61319d0de
1 changed files with 8 additions and 11 deletions
|
|
@ -6,8 +6,6 @@ EAPI=7
|
|||
PYTHON_COMPAT=( python{3_5,3_6,3_7} )
|
||||
|
||||
inherit cmake-utils distutils-r1
|
||||
# multilib
|
||||
# python-r1
|
||||
|
||||
HASH_COMMIT="27a03a6fd3169f427fb950293f0863dcd50ac710"
|
||||
|
||||
|
|
@ -19,19 +17,22 @@ LICENSE="Apache-2.0"
|
|||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="examples +python"
|
||||
IUSE="examples +python static-libs"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S=${WORKDIR}/LIEF-${HASH_COMMIT}
|
||||
#examples fail to compile with shared libs
|
||||
#https://github.com/lief-project/LIEF/issues/251
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
|
||||
examples? ( static-libs )"
|
||||
|
||||
CMAKE_BUILD_TYPE=
|
||||
#Release
|
||||
|
||||
S=${WORKDIR}/LIEF-${HASH_COMMIT}
|
||||
|
||||
wrap_python() {
|
||||
if use python; then
|
||||
pushd "${BUILD_DIR}"/api/python >/dev/null || die
|
||||
|
|
@ -56,17 +57,13 @@ src_compile() {
|
|||
}
|
||||
|
||||
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=(
|
||||
-DBUILD_SHARED_LIBS="$(usex static-libs OFF ON)"
|
||||
-DLIEF_EXAMPLES="$(usex examples ON OFF)"
|
||||
-DLIEF_PYTHON_API="$(usex python)"
|
||||
-DLIEF_INSTALL_PYTHON="OFF"
|
||||
|
|
|
|||
Loading…
Reference in a new issue