dev-python/leechcorepyc: add 2.22.3

Closes: https://bugs.gentoo.org/961030
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Part-of: https://github.com/gentoo/gentoo/pull/43951
Closes: https://github.com/gentoo/gentoo/pull/43951
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Mario Haustein
2025-09-27 00:17:35 +02:00
committed by Sam James
parent a82dcfb041
commit e694c83dfb
2 changed files with 46 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST leechcorepyc-2.21.0.tar.gz 241055 BLAKE2B fbf2423044ec2a0d43c81b2e70c4171d912e2811878c398120305ac3cfa2b024ca8b785ab5df6487f8d6100959d1b7a556710516d4669445122ce6066c61a138 SHA512 107036e9feba18a0c7f076d21f4b81b0ffe96f6dded441521241875e62e4cc76cb1a327b4231aadf6ae0093b6af00e191b74dd2525d164cf906fcca50318ab10
DIST leechcorepyc-2.22.3.tar.gz 241436 BLAKE2B 2d929951f312dc1499aafd83f9cb8a16a4af827dac9f10e2ad503ecc928dc55d54045b440e5eaceff883efbb9a9e485b93cf40a803faf81a594bc281a64c7496 SHA512 894aa4c13c247b27bdacd7583edac13e129356f566e60b6a223e8be016f27a70ca81d9281b51fe388b87be2fe11080b99c1d6f663a3d7c21273a6ed40f654835

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 toolchain-funcs pypi
DESCRIPTION="Python binding for LeechCore Physical Memory Acquisition Library"
HOMEPAGE="
https://github.com/ufrisk/LeechCore/
https://pypi.org/project/leechcorepyc/
"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# leechcorepyc ships with a bundled version of the LeechCore library. So we
# don't depend on the library here. But we must be aware this module doesn't
# use the system library.
DEPEND="virtual/libusb:="
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PN}-2.21.0-respect-CC.patch"
"${FILESDIR}/${PN}-2.19.2-cflags-ldflags.patch"
)
src_prepare() {
default
# Avoid redefining _FORTIFY_SOURCE. See #893824, #906715.
sed -i -e 's/ -D_FORTIFY_SOURCE=2 / /g' leechcore/Makefile || die
}
src_configure() {
tc-export CC
distutils-r1_src_configure
}