Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/android:master commit in: eclass/
Date: Wed, 30 Aug 2017 09:23:04
Message-Id: 1503562000.9ef840da9329237f76d336c7b490281714391429.heroxbd@gentoo
1 commit: 9ef840da9329237f76d336c7b490281714391429
2 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 24 08:06:40 2017 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 24 08:06:40 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/android.git/commit/?id=9ef840da
7
8 eclass/R-packages.eclass: merged to R_Overlay.
9
10 eclass/R-packages.eclass | 51 ------------------------------------------------
11 1 file changed, 51 deletions(-)
12
13 diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass
14 deleted file mode 100644
15 index cea7eba..0000000
16 --- a/eclass/R-packages.eclass
17 +++ /dev/null
18 @@ -1,51 +0,0 @@
19 -# Copyright 1999-2012 Gentoo Foundation
20 -# Distributed under the terms of the GNU General Public License v2
21 -# $Header: $
22 -
23 -inherit eutils
24 -
25 -EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst
26 -
27 -SLOT="0"
28 -KEYWORDS="~amd64 ~x86"
29 -IUSE="byte-compile"
30 -
31 -DEPEND="dev-lang/R"
32 -RDEPEND="${DEPEND}"
33 -
34 -S="${WORKDIR}"
35 -
36 -R-packages_src_unpack() {
37 - unpack ${A}
38 - mv ${PN//_/.} ${P}
39 -}
40 -
41 -R-packages_src_prepare() {
42 - cd ${P}
43 - epatch_user
44 -}
45 -
46 -R-packages_src_compile() {
47 - einfo "R CMD INSTALL ${S}/${P} -l . $(use byte-compile && echo --byte-compile)"
48 - MAKEFLAGS="CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" \
49 - R CMD INSTALL ${S}/${P} -l . $(use byte-compile && echo --byte-compile)
50 -}
51 -
52 -R-packages_src_install() {
53 - insinto /usr/$(get_libdir)/R/site-library
54 - doins -r ${PN//_/.}
55 -}
56 -
57 -R-packages_pkg_postinst() {
58 - if [[ "${_UNRESOLVABLE_PACKAGES:-}" ]]; then
59 - # _UNRESOLVABLE_PACKAGES is only set if it has more than zero items
60 - local _max=${#_UNRESOLVABLE_PACKAGES[*]} i=
61 -
62 - einfo "Dependency(-ies):"
63 - for (( i=0; i<${_max}; i++ )); do
64 - einfo "- ${_UNRESOLVABLE_PACKAGES[$i]}"
65 - done
66 - einfo 'are (is) suggested by upstream but could not be found.'
67 - einfo 'Please install it manually from the R interpreter if you need it.'
68 - fi
69 -}