app-forensics/yara-x: add 1.14.0

Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Part-of: https://github.com/gentoo/gentoo/pull/45573
Closes: https://github.com/gentoo/gentoo/pull/45573
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Mario Haustein
2026-03-08 21:32:31 +01:00
committed by Sam James
parent 40159a93fd
commit 36b545d0d4
2 changed files with 94 additions and 0 deletions

View File

@@ -2,5 +2,7 @@ DIST yara-x-1.10.0-crates.tar.xz 43548196 BLAKE2B f64ea1a947236012599776e8f83103
DIST yara-x-1.10.0.tar.gz 45731985 BLAKE2B e90af37b52841f6c16c2f27213f370f23bf69a8af9f79ebbdf5e32f77bbe7d7abb60586c5be236d32e4f203b093cb94e34749d9311ad822c701e983aa2229757 SHA512 f82e1d8caf6c51074bea0761fe15954ed7fa6e1437532c7615d40f077bc465ef10f14a75fb4c38d896978d7d193605c4a584442049f54ff01df3e0d17f0083d1
DIST yara-x-1.11.0-crates.tar.xz 45870116 BLAKE2B 00175f3c55f336a09ebf8d6ff90a028960e15fa7307fd0cf3ae602e1dc3d708759e4333b262cb50d06dce2e664b088e57e2d0fc2108cae111e28faa2673f1b44 SHA512 34be741490d44c2f48680eb0138231831cbf357c4984cee729a6213a0d93cca21630ebf0dc35d426f8112b36a1821696cda4bcec066b518bf56098c2f879c32b
DIST yara-x-1.11.0.tar.gz 46624874 BLAKE2B 01565d46efc274ed9315f6bbac53c57b450f9fc191fffc3b2a288a461c261875854cc48442ea0e5cd44e48499ff92049393b39fb02448908e786dae1e5cd978e SHA512 885d86298ea5b1675620e0f4b494d99c2700d930033a5ec50428f3976b14526b8cf05003072b0eb34cc1eb5ff653bada192eb805fbe3d163031aed8c70eca15b
DIST yara-x-1.14.0-crates.tar.xz 37085572 BLAKE2B c9c5b6b736e6b7b7ddde4282b414bf357462eb295f28123225f388c87cdcd51b9ecff540f98be2bc1d24f3b8aecbf8fc14a0555b6aa31a615a7372d9847dd0e1 SHA512 0e0c97e4021323b539ba6ee27187a9caa084fc5a020673d01d4e86cb18fe7b2cf38bee141f7d89b901ed55e97295d5372f60de38e7f66ca5ddd79f17d5690f68
DIST yara-x-1.14.0.tar.gz 53590528 BLAKE2B ec4e4a50cb65b2fd1e56466920130ff4425be5ac9ce82d493cfc0462137656c390683a5cd2000ec8e970baf55181943f32d362c7d168a8714219678979e5db84 SHA512 43c1bdcc793ce7d22ae947ad8b397c32eae2e97ef7b7580dcbb6002da92b897e35f3fe797782d01e343a576c666009af2843abd4b98549da0bd4fc4c8166dd13
DIST yara-x-1.8.1-crates.tar.xz 43611272 BLAKE2B bc655cf47eef9cba45fdf72013c686cbbf57e9a57fe24a1bb493cfb2f783b7d8cb49d6f92c82d0ff1856485c8eb474401e3a8a4a028b202e75c320d774f359e6 SHA512 4dc52b80f15220cd225edb18ffee31ed59088e083eb1fb00cb4c19b38fcf7d0fbe2cd957d7ffac288335334ae76b5425dc8745443f2c89adac6bc9aa4befb499
DIST yara-x-1.8.1.tar.gz 45705548 BLAKE2B bf7efca80ff666a654ba53f3b5936a8d8eb60ee30f4a024772f071a4f4617d15a44e894b430b23f9a9740b07201b6fb0be460958c79f27e8ed1e29377d51cdb4 SHA512 26c01d8f36347d68664e872ca353749bb70b4916eb41f0a21f312d74e16fbba061f208246b32ac6f51a52272f41ad62730531bb71e44bb027bc4a49b2dd40233

View File

@@ -0,0 +1,92 @@
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
DISTUTILS_OPTIONAL=1
PYTHON_COMPAT=( python3_{10..13} )
RUST_MIN_VER="1.89.0"
CRATES=""
inherit cargo distutils-r1
DESCRIPTION="A malware identification and classification tool"
HOMEPAGE="https://virustotal.github.io/yara-x/"
SRC_URI="https://github.com/VirusTotal/yara-x/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
LICENSE="BSD"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0 EPL-2.0 ISC
MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB
"
SLOT="0"
# Note: cranelift dependency only supports amd64, arm64, s390, and riscv64 as of 2025
KEYWORDS="~amd64"
IUSE="python"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
"
RDEPEND="
python? ( ${PYTHON_DEPS} )
"
BDEPEND="
python? (
${PYTHON_DEPS}
${DISTUTILS_DEPS}
)
"
wrap_python() {
local phase=$1
shift
if use python; then
pushd py >/dev/null || die
distutils-r1_${phase} "$@"
popd >/dev/null || die
fi
}
# https://bugs.gentoo.org/933231, https://bugs.gentoo.org/933232
QA_FLAGS_IGNORED="usr/bin/yr"
pkg_setup() {
# https://bugs.gentoo.org/933233
QA_SONAME="usr/$(get_libdir)/libyara_x.*\\.so usr/lib.*/py.*/site-packages/yara_x/yara_x.*\\.so"
rust_pkg_setup
}
src_prepare() {
default
wrap_python ${FUNCNAME}
}
src_compile() {
cargo_src_compile --workspace
wrap_python ${FUNCNAME}
}
python_test() {
epytest
}
src_test() {
export RUST_BACKTRACE=full
cargo_src_test
wrap_python ${FUNCNAME}
}
src_install() {
dobin "$(cargo_target_dir)"/yr
dolib.so "$(cargo_target_dir)"/*.so
wrap_python ${FUNCNAME}
}