diff options
Diffstat (limited to 'dev-python/yara-python')
-rw-r--r-- | dev-python/yara-python/Manifest | 6 | ||||
-rw-r--r-- | dev-python/yara-python/yara-python-4.5.1.ebuild | 2 | ||||
-rw-r--r-- | dev-python/yara-python/yara-python-4.5.2.ebuild | 40 | ||||
-rw-r--r-- | dev-python/yara-python/yara-python-9999.ebuild | 7 |
4 files changed, 48 insertions, 7 deletions
diff --git a/dev-python/yara-python/Manifest b/dev-python/yara-python/Manifest index 9f24accb23aa..7068e2ee6621 100644 --- a/dev-python/yara-python/Manifest +++ b/dev-python/yara-python/Manifest @@ -1,4 +1,6 @@ DIST yara-python-4.5.1.gh.tar.gz 39419 BLAKE2B e89677bd8b857e9c7b40b172311245ab7cc2149bfec6de09905494645d65abd67b1a41978101795ddb9dcb9d4344c3a4ffc23c96291580f17f59cdabe66a1d59 SHA512 fb3d78cea58a5dcb21287d5211805ef7097c07b9117e4fe78a7e56b40f2520950f0e8d6f1eb3c4253a454e10ca782c3826c19613bd17677bef491ae91f9f9d2a -EBUILD yara-python-4.5.1.ebuild 897 BLAKE2B 9e0933deb6c9c7e25009efb58c88c642cf303706257c3b00eadcb676527345db1706be9bbdf06f956e50c9451bee48a01926f55ce2d8501753abda277ee95216 SHA512 3b5eab0a5298a02a3c5e5d7f936c3ba7c465ff753bbb7638cef5d6374d50a8b56eceb403054f9b3a68ad1ef55d552ea8b10a491fa9265906615b6a55c8d07afb -EBUILD yara-python-9999.ebuild 912 BLAKE2B 3939e8490e8854e4e64880afb8b9338b05a3b2fb7b71d3b8468b45b4e19270e5ad898006188405ef24da7a42026f7d18a6468225686d85a9d67a31d9e345647e SHA512 78c27faf6554db4176aa524eb249a6eb2c0d63ecc08f07bd8ed7190c2016c986c1d9c2c0c9456b78bf13a6f18629e35c9480888ee3c63fc456e835504398ffa0 +DIST yara-python-4.5.2.gh.tar.gz 39258 BLAKE2B db9038d476654916eb66d72c6e45b93faf61e8e2621b2a6d862620d100a5d5f7b292e586e68c77cf8a76ce728fcf976690bfd468f027a77f28519298dc3a668a SHA512 586f22d50db01b21e47a8b76e069a917018cc86f8931f438c5066b38323f7a477a919d9e10e704e74f2962ae02bb1715834c704dfe16b66311f48f06c0c5165a +EBUILD yara-python-4.5.1.ebuild 897 BLAKE2B 51c602e1d451b78aab0222bc1255328427c89e53b6b79c3ddb0e3c1c8355a53ae6ac2813634e0248f1d64cadfc4b6c8be29dc2114192a69ae0edef7f6ef63b1d SHA512 9d3067a643c68398f1ee1b73763f3c12fd0272bea016d38640383b16ae84b9c9ed66982261f74f16c9e7105911af6216768fc09c2324479f2928f360580b2021 +EBUILD yara-python-4.5.2.ebuild 902 BLAKE2B 82cf302b7822aed777634c30c5e38733f1f63dd80c7bb88d21e010385bd9799c8c39d0d4083a798df0354ae7a2a3161070e6723408bc7f7c6c34642146419870 SHA512 dbb765fc9bcd0dd27fee7b3689d7043a0486739bbce1d16bdb98221ea34c3c944c944935eb814bfb2af2d23f36cc943dd0af38d677c64b9d9a6975f542855b95 +EBUILD yara-python-9999.ebuild 902 BLAKE2B 82cf302b7822aed777634c30c5e38733f1f63dd80c7bb88d21e010385bd9799c8c39d0d4083a798df0354ae7a2a3161070e6723408bc7f7c6c34642146419870 SHA512 dbb765fc9bcd0dd27fee7b3689d7043a0486739bbce1d16bdb98221ea34c3c944c944935eb814bfb2af2d23f36cc943dd0af38d677c64b9d9a6975f542855b95 MISC metadata.xml 868 BLAKE2B 45f55060dbf7936f5004b8b6b9332ae01fbe8f25c008d6b272245ae3a21522ffdb1b3d11a338fdf31300aa274c4e24cd05ecdc62ad0b1e757188edf174c6e27e SHA512 ab67d86f6deb877d1f5a22ec36e381d7cdf62ec0634dbfd526ea2b58a5e4b9d6d6e2f06ead9cf7e8d4cff463bdd3486992350d94715d7b59c40c746ad9184e22 diff --git a/dev-python/yara-python/yara-python-4.5.1.ebuild b/dev-python/yara-python/yara-python-4.5.1.ebuild index 424796f10c59..c10c25f9ebd8 100644 --- a/dev-python/yara-python/yara-python-4.5.1.ebuild +++ b/dev-python/yara-python/yara-python-4.5.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit distutils-r1 DESCRIPTION="Python interface for a malware identification and classification tool" diff --git a/dev-python/yara-python/yara-python-4.5.2.ebuild b/dev-python/yara-python/yara-python-4.5.2.ebuild new file mode 100644 index 000000000000..c4347c9f2d9b --- /dev/null +++ b/dev-python/yara-python/yara-python-4.5.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{11..13} ) +inherit distutils-r1 + +DESCRIPTION="Python interface for a malware identification and classification tool" +HOMEPAGE="https://github.com/VirusTotal/yara-python" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/VirusTotal/yara-python.git" +else + SRC_URI="https://github.com/virustotal/yara-python/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +RDEPEND=" + =app-forensics/yara-$(ver_cut 1-2)* +" +DEPEND="${RDEPEND}" + +distutils_enable_tests unittest + +python_configure_all() { + cat >> setup.cfg <<-EOF + dynamic_linking = True + EOF +} + +python_test() { + "${EPYTHON}" tests.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/yara-python/yara-python-9999.ebuild b/dev-python/yara-python/yara-python-9999.ebuild index 053d1d779d51..c4347c9f2d9b 100644 --- a/dev-python/yara-python/yara-python-9999.ebuild +++ b/dev-python/yara-python/yara-python-9999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{11..13} ) inherit distutils-r1 DESCRIPTION="Python interface for a malware identification and classification tool" @@ -31,11 +31,10 @@ distutils_enable_tests unittest python_configure_all() { cat >> setup.cfg <<-EOF - [build_ext] dynamic_linking = True EOF } python_test() { - "${EPYTHON}" tests.py || die "Tests fail with ${EPYTHON}" + "${EPYTHON}" tests.py -v || die "Tests fail with ${EPYTHON}" } |