Lines 59-76
solely upon <c>PN</c> are allowed.
Link Here
|
59 |
</p> |
59 |
</p> |
60 |
|
60 |
|
61 |
<p> |
61 |
<p> |
62 |
As an example of a legal and possibly useful conditional inherit, some eclasses |
62 |
As an example of a legal and possibly useful conditional inherit, some |
63 |
do: |
63 |
eclasses or ebuilds do: |
64 |
</p> |
64 |
</p> |
65 |
|
65 |
|
66 |
<codesample lang="ebuild"> |
66 |
<codesample lang="ebuild"> |
67 |
if [[ "${PN##*-}" == "cvs" ]] ; then |
67 |
if [[ ${PV} == *9999 ]]; then |
68 |
inherit cvs |
68 |
inherit git-r3 |
|
|
69 |
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/devmanual.git" |
70 |
else |
71 |
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz" |
72 |
S="${WORKDIR}/${PN}" |
73 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos" |
69 |
fi |
74 |
fi |
70 |
</codesample> |
75 |
</codesample> |
71 |
|
76 |
|
72 |
<p> |
77 |
<p> |
73 |
This allows the same eclass to be used for both regular and <c>-cvs</c> packages. |
78 |
This allows the same eclass (or the same ebuild "template") to be used |
|
|
79 |
for both regular and live packages. |
74 |
</p> |
80 |
</p> |
75 |
</body> |
81 |
</body> |
76 |
</section> |
82 |
</section> |
77 |
- |
|
|