lief: fix parallel build properly

This commit is contained in:
Anton Bolshakov 2021-02-25 11:34:58 +08:00
parent 3c088ccb2f
commit 840f81ff98
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 28 additions and 5 deletions

View file

@ -0,0 +1 @@
DIST xtract-0.1a3.tar.gz 20926 BLAKE2B 5a5a76e36c3bbb03d29bf2f053d88b4c5144c390c29c19de6c9d973df9be48f71ffe2bc73e34a42ff89281a1d0aa60b44b75ba9a17d1c30024673052a7c463a1 SHA512 9112c3eeb80e59c94bbe9a56b54fa21f0055895f84156682b852476d6c58e34b73c7529697f2517ca07b8e7208a6a12751308ff710a59025440f64bfe29e03f2

View file

@ -0,0 +1,23 @@
# Copyright 1999-2021 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="Library to (un)pack archives and (de)compress files"
HOMEPAGE="https://rolln.de/knoppo/xtract"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-0.1a3.tar.gz"
#534f7ca1c47faf47dec147533b94433a13d/xtract-0.1a3.tar.gz
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
RDEPEND="dev-python/python-magic[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
S="${WORKDIR}/xtract-0.1a3"

View file

@ -17,7 +17,8 @@ KEYWORDS="amd64 x86"
IUSE="examples +python static-libs"
RDEPEND="python? ( ${PYTHON_DEPS} )"
RDEPEND="python? ( ${PYTHON_DEPS}
dev-python/xtract[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )"
@ -39,8 +40,6 @@ wrap_python() {
src_prepare() {
#fix multilib
sed -i "s/DESTINATION lib/DESTINATION $(get_libdir)/" CMakeLists.txt || die
#https://github.com/lief-project/LIEF/issues/552
sed -i "s/self.parallel else 1/self.parallel else $(makeopts_jobs)/" setup.py || die
cmake_src_prepare
wrap_python ${FUNCNAME}
}
@ -67,8 +66,8 @@ src_compile() {
# wrap_python ${FUNCNAME}
compile_python() {
${EPYTHON} setup.py build_ext
distutils-r1_python_compile
# ${EPYTHON} setup.py build_ext
distutils-r1_python_compile build_ext
}
python_foreach_impl compile_python