mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-28 17:50:58 +02:00
lief: cleanup
This commit is contained in:
parent
a3b21f88bd
commit
0272e41ac4
2 changed files with 8 additions and 51 deletions
|
|
@ -1,48 +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 python-r1 flag-o-matic
|
||||
|
||||
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"
|
||||
#https://github.com/lief-project/LIEF/issues/251
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="+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
|
||||
|
||||
src_configure(){
|
||||
#if(NOT PYBIND11_CPP_STANDARD AND NOT CMAKE_CXX_STANDARD)
|
||||
|
||||
#cmake/LIEFOptions.cmake
|
||||
local FORCE32=NO
|
||||
use x86 && FORCE32=YES
|
||||
|
||||
#examples fail to compile
|
||||
#https://github.com/lief-project/LIEF/issues/251
|
||||
local mycmakeargs=(
|
||||
-DLIEF_INSTALL_PYTHON="$(usex python)"
|
||||
-DLIEF_FORCE32="$FORCE32"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
|
@ -15,10 +15,9 @@ SRC_URI="https://github.com/lief-project/LIEF/archive/${HASH_COMMIT}.tar.gz -> $
|
|||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
#https://github.com/lief-project/LIEF/issues/251
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="+python"
|
||||
IUSE="examples +python"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}
|
||||
|
|
@ -28,15 +27,21 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|||
|
||||
S=${WORKDIR}/LIEF-${HASH_COMMIT}
|
||||
|
||||
CMAKE_BUILD_TYPE=
|
||||
#Release
|
||||
|
||||
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
|
||||
local mycmakeargs=(
|
||||
-DLIEF_EXAMPLES=OFF
|
||||
-DLIEF_EXAMPLES="$(usex examples ON OFF)"
|
||||
-DLIEF_INSTALL_PYTHON="$(usex python)"
|
||||
-DLIEF_FORCE32="$FORCE32"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue