On 17-05-04 at 17:59, Danny YUE wrote:
> Hi,
> 
> As a noob in ebuild files, I got some problems while created my own
> ebuild. I googled a lot but did not really find any clue.
If you have questions on ebuild files, checking [1] is probably the best
bet. Has generic information on ebuilds as well as specific information
regarding specific eclasses.

> Let's say package A has features B and C. They are Github repositories
> and A is the entry, while B and C are submodules.
> 
> Now I want to make it three different packages respectively, and use USE
> flags to control which to install just like texlive.
> 
[..]
> 
> 2) Only A has Github release URL, B and C by default should be fetched
> via `git submodule...'. How am I supposed to fetch these packages in my
> ebuild file? Download inside `src_unpack'?
git-r3.eclass has an EGIT_SUBMODULES array that you can populate
according to the use flags, but you'll probably have to specify the main
repo uri for A in both A, B, and C as the EGIT_REPO_URI and then just cd
to the submodule in the ebuild for B/C. See [2] for more information.

[1]: https://devmanual.gentoo.org/
[2]: https://devmanual.gentoo.org/eclass-reference/git-r3.eclass/index.html

-- 
Simon Thelen

Reply via email to