1 |
Dnia 2013-07-11, o godz. 13:34:01 |
2 |
yac <yac@g.o> napisał(a): |
3 |
|
4 |
> On Thu, 11 Jul 2013 08:55:47 +0200 |
5 |
> Michał Górny <mgorny@g.o> wrote: |
6 |
> |
7 |
> > Dnia 2013-07-10, o godz. 23:40:11 |
8 |
> > yac <yac@g.o> napisał(a): |
9 |
> > |
10 |
> > > On Wed, 10 Jul 2013 22:25:50 +0200 |
11 |
> > > Michał Górny <mgorny@g.o> wrote: |
12 |
> > > |
13 |
> > > > First of all: please wrap lines at 72 or 80 chars (even if the |
14 |
> > > > original eclass didn't do that). |
15 |
> > > > |
16 |
> > > > > if [[ "${CATEGORY}/${PN}" == "dev-python/twisted"* ]]; then |
17 |
> > > > |
18 |
> > > > I know you're not responsible for this but it seems wrong to have |
19 |
> > > > two different behaviors depending on PN. Is this used somewhere |
20 |
> > > > actually? |
21 |
> > > > |
22 |
> > > > > MY_PV="${MY_PV:-${PV}}" |
23 |
> > > > > MY_P="Twisted${MY_PACKAGE}-${MY_PV}" |
24 |
> > > > > |
25 |
> > > > > HOMEPAGE="http://www.twistedmatrix.com/" |
26 |
> > > > > #SRC_URI="http://tmrc.mit.edu/mirror/twisted/${MY_PACKAGE}/$(get_version_component_range |
27 |
> > > > > 1-2 ${MY_PV})/${MY_P}.tar.bz2" |
28 |
> > > > > SRC_URI="http://twistedmatrix.com/Releases/${MY_PACKAGE}/$(get_version_component_range |
29 |
> > > > > 1-2 ${MY_PV})/${MY_P}.tar.bz2" |
30 |
> > > > > |
31 |
> > > > > LICENSE="MIT" |
32 |
> > > > > SLOT="0" |
33 |
> > > > > IUSE="" |
34 |
> > > > > |
35 |
> > > > > S="${WORKDIR}/${MY_P}" |
36 |
> > > > > |
37 |
> > > > > TWISTED_PLUGINS="${TWISTED_PLUGINS:-twisted.plugins}" |
38 |
> > > > > fi |
39 |
> > > |
40 |
> > > That's what I thought when I saw that but I found that all the |
41 |
> > > dev-python/twisted-* packages are depending on this, so I went with |
42 |
> > > it. |
43 |
> > > |
44 |
> > > Now I'm thinking I could instead provide functions |
45 |
> > > twisted-r1_twisted_src_uri and twisted-r1_twisted_build_dir used as |
46 |
> > > |
47 |
> > > SRC_URI="$(twisted-r1_twisted_src_uri)" |
48 |
> > > S="$(twisted-r1_twisted_build_dir)" |
49 |
> > > |
50 |
> > > in the depender ebuilds. |
51 |
> > |
52 |
> > I'm more-of wondering if that conditional is really necessary useful. |
53 |
> > Unless I'm missing something, the non-twisted ebuilds will replace |
54 |
> > those variables anyway, won't them? |
55 |
> |
56 |
> The dev-python/twisted-* packages do rely on this. They will set just |
57 |
> MY_PACKAGE= |
58 |
> |
59 |
> And the S, SRC_URI, LICENSE, SLOT, IUSE is set by the eclass. |
60 |
> |
61 |
> Other than dev-python/twisted-* packages does not match, so they need |
62 |
> not to override it. |
63 |
|
64 |
Well, I meant that the other packages need to set SRC_URI and stuff |
65 |
anyway, so they will override it anyway. But S is a fair point. |
66 |
|
67 |
-- |
68 |
Best regards, |
69 |
Michał Górny |