On 14/12/2015 23:06, [email protected] wrote: > Michael Orlitzky <[email protected]> wrote: > >> On 12/14/2015 02:18 PM, [email protected] wrote: >>> Hi. I have a regular ebuild for app-accessibility/brltty and I want to >>> create a .9999 ebuild out of it, so it gets from the latest .git >>> version. Is there a way I can do that -- either some documentation on >>> how to do it, or some hints? Is there a general method for doing this? >>> >>> Thanks in advance for any suggestions. >>> >> >> Look for -9999 ebuilds in the tree using the git-r3 eclass, and copy >> what they do. It's not fancy but something like >> >> $ find ./ -name '*-9999.ebuild' | xargs grep -l 'git-r3' >> >> in PORTDIR should turn up a bunch of examples. > > OK, I will take a look. > >
If the sources are in regular old git, the main changes are to replace SRC_URI with EGIT_REPO_URI and to inherit git-2. Here's one of mine I slapped together: EAPI=5 inherit eutils user git-2 python-single-r1 EGIT_REPO_URI="https://github.com/SiCKRAGETV/SickRage.git" DESCRIPTION="SickRage - Searches TheTVDB for TV shows" HOMEPAGE="http://www.sickrage.tv/" LICENSE="GPL-3" # only SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" The rest of the ebuild is completely stock standard stuff so I omitted it for clarity. You may need to rm a bunch of stuff in src_install() that comes with the git repo and you don't want to be merged. -- Alan McKinnon [email protected]

