diff options
author | Benda Xu <heroxbd@gentoo.org> | 2020-11-24 11:18:46 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2020-11-24 11:18:46 +0800 |
commit | 9b3e207674fde98c7cb0f55fd8d904b4fc6142ff (patch) | |
tree | a392e3c1ac3200bc4197d7d75f8f7ada541f1d4d /roverlay | |
parent | roverlay-9999.ebuild: bump to EAPI=7. (diff) | |
download | R_overlay-9b3e207674fde98c7cb0f55fd8d904b4fc6142ff.tar.gz R_overlay-9b3e207674fde98c7cb0f55fd8d904b4fc6142ff.tar.bz2 R_overlay-9b3e207674fde98c7cb0f55fd8d904b4fc6142ff.zip |
roverlay/ebuild/creation.py: move KEYWORDS definition into ebuilds.
A eclass must not define KEYWORDS.
Depend on subslots of R so that ebuilds get recompiled when R version
changes.
Reference: https://devmanual.gentoo.org/eclass-writing/
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'roverlay')
-rw-r--r-- | roverlay/ebuild/creation.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roverlay/ebuild/creation.py b/roverlay/ebuild/creation.py index ed16423..8418240 100644 --- a/roverlay/ebuild/creation.py +++ b/roverlay/ebuild/creation.py @@ -219,6 +219,8 @@ class EbuildCreation ( object ): if homepage_str: ebuild.use ( evars.HOMEPAGE ( homepage_str ) ) + if 'KEYWORDS' not in ebuild: + ebuild.use ( evars.KEYWORDS ( "~amd64" ) ) #ebuild_text = ebuild.to_str() ## FIXME: debug rstrip() |