Gentoo Archives: gentoo-dev

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in media-libs/x265: x265-1.0.ebuild ChangeLog x265-1.2.ebuild x265-0.8.ebuild
Date: Wed, 30 Jul 2014 17:29:34
Message-Id: 53D92B72.7000004@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in media-libs/x265: x265-1.0.ebuild ChangeLog x265-1.2.ebuild x265-0.8.ebuild by Samuli Suominen
1 Am 2014-07-30 14:33, schrieb Samuli Suominen:
2 >
3 > There is no need to package.mask if proper if -logic is used, like, for
4 > example,
5 >
6 > if [[ ${PV} == 9999* ]]; then
7 > inherit git-r3
8 > KEYWORDS=""
9 > else
10 > KEYWORDS="~amd64 ~arm ~arm64 ~x86"
11 > fi
12 >
13 > Then you can just `cp foo-9999.ebuild foo-1.2.3.ebuild` and it'll have
14 > the KEYWORDS
15 > ready, and 1.2.3 and 9999 ebuilds can be identical
16
17 Which instance of the KEYWORDS line is touched by the ekeyword tool these days?
18
19 To have ekeyword touch the else-part in the release ebuild, what about this:
20
21 if [[ ${PV} == 9999* ]]; then
22 inherit vcs...
23 :; KEYWORDS=""
24 else
25 KEYWORDS="..."
26 fi
27
28 /haubi/

Replies