Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 20 Jun 2021 20:38:22
Message-Id: 1624221485.e1e6bd8f4d3c26dc5dfdc10189b45a454565443b.dilfridge@gentoo
1 commit: e1e6bd8f4d3c26dc5dfdc10189b45a454565443b
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 20:36:51 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 20 20:38:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e6bd8f
7
8 perl-module.eclass: Simplify code and reapply EAPI=8 RESTRICT
9
10 Bug: https://bugs.gentoo.org/796959
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 eclass/perl-module.eclass | 15 +++++----------
14 1 file changed, 5 insertions(+), 10 deletions(-)
15
16 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
17 index ec66990550c..3c1b4c3c5ac 100644
18 --- a/eclass/perl-module.eclass
19 +++ b/eclass/perl-module.eclass
20 @@ -137,23 +137,18 @@ case ${EAPI:-0} in
21 PERL_EXPF+=" pkg_postinst pkg_postrm"
22
23 case "${GENTOO_DEPEND_ON_PERL:-yes}" in
24 - yes)
25 + yes|noslotop)
26 DEPEND="dev-lang/perl"
27 BDEPEND="dev-lang/perl
28 test? ( virtual/perl-Test-Simple )"
29 - RDEPEND="dev-lang/perl:="
30 IUSE="test"
31 - # RESTRICT="!test? ( test )"
32 - # not handled correctly in portage yet
33 + RESTRICT="!test? ( test )"
34 + ;;&
35 + yes)
36 + RDEPEND="dev-lang/perl:="
37 ;;
38 noslotop)
39 - DEPEND="dev-lang/perl"
40 - BDEPEND="dev-lang/perl
41 - test? ( virtual/perl-Test-Simple )"
42 RDEPEND="dev-lang/perl"
43 - IUSE="test"
44 - # RESTRICT="!test? ( test )"
45 - # not handled correctly in portage yet
46 ;;
47 esac