diff options
author | Benda Xu <heroxbd@gentoo.org> | 2016-07-07 13:15:55 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2016-07-07 13:15:55 +0900 |
commit | fe9dc70beb2e205fb3edc95a23612b2cb21bb6a8 (patch) | |
tree | 9d2010647c7f42f98700007257b7d55c2754e51c | |
parent | pkgdir: set default add-policy (bug 574782) (diff) | |
download | R_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.eclass | 7 |
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() { |