1 |
Dennis.Yxun wrote: |
2 |
> HI Folks: |
3 |
> I'm not a ebuild guru, so I ask here directly. |
4 |
> Here I'm trying to update kicad package to support live svn repos. |
5 |
> But the problem I face here is, kicad seperate different sources base on |
6 |
> different USE flags |
7 |
> I slightly modified the ebuild files, but it simply doesn't work. |
8 |
> Any suggestion or advice, really appreciate! |
9 |
> |
10 |
> Following is offended code, attached file is the ebuild file: |
11 |
> |
12 |
> ESVN_REPO_URI="https://kicad.svn.sourceforge.net/svnroot/kicad/trunk/kicad |
13 |
> !minimal? ( |
14 |
> https://kicad.svn.sourceforge.net/svnroot/kicad/trunk/kicad-library ) |
15 |
> doc? ( |
16 |
> https://kicad.svn.sourceforge.net/svnroot/kicad/trunk/kicad-doc )" |
17 |
> |
18 |
> Dennis |
19 |
|
20 |
You can't embed USE conditionals inside ESVN_REPO_URI, since USE |
21 |
conditionals like those are only supported in specific variables: |
22 |
*DEPEND, RESTRICT, SRC_URI, PROPERTIES, and PROVIDE. |
23 |
|
24 |
A brief examination of the subversion_fetch() function inside |
25 |
/usr/portage/eclass/subversion.eclass suggests that ESVN_REPO_URI is |
26 |
expected to be single-valued. So, I suspect that you will want to |
27 |
define your own src_unpack() function (overriding |
28 |
subversion_src_unpack) which will call subversion_fetch() as many |
29 |
times as necessary. See the attached code for example. |
30 |
-- |
31 |
Thanks, |
32 |
Zac |