aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2020-11-24 11:18:46 +0800
committerBenda Xu <heroxbd@gentoo.org>2020-11-24 11:18:46 +0800
commit9b3e207674fde98c7cb0f55fd8d904b4fc6142ff (patch)
treea392e3c1ac3200bc4197d7d75f8f7ada541f1d4d /roverlay
parentroverlay-9999.ebuild: bump to EAPI=7. (diff)
downloadR_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.py2
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()