Gentoo Archives: gentoo-dev

From: Alec Warner <antarus@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Future EAPI Idea: post source hook for eclasses
Date: Fri, 28 Mar 2014 18:42:55
Message-Id: CAAr7Pr9nVZzKyd6VEkoVfdOQP91uMsPDp2LhwzCxxxTVpKnoPw@mail.gmail.com
In Reply to: Re: [gentoo-dev] Future EAPI Idea: post source hook for eclasses by Ciaran McCreesh
1 On Fri, Mar 28, 2014 at 10:12 AM, Ciaran McCreesh <
2 ciaran.mccreesh@××××××××××.com> wrote:
3
4 > On Sat, 29 Mar 2014 01:44:06 +1300
5 > Kent Fredric <kentfredric@×××××.com> wrote:
6 > > On 28 March 2014 23:47, Michał Górny <mgorny@g.o> wrote:
7 > > > Please paste a real example, it's easier to understand what you're
8 > > > trying to do when we see what it does.
9 > >
10 > >
11 > > For the A.1 style:
12 > >
13 > > MODULE_AUTHOR=DOY
14 > > MODULE_VERSION=2.0604
15 > > inherit perl-module
16 > >
17 > > ^ from Moose 2.60.400.ebuild , this creates SRC_URI based on those
18 > > tokens above as:
19 > >
20 > > "mirror://cpan/authors/id/D/DO/DOY/Moose-2.0604.tar.gz"
21 > >
22 > >
23 > > KDE_HANDBOOK="optional"
24 > > KMNAME="kde-workspace"
25 > > inherit systemd kde4-meta flag-o-matic user
26 > >
27 > > ^ from kdm-4.11.7.ebuild
28 >
29 > These look a lot like they're just parameters to an eclass... An
30 > alternative approach is to make this explicit, rather than having
31 > zillions of environment variables:
32 >
33 > http://exherbo.org/docs/exheres-for-smarties.html#exlib_parameters
34 >
35 >
36 I vote for this over A or B :)
37
38 -A
39
40
41
42 > --
43 > Ciaran McCreesh
44 >