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@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-07-05 02:42:45 +02:00
parent ba9cbbe990
commit 4a52591960
2 changed files with 16 additions and 3 deletions

View File

@@ -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'])])

View File

@@ -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() {