Gentoo Archives: gentoo-dev

From: dilfridge@g.o
To: gentoo-dev@l.g.o
Cc: "Andreas K. Hüttel" <dilfridge@g.o>
Subject: [gentoo-dev] [PATCH 08/15] perl-module.eclass: Document variables available in EAPI=6
Date: Fri, 11 Dec 2015 21:06:31
Message-Id: 1449867791-30513-8-git-send-email-dilfridge@gentoo.org
In Reply to: [gentoo-dev] [PATCH 01/15] perl-module.eclass: Allow EAPI=6, ban PERL_EXPORT_PHASE_FUNCTIONS there, simplify perl dependency by dilfridge@gentoo.org
1 From: Andreas K. Hüttel <dilfridge@g.o>
2
3 ---
4 eclass/perl-module.eclass | 37 +++++++++++++++++++++++++++++++++++++
5 1 file changed, 37 insertions(+)
6
7 diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
8 index 7434bcf..82707fe 100644
9 --- a/eclass/perl-module.eclass
10 +++ b/eclass/perl-module.eclass
11 @@ -29,6 +29,18 @@ case "${EAPI:-0}" in
12 ;;
13 esac
14
15 +# @ECLASS-VARIABLE: GENTOO_DEPEND_ON_PERL
16 +# @DESCRIPTION:
17 +# This variable controls whether a runtime and build time dependency on
18 +# dev-lang/perl is automatically added by the eclass. It defaults to yes.
19 +# Set to no to disable.
20 +
21 +# @ECLASS-VARIABLE: GENTOO_DEPEND_ON_PERL_SUBSLOT
22 +# @DESCRIPTION:
23 +# This variable controls whether the dependency on dev-lang/perl added by
24 +# the eclass contains a := slot operator. Defaults to yes, set to no to
25 +# disable the slot operator. All packages installing into the vendor_perl
26 +# path must use yes here.
27
28 case "${EAPI:-0}" in
29 5)
30 @@ -102,6 +114,31 @@ esac
31
32 LICENSE="${LICENSE:-|| ( Artistic GPL-1+ )}"
33
34 +# @ECLASS-VARIABLE: MODULE_NAME
35 +# @DESCRIPTION:
36 +# (EAPI=6) This variable provides a way to override PN for the calculation of S,
37 +# SRC_URI, and HOMEPAGE. Defaults to PN.
38 +
39 +# @ECLASS-VARIABLE: MODULE_VERSION
40 +# @DESCRIPTION:
41 +# This variable provides a way to override PV for the calculation of S and SRC_URI.
42 +# Use it to provide the non-normalized, upstream version number. Defaults to PV.
43 +
44 +# @ECLASS-VARIABLE: MODULE_A_EXT
45 +# @DESCRIPTION:
46 +# This variable provides a way to override the distfile extension for the calculation of
47 +# SRC_URI. Defaults to tar.gz
48 +
49 +# @ECLASS-VARIABLE: MODULE_A
50 +# @DESCRIPTION:
51 +# This variable provides a way to override the distfile name for the calculation of
52 +# SRC_URI. Defaults to ${MODULE_NAME}-${MODULE_VERSION}.${MODULE_A_EXT}
53 +
54 +# @ECLASS-VARIABLE: MODULE_AUTHOR
55 +# @DESCRIPTION:
56 +# This variable sets the module author name for the calculation of
57 +# SRC_URI.
58 +
59 if [[ ${EAPI:-0} = 5 ]] ; then
60 if [[ -n ${MY_PN} || -n ${MY_PV} || -n ${MODULE_VERSION} ]] ; then
61 : ${MY_P:=${MY_PN:-${PN}}-${MY_PV:-${MODULE_VERSION:-${PV}}}}
62 --
63 2.6.3