blshkv 2019-05-07 08:23:37 +08:00
parent a3cdf3a381
commit 9a688923a5
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 14 additions and 8 deletions

View file

@ -1,4 +1,3 @@
DIST yara-3.10.0.tar.gz 753883 BLAKE2B 7647bd9bab28f651e7de4d82c3ce2e448c8b4cdb9ffaa787963278bcd6fb73d3d9beba87a7fafb2a179cb893ef60c6fdc6f1bb7d90774acf859430ba518d06c5 SHA512 034658e835d59a42f03c062e99b40e96906c5a7de4285037c835d211f53062f8e439ade45e3400c4c35ef64502112e8d3b8d4c575e3265c69286cff2ad919ed9
DIST yara-3.9.0.tar.gz 749159 BLAKE2B 28a2b4f2758d28a9acc7782d687b01dbc1f8327bd881e7ca69afb98c7e5cadaac0e1ecac079531a2a18fa802831859a927af70600fecc4c0f406e0ce4f6a83bb SHA512 c9aa17d5e25f21f935e9938d8248366f928889a6fb8f70bbd22b6e2d7f74427d47259ca410dfcaa8de3e8ad7c82715fde0366e24209a672555e54d8d459086be
DIST yara-python-3.10.0.tar.gz 31732 BLAKE2B 4fcd8bdf2250c45b7a1b5ca1328cfeb1e91c80d92978752db77c321f72d08c718c366979bdba4f983bf3069ca15ef2a72f619b941aec0fdf4fb2352755dfa782 SHA512 f70844924ae2af26fe24e6910a116f012f5c94d0807ec2ef3dace022f98b848edcac54455384b85346b53ad8fe1fde9fda3ffe7ff0591c1882ddf2455f56db5e
DIST yara-python-3.9.0.tar.gz 31624 BLAKE2B 2739303734c88bd7efe9c5b76afdc619e4bcb9c299cbad042a38f5f1f44bd89084ff60d832a345a5b3d3cffb0fcad7caf882bd6e58452c61f128bc3213955ebc SHA512 3871cb457f29b3149ed4656abfb1cef40a42bbce09f0480b24dbe0fddde17560037303702f3ae74fed39773470859dfdd0e69cd9f8e4dc8a1e54a4dde9239bae

View file

@ -0,0 +1,9 @@
--- setup.py.orig 2019-05-02 17:34:46.000000000 +0800
+++ setup.py 2019-05-07 08:20:20.841022106 +0800
@@ -325,5 +325,5 @@
'update': UpdateCommand},
ext_modules=[Extension(
name='yara',
- include_dirs=['yara/libyara/include', 'yara/libyara/', '.'],
+ libraries = ['yara'],
sources=['yara-python.c'])])

View file

@ -4,12 +4,11 @@
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
inherit distutils-r1
inherit distutils-r1 eutils
DESCRIPTION="Python interface for a malware identification and classification tool"
HOMEPAGE="https://github.com/VirusTotal/yara-python"
SRC_URI="https://github.com/virustotal/yara-python/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/virustotal/yara/archive/v${PV}.tar.gz -> yara-${PV}.tar.gz"
SRC_URI="https://github.com/virustotal/yara-python/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
@ -19,9 +18,8 @@ RDEPEND="${PYTHON_DEPS}
~app-forensics/yara-${PV}"
DEPEND="${RDEPEND}"
#need to use local yara, see
#https://github.com/pentoo/pentoo-overlay/issues/397
src_prepare() {
cp -r "${WORKDIR}/yara-${PV}/"* "${S}/yara/"
default
#test with: import yara
python_prepare() {
epatch "${FILESDIR}"/yara-systemlib.patch
}