Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: yac@g.o
Subject: Re: [gentoo-dev] New eclass - twisted-r1
Date: Thu, 11 Jul 2013 06:55:58
Message-Id: 20130711085547.179e24d2@gentoo.org
In Reply to: Re: [gentoo-dev] New eclass - twisted-r1 by yac
1 Dnia 2013-07-10, o godz. 23:40:11
2 yac <yac@g.o> napisał(a):
3
4 > On Wed, 10 Jul 2013 22:25:50 +0200
5 > Michał Górny <mgorny@g.o> wrote:
6 >
7 > > First of all: please wrap lines at 72 or 80 chars (even if the
8 > > original eclass didn't do that).
9 > >
10 > > > if [[ "${CATEGORY}/${PN}" == "dev-python/twisted"* ]]; then
11 > >
12 > > I know you're not responsible for this but it seems wrong to have two
13 > > different behaviors depending on PN. Is this used somewhere actually?
14 > >
15 > > > MY_PV="${MY_PV:-${PV}}"
16 > > > MY_P="Twisted${MY_PACKAGE}-${MY_PV}"
17 > > >
18 > > > HOMEPAGE="http://www.twistedmatrix.com/"
19 > > > #SRC_URI="http://tmrc.mit.edu/mirror/twisted/${MY_PACKAGE}/$(get_version_component_range
20 > > > 1-2 ${MY_PV})/${MY_P}.tar.bz2"
21 > > > SRC_URI="http://twistedmatrix.com/Releases/${MY_PACKAGE}/$(get_version_component_range
22 > > > 1-2 ${MY_PV})/${MY_P}.tar.bz2"
23 > > >
24 > > > LICENSE="MIT"
25 > > > SLOT="0"
26 > > > IUSE=""
27 > > >
28 > > > S="${WORKDIR}/${MY_P}"
29 > > >
30 > > > TWISTED_PLUGINS="${TWISTED_PLUGINS:-twisted.plugins}"
31 > > > fi
32 >
33 > That's what I thought when I saw that but I found that all the
34 > dev-python/twisted-* packages are depending on this, so I went with it.
35 >
36 > Now I'm thinking I could instead provide functions
37 > twisted-r1_twisted_src_uri and twisted-r1_twisted_build_dir used as
38 >
39 > SRC_URI="$(twisted-r1_twisted_src_uri)"
40 > S="$(twisted-r1_twisted_build_dir)"
41 >
42 > in the depender ebuilds.
43
44 I'm more-of wondering if that conditional is really necessary useful.
45 Unless I'm missing something, the non-twisted ebuilds will replace
46 those variables anyway, won't them?
47
48 --
49 Best regards,
50 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] New eclass - twisted-r1 yac <yac@g.o>