From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7A16E158087 for ; Fri, 28 Jan 2022 05:18:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DD932BC007; Fri, 28 Jan 2022 05:18:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6850A2BC007 for ; Fri, 28 Jan 2022 05:18:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 05DDD342C7C for ; Fri, 28 Jan 2022 05:18:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7741F2AE for ; Fri, 28 Jan 2022 05:18:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1643346989.3e3c7d01664a47ae626abb734747ce1f98e1c2dd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/yara/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-forensics/yara/yara-4.1.3.ebuild app-forensics/yara/yara-4.2.0_rc1.ebuild X-VCS-Directories: app-forensics/yara/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3e3c7d01664a47ae626abb734747ce1f98e1c2dd X-VCS-Branch: master Date: Fri, 28 Jan 2022 05:18:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 108511f6-9678-4815-b816-252f49f48010 X-Archives-Hash: 61dc9f3b2f1e9fc17bd942c97df1070e commit: 3e3c7d01664a47ae626abb734747ce1f98e1c2dd Author: Sam James gentoo org> AuthorDate: Fri Jan 28 04:30:14 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 28 05:16:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e3c7d01 app-forensics/yara: run tests; misc. other changes - Run tests (needs static linked lib for now, but we delete it anyway) - Use more generic dependency - Define subslot Closes: https://bugs.gentoo.org/576956 See: https://github.com/gentoo/gentoo/pull/23800 Signed-off-by: Sam James gentoo.org> app-forensics/yara/yara-4.1.3.ebuild | 26 +++++++++++++++++++------ app-forensics/yara/yara-4.2.0_rc1.ebuild | 33 +++++++++++++++++++++++--------- 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/app-forensics/yara/yara-4.1.3.ebuild b/app-forensics/yara/yara-4.1.3.ebuild index 0e064fd15d7b..e11e07efff40 100644 --- a/app-forensics/yara/yara-4.1.3.ebuild +++ b/app-forensics/yara/yara-4.1.3.ebuild @@ -10,17 +10,18 @@ HOMEPAGE="http://virustotal.github.io/yara/" SRC_URI="https://github.com/virustotal/yara/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="Apache-2.0" -SLOT="0" +SLOT="0/8" KEYWORDS="~amd64 ~x86" -IUSE="+dex +dotnet +cuckoo +macho +magic profiling python" +IUSE="+dex +dotnet +cuckoo +macho +magic profiling python test" +RESTRICT="!test? ( test )" DEPEND=" - dev-libs/openssl:0= + dev-libs/openssl:= cuckoo? ( dev-libs/jansson:= ) - magic? ( sys-apps/file:0= ) + magic? ( sys-apps/file:= ) " RDEPEND="${DEPEND}" -PDEPEND="python? ( =dev-python/yara-python-4* )" +PDEPEND="python? ( =dev-python/yara-python-$(ver_cut 1)* )" src_prepare() { default @@ -34,5 +35,18 @@ src_configure() { $(use_enable magic) \ $(use_enable dotnet) \ $(use_enable macho) \ - $(use_enable dex) + $(use_enable dex) \ + $(use_enable test static) +} + +src_test() { + emake check +} + +src_install() { + default + + # TODO: Allow tests to work against dyn. lib rather than building + # statically just for tests. + find "${ED}" -name '*.a' -delete || die } diff --git a/app-forensics/yara/yara-4.2.0_rc1.ebuild b/app-forensics/yara/yara-4.2.0_rc1.ebuild index a514ff8e4690..8bac51561719 100644 --- a/app-forensics/yara/yara-4.2.0_rc1.ebuild +++ b/app-forensics/yara/yara-4.2.0_rc1.ebuild @@ -8,21 +8,23 @@ inherit autotools DESCRIPTION="A malware identification and classification tool" HOMEPAGE="http://virustotal.github.io/yara/" SRC_URI="https://github.com/virustotal/yara/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${PV/_/-}" LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="" -IUSE="+dex +dotnet +cuckoo +macho +magic profiling python" +SLOT="0/8" +if [[ ${PV} != *_rc* ]] ; then + KEYWORDS="~amd64 ~x86" +fi +IUSE="+dex +dotnet +cuckoo +macho +magic profiling python test" +RESTRICT="!test? ( test )" DEPEND=" - dev-libs/openssl:0= + dev-libs/openssl:= cuckoo? ( dev-libs/jansson:= ) - magic? ( sys-apps/file:0= ) + magic? ( sys-apps/file:= ) " RDEPEND="${DEPEND}" -PDEPEND="python? ( =dev-python/yara-python-4* )" - -S="${WORKDIR}/${PN}-${PV/_/-}" +PDEPEND="python? ( =dev-python/yara-python-$(ver_cut 1)* )" src_prepare() { default @@ -36,5 +38,18 @@ src_configure() { $(use_enable magic) \ $(use_enable dotnet) \ $(use_enable macho) \ - $(use_enable dex) + $(use_enable dex) \ + $(use_enable test static) +} + +src_test() { + emake check +} + +src_install() { + default + + # TODO: Allow tests to work against dyn. lib rather than building + # statically just for tests. + find "${ED}" -name '*.a' -delete || die }