On 22 February 2013 19:53, Vadim A. Misbakh-Soloviov <m...@mva.name> wrote:
> Hi there!
>
> Since we have tons of ebuild (including -9999) for software, that uses
> GitHub for sourcecode hosting —  I've got an idea to write something
> like GitHub eclass, which will ease creating of such ebuilds (by
> providing "sugar" functions) and, (main goal for me) by adding
> possibility to switch between forks (by redefining variables on emerge
> run). For example (theoretical usecase):
>
> We have, for example, lua-socket-9999, that uses:
> GH_AUTHOR=diegonehab
> GH_PROJECT=lua-socket
> GH_BRANCH=unstable
>
> So, then I fork it and provide some features. And then I want to
> reemerge it from my fork, but I don't want to rewrite ebuild. So, then I do:
> # GH_AUTHOR="msva" GH_BRANCH=master emerge =lua-socket-9999
> and it repulls sources from my fork, reemerge it and installs fine.

I'd make sure to add some sort of easy support to switch to
snapshotted tar.gz installs instead of live git checkouts, ie:

GH_SNAPSHOT=deadbeef  # use commit id 'deadbeef' by fetching a tar.gz
from github instead of a git clone

-- 
Kent

Reply via email to