commit:     e1e6bd8f4d3c26dc5dfdc10189b45a454565443b
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 20 20:36:51 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Jun 20 20:38:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e6bd8f

perl-module.eclass: Simplify code and reapply EAPI=8 RESTRICT

Bug: https://bugs.gentoo.org/796959
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 eclass/perl-module.eclass | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index ec66990550c..3c1b4c3c5ac 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -137,23 +137,18 @@ case ${EAPI:-0} in
                        PERL_EXPF+=" pkg_postinst pkg_postrm"
 
                case "${GENTOO_DEPEND_ON_PERL:-yes}" in
-                       yes)
+                       yes|noslotop)
                                DEPEND="dev-lang/perl"
                                BDEPEND="dev-lang/perl
                                         test? ( virtual/perl-Test-Simple )"
-                               RDEPEND="dev-lang/perl:="
                                IUSE="test"
-                               # RESTRICT="!test? ( test )"
-                               # not handled correctly in portage yet
+                               RESTRICT="!test? ( test )"
+                               ;;&
+                       yes)
+                               RDEPEND="dev-lang/perl:="
                                ;;
                        noslotop)
-                               DEPEND="dev-lang/perl"
-                               BDEPEND="dev-lang/perl
-                                        test? ( virtual/perl-Test-Simple )"
                                RDEPEND="dev-lang/perl"
-                               IUSE="test"
-                               # RESTRICT="!test? ( test )"
-                               # not handled correctly in portage yet
                                ;;
                esac
 

Reply via email to