* [gentoo-commits] repo/proj/guru:master commit in: dev-python/yara-python/, dev-python/yara-python/files/
@ 2021-07-05 15:48 Haelwenn Monnier
0 siblings, 0 replies; only message in thread
From: Haelwenn Monnier @ 2021-07-05 15:48 UTC (permalink / raw
To: gentoo-commits
commit: 4a5259196038d7dd221e7a927d9ebcf9c5310e6a
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 5 00:42:45 2021 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Mon Jul 5 00:43:18 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4a525919
dev-python/yara-python: link to libyara.so
Closes: https://bugs.gentoo.org/800260
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
.../yara-python/files/yara-python-4.1.0-system-libyara.patch | 10 ++++++++++
dev-python/yara-python/yara-python-4.1.0.ebuild | 9 ++++++---
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/dev-python/yara-python/files/yara-python-4.1.0-system-libyara.patch b/dev-python/yara-python/files/yara-python-4.1.0-system-libyara.patch
new file mode 100644
index 000000000..dd2740073
--- /dev/null
+++ b/dev-python/yara-python/files/yara-python-4.1.0-system-libyara.patch
@@ -0,0 +1,10 @@
+--- a/setup.py
++++ b/setup.py
+@@ -370,5 +370,6 @@
+ 'update': UpdateCommand},
+ ext_modules=[Extension(
+ name='yara',
+- include_dirs=['yara/libyara/include', 'yara/libyara/', '.'],
++ include_dirs=['/usr/include', 'yara/libyara/include', 'yara/libyara/', '.'],
++ libraries=['yara'],
+ sources=['yara-python.c'])])
diff --git a/dev-python/yara-python/yara-python-4.1.0.ebuild b/dev-python/yara-python/yara-python-4.1.0.ebuild
index 0f524d839..32a20b842 100644
--- a/dev-python/yara-python/yara-python-4.1.0.ebuild
+++ b/dev-python/yara-python/yara-python-4.1.0.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
+#with pypy3 undefined symbol: PyDescr_NewGetSet
+PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1 eutils
+inherit distutils-r1
DESCRIPTION="Python interface for a malware identification and classification tool"
HOMEPAGE="https://github.com/VirusTotal/yara-python"
@@ -21,6 +22,8 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/${P}-system-libyara.patch" )
+
distutils_enable_tests setup.py
compile_python() {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-05 15:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-05 15:48 [gentoo-commits] repo/proj/guru:master commit in: dev-python/yara-python/, dev-python/yara-python/files/ Haelwenn Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox