lief-0.13.1.ebuild

This commit is contained in:
Anton Bolshakov 2023-05-30 10:02:39 +08:00
parent 26b863142c
commit abadaefb7a
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 20 additions and 14 deletions

View file

@ -1,23 +1,24 @@
# Copyright 1999-2021 Gentoo Foundation
# Copyright 1999-2023 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
MY_PV="${PV/_alpha/a}"
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
#DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1 pypi
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
SRC_URI="$(pypi_sdist_url "${PN}" "${MY_PV}")"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND="dev-python/python-magic[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
S="${WORKDIR}/xtract-0.1a3"
S="${WORKDIR}/xtract-${MY_PV}"

View file

@ -1,2 +1,2 @@
DIST lief-0.12.3.tar.gz 15570645 BLAKE2B d8714d73268c1156c7443725acacc01fee0b4d442dc988b082efcd56b6e29a0d5e17f10a8791c1397df7df8c1fb4b931603aa66a9bac3c82676e8bcf6e483ec6 SHA512 3f48978af2d96e9e469aca1fc4adcfd3475576ba32273d451f881e33b0fc062b0c2b625af10c54c2a0b6a9678e5ce7666499c1c36f578250dab217352f4717e0
DIST lief-0.13.0.tar.gz 14933925 BLAKE2B 316501b5c56b4fe60336817e81a9f57a849900f5e58f60ccbf6ad0ca2d2a529a0cab3b23977202f9cccc05c3a4800bb2901709c4e8a6c5d72b05296b70897f61 SHA512 6a78943f3a1682827705761586398d90609a7a970e7b8cddb598d3b99badeead783286c4781d69d4a6532be2a4dc963cfad56fc86cf84b3bf8ad7f7ffbe426d2
DIST lief-0.13.1.tar.gz 14934633 BLAKE2B 41c5fe0219a74a0aff271329c89c1a3f8c516a5acd1d3943a18bfc4e160a53de60a3b462a2ac158a5b433abfa0d13b4858243399ecb84e540a44503f5e5691e3 SHA512 368413904c128afa30700dc955d4de3f49b6694a6d7dc7804d0e685aebe8a0221c43a4692b27d77b1888388612a1c9d50d3ff353799a3a741a4232de7f9a6a5a

View file

@ -1,8 +1,11 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#fails to compile with 8
EAPI=7
#fails to compile with setuptools
#DISTUTILS_USE_PEP517=no
PYTHON_COMPAT=( python3_{10..11} )
inherit cmake distutils-r1
@ -33,9 +36,10 @@ S=${WORKDIR}/LIEF-${PV}
wrap_python() {
if use python; then
# pushd "${BUILD_DIR}"/api/python >/dev/null || die
#pushd "${BUILD_DIR}"/api/python >/dev/null || die
pushd "./api/python" >/dev/null || die
distutils-r1_${1} "$@"
# popd >/dev/null
popd >/dev/null
fi
}
@ -74,8 +78,9 @@ src_compile() {
# ${EPYTHON} setup.py build_ext
distutils-r1_python_compile build_ext
}
pushd "./api/python" >/dev/null || die
python_foreach_impl compile_python
popd >/dev/null
}
src_install() {