yara-python: Bump to correct the dynamic-linking flag

Signed-off-by: Mike Auty <ikelos@gentoo.org>
This commit is contained in:
Mike Auty 2020-06-10 23:51:28 +01:00
parent 8548727fde
commit 33718e389e
No known key found for this signature in database
GPG key ID: 0D129BD4062378F1
2 changed files with 4 additions and 13 deletions

View file

@ -1,3 +1,2 @@
DIST yara-4.0.1.tar.gz 889069 BLAKE2B d56ba0c989f28c802b4474832f595360a246740a67aff8106a7ded8ce0c4636afac487d17b1e2470ee21741d95b71b78dbd7679e71bc1f84dbfc9d2f2c0d48ed SHA512 5d91b8df242299084916d9634e950359e7a9df26a7964ca2ca52cecf79a969d5aefd1c2dd89f5e762cf3a3c907cd616bd738b540f8600ad94522cbc3f1b031d3
DIST yara-python-4.0.0.tar.gz 32201 BLAKE2B 31641d50285eba140fae372f411a9531374702c6a0f48986caff56b04d085bcd6d84a6cadd91f3a585c546132f2b538a656ef5c08ec0159ce4fb1b900cd5454a SHA512 9210793d305e34313494e3d867fc3a729814401208206a0f6f7fd2bfdcb6482a8e19e64788c35c149cd5a65cdc5357d8fa1e020fae6ac8c2704fa55e6c2cb989
DIST yara-python-4.0.1.tar.gz 32251 BLAKE2B 465abf3fdb995c4366ffc1fbfbaec6122f1d916c8ac3c9e5381f31e7784d22b50c1afde6862ecc544799e082c8230e46038a5c58d0f7796d25c71d8d78db247c SHA512 8bd4ba51dbec38cb6b9c18b4d8b9325d5bfc413af1462682497398ab86ab67e4cd19355bdaacf1d075098e281ad0d5e9bf748eb5b7fbe404dcf0955cb688e2aa

View file

@ -9,8 +9,7 @@ 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"
@ -21,19 +20,12 @@ RDEPEND="${PYTHON_DEPS}
~app-forensics/yara-${PV}[dex?]"
DEPEND="${RDEPEND}"
# Yara-python requires an unpacked copy of the yara source present in the yara subdirectory
# otherwise it builds fine, but fails on import with "undefined symbol: yr_finalize"
# See: https://github.com/VirusTotal/yara-python/issues/7
src_prepare() {
default
mv "${WORKDIR}/yara-${PV}/"* "${S}/yara/"
}
# Dex isn't enabled because dynamic-linking and dex aren't compatible
# We just make sure that if someone asks for dex, the yara library is compiled with it
src_compile() {
compile_python() {
${EPYTHON} setup.py build --dynamic-linking
distutils-r1_python_compile
distutils-r1_python_compile --dynamic-linking
}
python_foreach_impl compile_python
}