diff options
author | Benda Xu <heroxbd@gentoo.org> | 2016-02-29 11:19:58 +0900 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2016-02-29 11:19:58 +0900 |
commit | d2794c17e6b15b6d9540507ce9a301446cf3189b (patch) | |
tree | 0a2dbbd075c7bf32b9212123a54d55db34fdb868 /eclass | |
parent | sci-libs/hdf5: remove (diff) | |
download | android-d2794c17e6b15b6d9540507ce9a301446cf3189b.tar.gz android-d2794c17e6b15b6d9540507ce9a301446cf3189b.tar.bz2 android-d2794c17e6b15b6d9540507ce9a301446cf3189b.zip |
R-packages.eclass: moved to R-Overlay.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/R-packages.eclass | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass deleted file mode 100644 index 8544e70..0000000 --- a/eclass/R-packages.eclass +++ /dev/null @@ -1,50 +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() { - 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 -} |