aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2020-11-24 18:28:37 +0800
committerBenda Xu <heroxbd@gentoo.org>2020-11-24 18:28:37 +0800
commitb9c5f4dc2cc46038fa369859445667cef22ba930 (patch)
treeba45e80931291e8f75e05bbf52de2a71357c273e
parentroverlay/ebuild/creation.py: move KEYWORDS definition into ebuilds. (diff)
downloadR_overlay-master.tar.gz
R_overlay-master.tar.bz2
R_overlay-master.zip
files/eclass/R-packages.eclass: set src_configure as no-op.HEADmaster
In sci-CRAN/nloptr src_configure triggers installation as well, which is not desired. Signed-off-by: Benda Xu <heroxbd@gentoo.org>
-rw-r--r--files/eclass/R-packages.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/eclass/R-packages.eclass b/files/eclass/R-packages.eclass
index 0315e0b..2d52145 100644
--- a/files/eclass/R-packages.eclass
+++ b/files/eclass/R-packages.eclass
@@ -3,7 +3,7 @@
inherit eutils
-EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst
+EXPORT_FUNCTIONS src_unpack src_configure src_compile src_install pkg_postinst
SLOT="0"
IUSE="byte-compile"
@@ -19,6 +19,8 @@ R-packages_src_unpack() {
fi
}
+R-packages_src_configure() { :; }
+
R-packages_src_compile() {
MAKEFLAGS="CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" \
R CMD INSTALL . -l "${WORKDIR}" $(use byte-compile && echo "--byte-compile")