commit:     e694c83dfbdc5d840731519afa510859aee58dd4
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Fri Sep 26 22:17:35 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 00:27:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e694c83d

dev-python/leechcorepyc: add 2.22.3

Closes: https://bugs.gentoo.org/961030
Signed-off-by: Mario Haustein <mario.haustein <AT> 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 <AT> gentoo.org>

 dev-python/leechcorepyc/Manifest                   |  1 +
 dev-python/leechcorepyc/leechcorepyc-2.22.3.ebuild | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-python/leechcorepyc/Manifest b/dev-python/leechcorepyc/Manifest
index 5f05081453b3..81886dc0306c 100644
--- a/dev-python/leechcorepyc/Manifest
+++ b/dev-python/leechcorepyc/Manifest
@@ -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

diff --git a/dev-python/leechcorepyc/leechcorepyc-2.22.3.ebuild 
b/dev-python/leechcorepyc/leechcorepyc-2.22.3.ebuild
new file mode 100644
index 000000000000..314655b5d10c
--- /dev/null
+++ b/dev-python/leechcorepyc/leechcorepyc-2.22.3.ebuild
@@ -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
+}

Reply via email to