Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] creating a .9999 ebuild
Date: Mon, 14 Dec 2015 21:40:05
Message-Id: 566F36D4.5050603@gmail.com
In Reply to: Re: [gentoo-user] creating a .9999 ebuild by covici@ccs.covici.com
1 On 14/12/2015 23:06, covici@××××××××××.com wrote:
2 > Michael Orlitzky <mjo@g.o> wrote:
3 >
4 >> On 12/14/2015 02:18 PM, covici@××××××××××.com wrote:
5 >>> Hi. I have a regular ebuild for app-accessibility/brltty and I want to
6 >>> create a .9999 ebuild out of it, so it gets from the latest .git
7 >>> version. Is there a way I can do that -- either some documentation on
8 >>> how to do it, or some hints? Is there a general method for doing this?
9 >>>
10 >>> Thanks in advance for any suggestions.
11 >>>
12 >>
13 >> Look for -9999 ebuilds in the tree using the git-r3 eclass, and copy
14 >> what they do. It's not fancy but something like
15 >>
16 >> $ find ./ -name '*-9999.ebuild' | xargs grep -l 'git-r3'
17 >>
18 >> in PORTDIR should turn up a bunch of examples.
19 >
20 > OK, I will take a look.
21 >
22 >
23
24 If the sources are in regular old git, the main changes are to replace
25 SRC_URI with EGIT_REPO_URI and to inherit git-2. Here's one of mine I
26 slapped together:
27
28
29 EAPI=5
30 inherit eutils user git-2 python-single-r1
31 EGIT_REPO_URI="https://github.com/SiCKRAGETV/SickRage.git"
32 DESCRIPTION="SickRage - Searches TheTVDB for TV shows"
33 HOMEPAGE="http://www.sickrage.tv/"
34 LICENSE="GPL-3" # only
35 SLOT="0"
36 KEYWORDS="~amd64 ~x86"
37 IUSE=""
38
39
40 The rest of the ebuild is completely stock standard stuff so I omitted
41 it for clarity. You may need to rm a bunch of stuff in src_install()
42 that comes with the git repo and you don't want to be merged.
43
44
45 --
46 Alan McKinnon
47 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] creating a .9999 ebuild Michael Orlitzky <mjo@g.o>
Re: [gentoo-user] creating a .9999 ebuild covici@××××××××××.com