commit:     30a3a78fa90e8ffd70db65afb63d50edc367dcfb
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Thu Jul 13 07:04:09 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 18 07:39:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30a3a78f

dev-python/leechcorepyc: add 2.15.0

Closes: https://bugs.gentoo.org/906715
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/leechcorepyc/Manifest                   |  1 +
 dev-python/leechcorepyc/leechcorepyc-2.15.0.ebuild | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/dev-python/leechcorepyc/Manifest b/dev-python/leechcorepyc/Manifest
index fdecfbba4520..12bc0962ad5c 100644
--- a/dev-python/leechcorepyc/Manifest
+++ b/dev-python/leechcorepyc/Manifest
@@ -1 +1,2 @@
 DIST leechcorepyc-2.14.3.tar.gz 126511 BLAKE2B 
a15b593144685d1f44dc1b580c8146f57d6c784e39d2a4aad8b4221ea718ee79dffe24877ac74198a2f8baeaca30a37d3fe1e6680265b94bcc30dc7117002706
 SHA512 
06c4c66cc92c2c55e2dd2e57e5488a1864dc21a1667b4b39237372e95fcd6b99b569754a44eea7afdae32207245016b096939c0edf11a4133fc24a343c892ba8
+DIST leechcorepyc-2.15.0.tar.gz 176764 BLAKE2B 
d0e4aa14d0cc1ce1ad3c14e704949c3b872b0889449ca81c9ac8642340b301ce52baf638ce58a6c3d1262f0cfe5cc5ec8eb26f80d01d87933c33a0f87ac46338
 SHA512 
d1d5f775d4166b510dd110dfe3e28179464170682d3092e7887fd7464fef21c2e2d1bb6d2294eb8ab45cb2566df15f0bf3254d098afd8bcb6b36186517496bd2

diff --git a/dev-python/leechcorepyc/leechcorepyc-2.15.0.ebuild 
b/dev-python/leechcorepyc/leechcorepyc-2.15.0.ebuild
new file mode 100644
index 000000000000..47dbd6d391cd
--- /dev/null
+++ b/dev-python/leechcorepyc/leechcorepyc-2.15.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 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_{9..11} )
+
+inherit distutils-r1 toolchain-funcs pypi
+
+DESCRIPTION="Python binding for LeechCore Physical Memory Acquisition Library"
+HOMEPAGE="https://github.com/ufrisk/LeechCore";
+
+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.14.0-respect-CC.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