aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-07-07 13:15:55 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-07-07 13:15:55 +0900
commitfe9dc70beb2e205fb3edc95a23612b2cb21bb6a8 (patch)
tree9d2010647c7f42f98700007257b7d55c2754e51c
parentpkgdir: set default add-policy (bug 574782) (diff)
downloadR_overlay-fe9dc70beb2e205fb3edc95a23612b2cb21bb6a8.tar.gz
R_overlay-fe9dc70beb2e205fb3edc95a23612b2cb21bb6a8.tar.bz2
R_overlay-fe9dc70beb2e205fb3edc95a23612b2cb21bb6a8.zip
R-packages.eclass: use default S.
-rw-r--r--files/eclass/R-packages.eclass7
1 files changed, 2 insertions, 5 deletions
diff --git a/files/eclass/R-packages.eclass b/files/eclass/R-packages.eclass
index 8544e70..7d2afc6 100644
--- a/files/eclass/R-packages.eclass
+++ b/files/eclass/R-packages.eclass
@@ -13,26 +13,23 @@ IUSE="byte-compile"
DEPEND="dev-lang/R"
RDEPEND="${DEPEND}"
-S="${WORKDIR}"
-
R-packages_src_unpack() {
unpack ${A}
mv ${PN//_/.} ${P}
}
R-packages_src_prepare() {
- cd ${P}
epatch_user
}
R-packages_src_compile() {
MAKEFLAGS="CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" \
- R CMD INSTALL ${S}/${P} -l . $(use byte-compile && echo "--byte-compile")
+ R CMD INSTALL . -l "${WORKDIR}" $(use byte-compile && echo "--byte-compile")
}
R-packages_src_install() {
insinto /usr/$(get_libdir)/R/site-library
- doins -r ${PN//_/.}
+ doins -r "${WORKDIR}"/${PN//_/.}y
}
R-packages_pkg_postinst() {