diff options
author | Benda Xu <heroxbd@gentoo.org> | 2017-08-24 17:06:40 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2017-08-24 17:06:40 +0900 |
commit | 9ef840da9329237f76d336c7b490281714391429 (patch) | |
tree | 77646339688f591ab2dbc4fe0206326ba98fdb1c | |
parent | sci-physics/geant-python: drop, no long relevant. (diff) | |
download | android-9ef840da9329237f76d336c7b490281714391429.tar.gz android-9ef840da9329237f76d336c7b490281714391429.tar.bz2 android-9ef840da9329237f76d336c7b490281714391429.zip |
eclass/R-packages.eclass: merged to R_Overlay.
-rw-r--r-- | eclass/R-packages.eclass | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass deleted file mode 100644 index cea7eba..0000000 --- a/eclass/R-packages.eclass +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit eutils - -EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst - -SLOT="0" -KEYWORDS="~amd64 ~x86" -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() { - einfo "R CMD INSTALL ${S}/${P} -l . $(use byte-compile && echo --byte-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-packages_src_install() { - insinto /usr/$(get_libdir)/R/site-library - doins -r ${PN//_/.} -} - -R-packages_pkg_postinst() { - if [[ "${_UNRESOLVABLE_PACKAGES:-}" ]]; then - # _UNRESOLVABLE_PACKAGES is only set if it has more than zero items - local _max=${#_UNRESOLVABLE_PACKAGES[*]} i= - - einfo "Dependency(-ies):" - for (( i=0; i<${_max}; i++ )); do - einfo "- ${_UNRESOLVABLE_PACKAGES[$i]}" - done - einfo 'are (is) suggested by upstream but could not be found.' - einfo 'Please install it manually from the R interpreter if you need it.' - fi -} |