mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
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:
@@ -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'])])
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user