diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-06-20 22:36:51 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-06-20 22:38:05 +0200 |
commit | e1e6bd8f4d3c26dc5dfdc10189b45a454565443b (patch) | |
tree | 759d5697f3ff13621f579cd5a323b32fc2f0753e /eclass/perl-module.eclass | |
parent | sci-biology/bamtools: drop 2.5.1 (diff) | |
download | gentoo-e1e6bd8f4d3c26dc5dfdc10189b45a454565443b.tar.gz gentoo-e1e6bd8f4d3c26dc5dfdc10189b45a454565443b.tar.bz2 gentoo-e1e6bd8f4d3c26dc5dfdc10189b45a454565443b.zip |
perl-module.eclass: Simplify code and reapply EAPI=8 RESTRICT
Bug: https://bugs.gentoo.org/796959
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index ec66990550c3..3c1b4c3c5acc 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 |