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: Thu, 15 Aug 2019 16:39:39
Message-Id: 1565887038.843c1d8de0b2eb34a91760c2c9cbffab7dafe5b7.dilfridge@gentoo
1 commit: 843c1d8de0b2eb34a91760c2c9cbffab7dafe5b7
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 14 21:33:11 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 15 16:37:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=843c1d8d
7
8 perl-module.eclass: Also populate BDEPEND in EAPI=7
9
10 In addition, no slot op in DEPEND.
11
12 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
13
14 eclass/perl-module.eclass | 31 +++++++++++++++++++++++++++++--
15 1 file changed, 29 insertions(+), 2 deletions(-)
16
17 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
18 index 81f79992d76..e1fb97df326 100644
19 --- a/eclass/perl-module.eclass
20 +++ b/eclass/perl-module.eclass
21 @@ -72,13 +72,13 @@ case ${EAPI:-0} in
22 ;;
23 esac
24 ;;
25 - 6|7)
26 + 6)
27 [[ ${CATEGORY} == perl-core ]] && \
28 PERL_EXPF+=" pkg_postinst pkg_postrm"
29
30 case "${GENTOO_DEPEND_ON_PERL:-yes}" in
31 yes)
32 - DEPEND="dev-lang/perl:="
33 + DEPEND="dev-lang/perl"
34 RDEPEND="dev-lang/perl:="
35 ;;
36 noslotop)
37 @@ -97,6 +97,33 @@ case ${EAPI:-0} in
38 die "phase functions, perl-functions.eclass if not."
39 fi
40
41 + EXPORT_FUNCTIONS ${PERL_EXPF}
42 + ;;
43 + 7)
44 + [[ ${CATEGORY} == perl-core ]] && \
45 + PERL_EXPF+=" pkg_postinst pkg_postrm"
46 +
47 + case "${GENTOO_DEPEND_ON_PERL:-yes}" in
48 + yes)
49 + DEPEND="dev-lang/perl"
50 + BDEPEND="dev-lang/perl"
51 + RDEPEND="dev-lang/perl:="
52 + ;;
53 + noslotop)
54 + DEPEND="dev-lang/perl"
55 + BDEPEND="dev-lang/perl"
56 + RDEPEND="dev-lang/perl"
57 + ;;
58 + esac
59 +
60 + if [[ "${GENTOO_DEPEND_ON_PERL_SUBSLOT:-yes}" != "yes" ]]; then
61 + die "GENTOO_DEPEND_ON_PERL_SUBSLOT=no is banned in EAPI=6 and later."
62 + fi
63 +
64 + if [[ "${PERL_EXPORT_PHASE_FUNCTIONS}" ]]; then
65 + die "PERL_EXPORT_PHASE_FUNCTIONS is banned in EAPI=6 and later."
66 + fi
67 +
68 EXPORT_FUNCTIONS ${PERL_EXPF}
69 ;;
70 *)