Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [discussion] GitHub eclass
Date: Fri, 22 Feb 2013 16:30:31
Message-Id: 51279D18.9090200@gentoo.org
In Reply to: [gentoo-dev] Re: [discussion] GitHub eclass by Duncan <1i5t5.duncan@cox.net>
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 22/02/13 11:19 AM, Duncan wrote:
5 > Rich Freeman posted on Fri, 22 Feb 2013 10:09:32 -0500 as
6 > excerpted:
7 >
8 >> On Fri, Feb 22, 2013 at 9:00 AM, Michał Górny <mgorny@g.o>
9 >> wrote:
10 >>>
11 >>> You can also use git-2 eclass-specific variables to switch the
12 >>> repo. The only difference is that you need to specify the full
13 >>> repo URI rather than just the author.
14 >>
15 >> The full repo URI is actually copy-pastable from github, while
16 >> breaking everything up requires a few steps to configure it all.
17 >>
18 >> I could see some value in being able to switch forks, but that
19 >> seems like a bit of a niche. If you REALLY want to follow
20 >> another fork you're better off creating a new ebuild rather than
21 >> just overriding the environment variable. You can also override
22 >> the repo URI if it uses the git eclass and again that can be
23 >> copy/pasted.
24 >
25 >
26 > I I'm involved with pan upstream, I keep a slightly rewritten copy
27 > of the net-nntp/pan-9999 ebuild in my overlay, synced to the one in
28 > the tree. The main difference between it and the tree version is
29 > that my version has:
30 >
31 > [[ $EGIT_PROJECT ]] || EGIT_PROJECT="${PN}2" [[ $EGIT_REPO_URI ]]
32 > || EGIT_REPO_URI="git://git.gnome.org/ ${EGIT_PROJECT}" [[
33 > $EGIT_BRANCH ]] || EGIT_BRANCH=master [[ $EGIT_COMMIT ]] ||
34 > EGIT_COMMIT=$EGIT_BRANCH
35 >
36 > That allows me to keep an /etc/portage/env/net-nntp/pan file where
37 > I can set those as I wish, as well as keep (normally commented)
38 > vars such as EGIT_COMMIT, EGIT_OFFLINE, etc.
39 >
40 > =:^)
41 >
42
43 git-2.eclass allows environment based overrides via ${PN}_LIVE_REPO=,
44 ${PN}_LIVE_BRANCH=, and ${PN}_LIVE_COMMIT=
45
46 it would seem that the only thing you would need to do outside of
47 those is the override for EGIT_PROJECT.
48
49 -----BEGIN PGP SIGNATURE-----
50 Version: GnuPG v2.0.19 (GNU/Linux)
51
52 iF4EAREIAAYFAlEnnRgACgkQ2ugaI38ACPDiUAEAuyDkKlZL2qKCYY6wkezQ6q+k
53 ZtzGlqrn/MZJ2uGTipsA/RpqDpWY9AUDAZinqBwug3iJj2C46+ncBrK/tVlmpCE9
54 =3DD5
55 -----END PGP SIGNATURE-----