dev-libs/ossp-uuid: Use the canonical test restriction

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 <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-06-22 09:26:09 +02:00
parent 831deaa15f
commit e5750eb623
+2 -3
View File
@@ -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"