From e5750eb623d42ee9f7b7fc523f08894e4fad272c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 22 Jun 2022 09:15:06 +0200 Subject: [PATCH] dev-libs/ossp-uuid: Use the canonical test restriction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While the conditional test restriction here might make some sense (though it would make even more sense to remove it entirely and just skip perl tests if USE=-test), it triggers a false positive in pkgcheck and there's really no need to be that specific to cover a corner case of a corner case. Signed-off-by: Michał Górny --- dev-libs/ossp-uuid/ossp-uuid-1.6.2-r7.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r7.ebuild b/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r7.ebuild index 90dbbbf5b19eb..335448aba2c50 100644 --- a/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r7.ebuild +++ b/dev-libs/ossp-uuid/ossp-uuid-1.6.2-r7.ebuild @@ -12,6 +12,7 @@ inherit perl-module DESCRIPTION="An ISO-C:1999 API with CLI for generating DCE, ISO/IEC and RFC compliant UUID" HOMEPAGE="http://www.ossp.org/pkg/lib/uuid/" SRC_URI="ftp://ftp.ossp.org/pkg/lib/uuid/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" LICENSE="ISC" SLOT="0" @@ -21,9 +22,7 @@ IUSE="+cxx perl static-libs test" DEPEND="perl? ( dev-lang/perl test? ( virtual/perl-Test-Simple ) )" RDEPEND="perl? ( dev-lang/perl:= )" BDEPEND="perl? ( dev-lang/perl )" -RESTRICT="perl? ( !test? ( test ) )" - -S="${WORKDIR}/${MY_P}" +RESTRICT="!test? ( test )" PATCHES=( "${FILESDIR}/${P}-gentoo-r1.patch"