Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/yara-python/, dev-python/yara-python/files/
Date: Mon, 05 Jul 2021 15:48:15
Message-Id: 1625445798.4a5259196038d7dd221e7a927d9ebcf9c5310e6a.lanodan@gentoo
1 commit: 4a5259196038d7dd221e7a927d9ebcf9c5310e6a
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Mon Jul 5 00:42:45 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Mon Jul 5 00:43:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4a525919
7
8 dev-python/yara-python: link to libyara.so
9
10 Closes: https://bugs.gentoo.org/800260
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
13
14 .../yara-python/files/yara-python-4.1.0-system-libyara.patch | 10 ++++++++++
15 dev-python/yara-python/yara-python-4.1.0.ebuild | 9 ++++++---
16 2 files changed, 16 insertions(+), 3 deletions(-)
17
18 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
19 new file mode 100644
20 index 000000000..dd2740073
21 --- /dev/null
22 +++ b/dev-python/yara-python/files/yara-python-4.1.0-system-libyara.patch
23 @@ -0,0 +1,10 @@
24 +--- a/setup.py
25 ++++ b/setup.py
26 +@@ -370,5 +370,6 @@
27 + 'update': UpdateCommand},
28 + ext_modules=[Extension(
29 + name='yara',
30 +- include_dirs=['yara/libyara/include', 'yara/libyara/', '.'],
31 ++ include_dirs=['/usr/include', 'yara/libyara/include', 'yara/libyara/', '.'],
32 ++ libraries=['yara'],
33 + sources=['yara-python.c'])])
34
35 diff --git a/dev-python/yara-python/yara-python-4.1.0.ebuild b/dev-python/yara-python/yara-python-4.1.0.ebuild
36 index 0f524d839..32a20b842 100644
37 --- a/dev-python/yara-python/yara-python-4.1.0.ebuild
38 +++ b/dev-python/yara-python/yara-python-4.1.0.ebuild
39 @@ -1,11 +1,12 @@
40 # Copyright 1999-2021 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 -EAPI=7
44 +EAPI=8
45
46 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
47 +#with pypy3 undefined symbol: PyDescr_NewGetSet
48 +PYTHON_COMPAT=( python3_{8..10} )
49
50 -inherit distutils-r1 eutils
51 +inherit distutils-r1
52
53 DESCRIPTION="Python interface for a malware identification and classification tool"
54 HOMEPAGE="https://github.com/VirusTotal/yara-python"
55 @@ -21,6 +22,8 @@ RDEPEND="
56 "
57 DEPEND="${RDEPEND}"
58
59 +PATCHES=( "${FILESDIR}/${P}-system-libyara.patch" )
60 +
61 distutils_enable_tests setup.py
62
63 compile_python() {