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 | |
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>
-rw-r--r-- | files/eclass/R-packages.eclass | 4 | ||||
-rw-r--r-- | roverlay/ebuild/creation.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/files/eclass/R-packages.eclass b/files/eclass/R-packages.eclass index 0b1dac3..0315e0b 100644 --- a/files/eclass/R-packages.eclass +++ b/files/eclass/R-packages.eclass @@ -6,11 +6,11 @@ inherit eutils EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst SLOT="0" -KEYWORDS="~amd64 ~x86" IUSE="byte-compile" -DEPEND="dev-lang/R" +DEPEND="dev-lang/R:=" RDEPEND="${DEPEND}" +BDEPEND="${DEPEND}" R-packages_src_unpack() { unpack ${A} 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() |