Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/R/, dev-lang/R/files/
Date: Fri, 30 Oct 2015 12:25:35
Message-Id: 1446207911.820ffc621b5edafd445a0cd434de82f1f904663b.jlec@gentoo
1 commit: 820ffc621b5edafd445a0cd434de82f1f904663b
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 12:25:11 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 12:25:11 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820ffc62
7
8 dev-lang/R: Clean old
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-lang/R/Manifest | 6 -
14 dev-lang/R/R-3.0.1.ebuild | 206 --------------------
15 dev-lang/R/R-3.0.3.ebuild | 203 --------------------
16 dev-lang/R/R-3.1.0.ebuild | 206 --------------------
17 dev-lang/R/R-3.1.1.ebuild | 206 --------------------
18 dev-lang/R/R-3.1.2.ebuild | 206 --------------------
19 dev-lang/R/R-3.2.0-r1.ebuild | 207 ---------------------
20 dev-lang/R/R-3.2.2.ebuild | 2 +-
21 dev-lang/R/files/R-2.12.1-ldflags.patch | 15 --
22 dev-lang/R/files/R-2.14.1-rmath-shared.patch | 24 ---
23 ...-omitted-extern-R_running_as_main_program.patch | 12 --
24 11 files changed, 1 insertion(+), 1292 deletions(-)
25
26 diff --git a/dev-lang/R/Manifest b/dev-lang/R/Manifest
27 index be5008e..a60e55e 100644
28 --- a/dev-lang/R/Manifest
29 +++ b/dev-lang/R/Manifest
30 @@ -1,8 +1,2 @@
31 DIST R-20130129.bash_completion.bz2 4209 SHA256 487e969b94563fec98ec58de7e6142e9361d4219088add0fca282b482a9e01b1 SHA512 910b26e16cfebe677f438abfa5f2652e582db143d91dbf0e7d4b1ea33462c7e5c89c3a3619c63ae98bba26b11a5adb16eda9d344f8cdbe4f0feabc546993c1a5 WHIRLPOOL 2368efaed37fcb6e010f6a234864631f68549bd8e3f733561170cc5b28f5557e546d8561246fb265a481a47991a262fec3acf6abc1dc3929a9357405e0d3c6fc
32 -DIST R-3.0.1.tar.gz 25508280 SHA256 af90488af3141103b211dc81b6f17d1f0faf4f17684c579a32dfeb25d0d87134 SHA512 470edbf4a4fccf9310add110d7fa7f338e410e412b3ec84f6ea5f1253e94a435e185a7a1b62b22aee443293147ff7bcca139015b490a9271a502b1bfbf1426a2 WHIRLPOOL f45c960280f51cba3a4f3730fa79671808b3c07fd49f97b2cdce4a1de45986e62ac9bb24c6f764386a3ef1034a266b86f041a1a1652ec7f687a4db08a074d22e
33 -DIST R-3.0.3.tar.gz 28075821 SHA256 b97cfd9540f294ab786e846153f3dd8605610d7e27616bfb4296795bc4fde6d6 SHA512 881c9c0a8d866eb87218a5cdca72153c9ef0fa0a0f091595fc065bdcbc1ea8b0bd1a2fb3008457b12e1b5025a7e70bd7764de4286a57ad3f73226367b2fc4e83 WHIRLPOOL 076d041c0581dc211a4ee53cf5cad731dc0ece33bbb34f8c066dc660ef0c1f7dcfc1b3359c6a0cebfa2ccec9b689776965a530edcf9f81758c4e003242347225
34 -DIST R-3.1.0.tar.gz 28469975 SHA256 8a680390f84c58c01dcdefd682eaa0e90389f09e6d2f2e090c71af40065f5fe2 SHA512 bb21fc90c7d37a5328031ed784e7dcbd20259d1837c33db3b51c14a116939a53496683d5de142a1223e89fc12406294efc67bed3595131615e9607d5ffab5ce2 WHIRLPOOL b376180d700d18780eb344b737a3a1bfc8b40f67967032e0f34abf940d76c3ffd7694be9f2f10be985571e8f94d92a6970a3d1cba503280e3fcf6df7a5e4298e
35 -DIST R-3.1.1.tar.gz 28606569 SHA256 ce5c4d5e34414ce8f1ec2d5642861435fa1ddc4cd89bd336172bbe25a62c7a19 SHA512 a75d8b82645bd9486873669b802924448d591013076e3d7dc958502dc6f0dac7d7fb78f3921d34a1eac1383f141b6e800f4293f7fac09651e0176cf84c431af9 WHIRLPOOL ec05c70193a229cbaf15f3432853070c6666c3963a4e2719a6d8ff188bfc2cada0d1f2fe90a9dd6b43f46913138afed0be387ba73b7f9c4d87abc362cc8a5393
36 -DIST R-3.1.2.tar.gz 28655941 SHA256 bcd150afcae0e02f6efb5f35a6ab72432be82e849ec52ce0bb89d8c342a8fa7a SHA512 fee20cd94d14bd46cc36fb265ed4d64f44eaa3929dd13c62d29a5883fde607aba63e28a4b0f265ede63f78788996deaee36acf6a70cc0bc90a705c9782be01a1 WHIRLPOOL f02d543c0fd7e89e63aba844b7c0f651a9a6bb5dbfcd58bdb64b49d08335c3270383eb62291b9f2f20ef6ec9f39eef5cf77ae1af3109296f8b1898227cca99d1
37 -DIST R-3.2.0.tar.gz 29124927 SHA256 f5ae953f18ba6f3d55b46556bbbf73441350f9fd22625402b723a2b81ff64f35 SHA512 c6041c854251d51dd936d3a3632c2958a0437c58488f93e5ba810e957fb7f2276e3fe4f615fb4705f2fc5a66aa50a828b54b5e4e7b4358c7fd465c71531b9828 WHIRLPOOL e21a65b9197a202691dbe903b441caf7d8b92efdffb86dcccdbf09d080177cfd472a54d381df1cca749937434ffb9c08ac74198457e320353207cd00837e1086
38 DIST R-3.2.2.tar.gz 29772864 SHA256 9c9152e74134b68b0f3a1c7083764adc1cb56fd8336bec003fd0ca550cd2461d SHA512 71ba470875262b9f00fb6970f209788df4dad30e0a28373b824b60d8bc6401afb7786e65387663c6490c7ddcd2bfd7f808a270a3e63238f3d7565d5f93607138 WHIRLPOOL fea59929ada1d67dafc6ad89409d18ad173af7990384033f490a00e0f794d9919aecf7cd37089d105fe03b9cf64d079e5d148622571cec3eb924c1c5bd00081e
39
40 diff --git a/dev-lang/R/R-3.0.1.ebuild b/dev-lang/R/R-3.0.1.ebuild
41 deleted file mode 100644
42 index 26fd33c..0000000
43 --- a/dev-lang/R/R-3.0.1.ebuild
44 +++ /dev/null
45 @@ -1,206 +0,0 @@
46 -# Copyright 1999-2015 Gentoo Foundation
47 -# Distributed under the terms of the GNU General Public License v2
48 -# $Id$
49 -
50 -EAPI=5
51 -
52 -inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
53 -
54 -BCP=${PN}-20130129.bash_completion
55 -DESCRIPTION="Language and environment for statistical computing and graphics"
56 -HOMEPAGE="http://www.r-project.org/"
57 -SRC_URI="
58 - mirror://cran/src/base/R-3/${P}.tar.gz
59 - bash-completion? ( https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2 )"
60 -
61 -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
62 -SLOT="0"
63 -KEYWORDS="amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
64 -IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
65 -REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
66 -
67 -CDEPEND="
68 - app-arch/bzip2
69 - app-text/ghostscript-gpl
70 - dev-libs/libpcre
71 - virtual/blas
72 - cairo? ( x11-libs/cairo[X] x11-libs/pango )
73 - icu? ( dev-libs/icu:= )
74 - jpeg? ( virtual/jpeg:0 )
75 - lapack? ( virtual/lapack )
76 - perl? ( dev-lang/perl )
77 - png? ( media-libs/libpng:0= )
78 - readline? ( sys-libs/readline:0= )
79 - tk? ( dev-lang/tk:0= )
80 - X? ( x11-libs/libXmu x11-misc/xdg-utils )"
81 -
82 -DEPEND="${CDEPEND}
83 - virtual/pkgconfig
84 - doc? (
85 - virtual/latex-base
86 - dev-texlive/texlive-fontsrecommended
87 - )"
88 -
89 -RDEPEND="${CDEPEND}
90 - ( || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] ) )
91 - app-arch/xz-utils
92 - java? ( >=virtual/jre-1.5 )"
93 -
94 -RESTRICT="minimal? ( test )"
95 -
96 -R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
97 -
98 -pkg_setup() {
99 - if use openmp; then
100 - FORTRAN_NEED_OPENMP=1
101 - tc-has-openmp || die "Please enable openmp support in your compiler"
102 - fi
103 - fortran-2_pkg_setup
104 - filter-ldflags -Wl,-Bdirect -Bdirect
105 - # avoid using existing R installation
106 - unset R_HOME
107 - # Temporary fix for bug #419761
108 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
109 - append-flags -fno-ipa-cp-clone
110 - fi
111 -}
112 -
113 -src_prepare() {
114 - # gentoo bug #322965 (not applied upstream)
115 - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14505
116 - epatch "${FILESDIR}"/${PN}-2.11.1-parallel.patch
117 -
118 - # respect ldflags (not applied upstream)
119 - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14506
120 - epatch "${FILESDIR}"/${PN}-2.12.1-ldflags.patch
121 -
122 - # gentoo bug #383431
123 - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14951
124 - epatch "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch
125 -
126 - # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14953
127 - epatch "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch
128 -
129 - # fix packages.html for doc (gentoo bug #205103)
130 - sed -i \
131 - -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
132 - src/library/tools/R/Rd.R || die
133 -
134 - # fix Rscript path when installed (gentoo bug #221061)
135 - sed -i \
136 - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
137 - src/unix/Makefile.in || die "sed unix Makefile failed"
138 -
139 - # fix HTML links to manual (gentoo bug #273957)
140 - sed -i \
141 - -e 's:\.\./manual/:manual/:g' \
142 - $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
143 -
144 - use lapack && \
145 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
146 -
147 - if use X; then
148 - export R_BROWSER="$(type -p xdg-open)"
149 - export R_PDFVIEWER="$(type -p xdg-open)"
150 - fi
151 - use perl && \
152 - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
153 -
154 - # don't search /usr/local
155 - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
156 - # Fix for Darwin (OS X)
157 - if use prefix; then
158 - if [[ ${CHOST} == *-darwin* ]] ; then
159 - sed -i \
160 - -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
161 - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
162 - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
163 - -e "/SHLIB_EXT/s/\.so/.dylib/" \
164 - configure.ac || die
165 - # sort of "undo" 2.14.1-rmath-shared.patch
166 - sed -i \
167 - -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
168 - src/nmath/standalone/Makefile.in || die
169 - else
170 - append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
171 - fi
172 - fi
173 - AT_M4DIR=m4 eaclocal
174 - eautoconf
175 -}
176 -
177 -src_configure() {
178 - econf \
179 - --enable-byte-compiled-packages \
180 - --enable-R-shlib \
181 - --disable-R-framework \
182 - --with-system-zlib \
183 - --with-system-bzlib \
184 - --with-system-pcre \
185 - --with-system-xz \
186 - --without-blas \
187 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
188 - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
189 - $(use_enable nls) \
190 - $(use_enable openmp) \
191 - $(use_enable profile R-profiling) \
192 - $(use_enable profile memory-profiling) \
193 - $(use_enable static-libs static) \
194 - $(use_enable static-libs R-static-lib) \
195 - $(use_with cairo) \
196 - $(use_with icu ICU) \
197 - $(use_with jpeg jpeglib) \
198 - $(use_with lapack) \
199 - $(use_with !minimal recommended-packages) \
200 - $(use_with png libpng) \
201 - $(use_with readline) \
202 - $(use_with tiff libtiff) \
203 - $(use_with tk tcltk) \
204 - $(use_with X x)
205 -}
206 -
207 -src_compile() {
208 - export VARTEXFONTS="${T}/fonts"
209 - emake AR="$(tc-getAR)"
210 - emake -C src/nmath/standalone shared $(use static-libs && echo static) AR="$(tc-getAR)"
211 - use doc && emake info pdf
212 -}
213 -
214 -src_install() {
215 - default
216 - emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
217 -
218 - if use doc; then
219 - emake DESTDIR="${D}" install-info install-pdf
220 - dosym ../manual /usr/share/doc/${PF}/html/manual
221 - fi
222 -
223 - cat > 99R <<-EOF
224 - LDPATH=${R_DIR}/lib
225 - R_HOME=${R_DIR}
226 - EOF
227 - doenvd 99R
228 - use bash-completion && newbashcomp "${WORKDIR}"/${BCP} ${PN}
229 - # The buildsystem has a different understanding of install_names than what
230 - # we require. Since it builds modules like shared objects (wrong), many
231 - # objects (all modules) get an incorrect install_name. Fixing the build
232 - # system here is not really trivial.
233 - if [[ ${CHOST} == *-darwin* ]] ; then
234 - local mod
235 - pushd "${ED}"/usr/lib/R > /dev/null
236 - for mod in $(find . -name "*.dylib") ; do
237 - mod=${mod#./}
238 - install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
239 - "${mod}"
240 - done
241 - popd > /dev/null
242 - fi
243 - docompress -x /usr/share/doc/${PF}/NEWS.rds
244 -}
245 -
246 -pkg_postinst() {
247 - if use java; then
248 - einfo "Re-initializing java paths for ${P}"
249 - R CMD javareconf
250 - fi
251 -}
252
253 diff --git a/dev-lang/R/R-3.0.3.ebuild b/dev-lang/R/R-3.0.3.ebuild
254 deleted file mode 100644
255 index ec69959..0000000
256 --- a/dev-lang/R/R-3.0.3.ebuild
257 +++ /dev/null
258 @@ -1,203 +0,0 @@
259 -# Copyright 1999-2014 Gentoo Foundation
260 -# Distributed under the terms of the GNU General Public License v2
261 -# $Id$
262 -
263 -EAPI=5
264 -
265 -inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
266 -
267 -BCP=${PN}-20130129.bash_completion
268 -DESCRIPTION="Language and environment for statistical computing and graphics"
269 -HOMEPAGE="http://www.r-project.org/"
270 -SRC_URI="
271 - mirror://cran/src/base/R-3/${P}.tar.gz
272 - bash-completion? ( https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2 )"
273 -
274 -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
275 -SLOT="0"
276 -KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
277 -IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
278 -REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
279 -
280 -CDEPEND="
281 - app-arch/bzip2:0=
282 - app-arch/xz-utils:0=
283 - app-text/ghostscript-gpl
284 - dev-libs/libpcre:3=
285 - virtual/blas:0
286 - || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath )
287 - cairo? ( x11-libs/cairo[X] x11-libs/pango )
288 - icu? ( dev-libs/icu:= )
289 - jpeg? ( virtual/jpeg:0 )
290 - lapack? ( virtual/lapack:0 )
291 - perl? ( dev-lang/perl )
292 - png? ( media-libs/libpng:0= )
293 - readline? ( sys-libs/readline:0= )
294 - tiff? ( media-libs/tiff:0= )
295 - tk? ( dev-lang/tk:0= )
296 - X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )"
297 -
298 -DEPEND="${CDEPEND}
299 - virtual/pkgconfig
300 - doc? (
301 - virtual/latex-base
302 - dev-texlive/texlive-fontsrecommended
303 - )"
304 -
305 -RDEPEND="${CDEPEND}
306 - ( || ( <sys-libs/zlib-1.2.5.1-r1:0 >=sys-libs/zlib-1.2.5.1-r2:0[minizip] ) )
307 - java? ( >=virtual/jre-1.5 )"
308 -
309 -RESTRICT="minimal? ( test )"
310 -
311 -R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
312 -
313 -pkg_setup() {
314 - if use openmp; then
315 - if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
316 - ewarn "OpenMP is not available in your current selected gcc"
317 - die "need openmp capable gcc"
318 - fi
319 - FORTRAN_NEED_OPENMP=1
320 - fi
321 - fortran-2_pkg_setup
322 - filter-ldflags -Wl,-Bdirect -Bdirect
323 - # avoid using existing R installation
324 - unset R_HOME
325 - # Temporary fix for bug #419761
326 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
327 - append-flags -fno-ipa-cp-clone
328 - fi
329 -}
330 -
331 -src_prepare() {
332 - epatch \
333 - "${FILESDIR}"/${PN}-2.11.1-parallel.patch \
334 - "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \
335 - "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch
336 -
337 - # fix packages.html for doc (gentoo bug #205103)
338 - sed -i \
339 - -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
340 - src/library/tools/R/Rd.R || die
341 -
342 - # fix Rscript path when installed (gentoo bug #221061)
343 - sed -i \
344 - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
345 - src/unix/Makefile.in || die "sed unix Makefile failed"
346 -
347 - # fix HTML links to manual (gentoo bug #273957)
348 - sed -i \
349 - -e 's:\.\./manual/:manual/:g' \
350 - $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
351 -
352 - use lapack && \
353 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
354 -
355 - if use X; then
356 - export R_BROWSER="$(type -p xdg-open)"
357 - export R_PDFVIEWER="$(type -p xdg-open)"
358 - fi
359 - use perl && \
360 - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
361 -
362 - # don't search /usr/local
363 - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
364 - # Fix for Darwin (OS X)
365 - if use prefix; then
366 - if [[ ${CHOST} == *-darwin* ]] ; then
367 - sed -i \
368 - -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
369 - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
370 - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
371 - -e "/SHLIB_EXT/s/\.so/.dylib/" \
372 - configure.ac || die
373 - # sort of "undo" 2.14.1-rmath-shared.patch
374 - sed -i \
375 - -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
376 - src/nmath/standalone/Makefile.in || die
377 - else
378 - append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
379 - fi
380 - fi
381 - AT_M4DIR=m4 eaclocal
382 - eautoconf
383 -}
384 -
385 -src_configure() {
386 - econf \
387 - --enable-byte-compiled-packages \
388 - --enable-R-shlib \
389 - --disable-R-framework \
390 - --with-system-zlib \
391 - --with-system-bzlib \
392 - --with-system-pcre \
393 - --with-system-xz \
394 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
395 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
396 - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
397 - $(use_enable nls) \
398 - $(use_enable openmp) \
399 - $(use_enable profile R-profiling) \
400 - $(use_enable profile memory-profiling) \
401 - $(use_enable static-libs static) \
402 - $(use_enable static-libs R-static-lib) \
403 - $(use_with cairo) \
404 - $(use_with icu ICU) \
405 - $(use_with jpeg jpeglib) \
406 - $(use_with lapack) \
407 - $(use_with !minimal recommended-packages) \
408 - $(use_with png libpng) \
409 - $(use_with readline) \
410 - $(use_with tiff libtiff) \
411 - $(use_with tk tcltk) \
412 - $(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \
413 - $(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \
414 - $(use_with X x)
415 -}
416 -
417 -src_compile() {
418 - export VARTEXFONTS="${T}/fonts"
419 - emake AR="$(tc-getAR)"
420 - emake -C src/nmath/standalone shared $(use static-libs && echo static) AR="$(tc-getAR)"
421 - use doc && emake info pdf
422 -}
423 -
424 -src_install() {
425 - default
426 - emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
427 -
428 - if use doc; then
429 - emake DESTDIR="${D}" install-info install-pdf
430 - dosym ../manual /usr/share/doc/${PF}/html/manual
431 - fi
432 -
433 - cat > 99R <<-EOF
434 - LDPATH=${R_DIR}/lib
435 - R_HOME=${R_DIR}
436 - EOF
437 - doenvd 99R
438 - use bash-completion && newbashcomp "${WORKDIR}"/${BCP} ${PN}
439 - # The buildsystem has a different understanding of install_names than what
440 - # we require. Since it builds modules like shared objects (wrong), many
441 - # objects (all modules) get an incorrect install_name. Fixing the build
442 - # system here is not really trivial.
443 - if [[ ${CHOST} == *-darwin* ]] ; then
444 - local mod
445 - pushd "${ED}"/usr/lib/R > /dev/null
446 - for mod in $(find . -name "*.dylib") ; do
447 - mod=${mod#./}
448 - install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
449 - "${mod}"
450 - done
451 - popd > /dev/null
452 - fi
453 - docompress -x /usr/share/doc/${PF}/NEWS.rds
454 -}
455 -
456 -pkg_postinst() {
457 - if use java; then
458 - einfo "Re-initializing java paths for ${P}"
459 - R CMD javareconf
460 - fi
461 -}
462
463 diff --git a/dev-lang/R/R-3.1.0.ebuild b/dev-lang/R/R-3.1.0.ebuild
464 deleted file mode 100644
465 index 7d9ebb0..0000000
466 --- a/dev-lang/R/R-3.1.0.ebuild
467 +++ /dev/null
468 @@ -1,206 +0,0 @@
469 -# Copyright 1999-2014 Gentoo Foundation
470 -# Distributed under the terms of the GNU General Public License v2
471 -# $Id$
472 -
473 -EAPI=5
474 -
475 -inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
476 -
477 -BCP=${PN}-20130129.bash_completion
478 -DESCRIPTION="Language and environment for statistical computing and graphics"
479 -HOMEPAGE="http://www.r-project.org/"
480 -SRC_URI="
481 - mirror://cran/src/base/R-3/${P}.tar.gz
482 - bash-completion? ( https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2 )"
483 -
484 -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
485 -SLOT="0"
486 -KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
487 -IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
488 -REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
489 -
490 -CDEPEND="
491 - app-arch/bzip2:0=
492 - app-arch/xz-utils:0=
493 - app-text/ghostscript-gpl
494 - dev-libs/libpcre:3=
495 - virtual/blas:0
496 - || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath )
497 - cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= )
498 - icu? ( dev-libs/icu:= )
499 - jpeg? ( virtual/jpeg:0 )
500 - lapack? ( virtual/lapack:0 )
501 - perl? ( dev-lang/perl )
502 - png? ( media-libs/libpng:0= )
503 - readline? ( sys-libs/readline:0= )
504 - tiff? ( media-libs/tiff:0= )
505 - tk? ( dev-lang/tk:0= )
506 - X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )"
507 -
508 -DEPEND="${CDEPEND}
509 - virtual/pkgconfig
510 - doc? (
511 - virtual/latex-base
512 - dev-texlive/texlive-fontsrecommended
513 - )"
514 -
515 -RDEPEND="${CDEPEND}
516 - ( || ( <sys-libs/zlib-1.2.5.1-r1:0 >=sys-libs/zlib-1.2.5.1-r2:0[minizip] ) )
517 - java? ( >=virtual/jre-1.5 )"
518 -
519 -RESTRICT="minimal? ( test )"
520 -
521 -R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
522 -
523 -pkg_setup() {
524 - if use openmp; then
525 - if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
526 - ewarn "OpenMP is not available in your current selected gcc"
527 - die "need openmp capable gcc"
528 - fi
529 - FORTRAN_NEED_OPENMP=1
530 - fi
531 - fortran-2_pkg_setup
532 - filter-ldflags -Wl,-Bdirect -Bdirect
533 - # avoid using existing R installation
534 - unset R_HOME
535 - # Temporary fix for bug #419761
536 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
537 - append-flags -fno-ipa-cp-clone
538 - fi
539 -}
540 -
541 -src_prepare() {
542 - epatch \
543 - "${FILESDIR}"/${PN}-2.11.1-parallel.patch \
544 - "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \
545 - "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch
546 -
547 - # fix packages.html for doc (gentoo bug #205103)
548 - sed -i \
549 - -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
550 - src/library/tools/R/Rd.R || die
551 -
552 - # fix Rscript path when installed (gentoo bug #221061)
553 - sed -i \
554 - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
555 - src/unix/Makefile.in || die "sed unix Makefile failed"
556 -
557 - # fix HTML links to manual (gentoo bug #273957)
558 - sed -i \
559 - -e 's:\.\./manual/:manual/:g' \
560 - $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
561 -
562 - use lapack && \
563 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
564 -
565 - if use X; then
566 - export R_BROWSER="$(type -p xdg-open)"
567 - export R_PDFVIEWER="$(type -p xdg-open)"
568 - fi
569 - use perl && \
570 - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
571 -
572 - # don't search /usr/local
573 - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
574 - # Fix for Darwin (OS X)
575 - if use prefix; then
576 - if [[ ${CHOST} == *-darwin* ]] ; then
577 - sed -i \
578 - -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
579 - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
580 - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
581 - -e "/SHLIB_EXT/s/\.so/.dylib/" \
582 - configure.ac || die
583 - # sort of "undo" 2.14.1-rmath-shared.patch
584 - sed -i \
585 - -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
586 - src/nmath/standalone/Makefile.in || die
587 - else
588 - append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
589 - fi
590 - fi
591 - AT_M4DIR=m4 eaclocal
592 - eautoconf
593 -}
594 -
595 -src_configure() {
596 - # --with-system-tre \
597 - # tre is patched from upstream
598 - econf \
599 - --enable-byte-compiled-packages \
600 - --enable-R-shlib \
601 - --disable-R-framework \
602 - --with-system-zlib \
603 - --with-system-bzlib \
604 - --with-system-pcre \
605 - --with-system-xz \
606 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
607 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
608 - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
609 - $(use_enable nls) \
610 - $(use_enable openmp) \
611 - $(use_enable profile R-profiling) \
612 - $(use_enable profile memory-profiling) \
613 - $(use_enable static-libs static) \
614 - $(use_enable static-libs R-static-lib) \
615 - $(use_with cairo) \
616 - $(use_with icu ICU) \
617 - $(use_with jpeg jpeglib) \
618 - $(use_with lapack) \
619 - $(use_with !minimal recommended-packages) \
620 - $(use_with png libpng) \
621 - $(use_with readline) \
622 - $(use_with tiff libtiff) \
623 - $(use_with tk tcltk) \
624 - $(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \
625 - $(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \
626 - $(use_with X x)
627 -}
628 -
629 -src_compile() {
630 - export VARTEXFONTS="${T}/fonts"
631 - emake AR="$(tc-getAR)"
632 - emake -C src/nmath/standalone \
633 - shared $(use static-libs && echo static) AR="$(tc-getAR)"
634 - use doc && emake info pdf
635 -}
636 -
637 -src_install() {
638 - default
639 - emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
640 -
641 - if use doc; then
642 - emake DESTDIR="${D}" install-info install-pdf
643 - dosym ../manual /usr/share/doc/${PF}/html/manual
644 - fi
645 -
646 - cat > 99R <<-EOF
647 - LDPATH=${R_DIR}/lib
648 - R_HOME=${R_DIR}
649 - EOF
650 - doenvd 99R
651 - use bash-completion && newbashcomp "${WORKDIR}"/${BCP} ${PN}
652 - # The buildsystem has a different understanding of install_names than
653 - # we require. Since it builds modules like shared objects (wrong), many
654 - # objects (all modules) get an incorrect install_name. Fixing the build
655 - # system here is not really trivial.
656 - if [[ ${CHOST} == *-darwin* ]] ; then
657 - local mod
658 - pushd "${ED}"/usr/lib/R > /dev/null
659 - for mod in $(find . -name "*.dylib") ; do
660 - mod=${mod#./}
661 - install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
662 - "${mod}"
663 - done
664 - popd > /dev/null
665 - fi
666 - docompress -x /usr/share/doc/${PF}/NEWS.rds
667 -}
668 -
669 -pkg_postinst() {
670 - if use java; then
671 - einfo "Re-initializing java paths for ${P}"
672 - R CMD javareconf
673 - fi
674 -}
675
676 diff --git a/dev-lang/R/R-3.1.1.ebuild b/dev-lang/R/R-3.1.1.ebuild
677 deleted file mode 100644
678 index 7ab8cdd..0000000
679 --- a/dev-lang/R/R-3.1.1.ebuild
680 +++ /dev/null
681 @@ -1,206 +0,0 @@
682 -# Copyright 1999-2014 Gentoo Foundation
683 -# Distributed under the terms of the GNU General Public License v2
684 -# $Id$
685 -
686 -EAPI=5
687 -
688 -inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
689 -
690 -BCP=${PN}-20130129.bash_completion
691 -DESCRIPTION="Language and environment for statistical computing and graphics"
692 -HOMEPAGE="http://www.r-project.org/"
693 -SRC_URI="
694 - mirror://cran/src/base/R-3/${P}.tar.gz
695 - https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2"
696 -
697 -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
698 -SLOT="0"
699 -KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
700 -IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
701 -REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
702 -
703 -CDEPEND="
704 - app-arch/bzip2:0=
705 - app-arch/xz-utils:0=
706 - app-text/ghostscript-gpl
707 - >=dev-libs/libpcre-8.35:3=
708 - virtual/blas:0
709 - || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath )
710 - cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= )
711 - icu? ( dev-libs/icu:= )
712 - jpeg? ( virtual/jpeg:0 )
713 - lapack? ( virtual/lapack:0 )
714 - perl? ( dev-lang/perl )
715 - png? ( media-libs/libpng:0= )
716 - readline? ( sys-libs/readline:0= )
717 - tiff? ( media-libs/tiff:0= )
718 - tk? ( dev-lang/tk:0= )
719 - X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )"
720 -
721 -DEPEND="${CDEPEND}
722 - virtual/pkgconfig
723 - doc? (
724 - virtual/latex-base
725 - dev-texlive/texlive-fontsrecommended
726 - )"
727 -
728 -RDEPEND="${CDEPEND}
729 - ( || ( <sys-libs/zlib-1.2.5.1-r1:0 >=sys-libs/zlib-1.2.5.1-r2:0[minizip] ) )
730 - java? ( >=virtual/jre-1.5 )"
731 -
732 -RESTRICT="minimal? ( test )"
733 -
734 -R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
735 -
736 -pkg_setup() {
737 - if use openmp; then
738 - if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
739 - ewarn "OpenMP is not available in your current selected gcc"
740 - die "need openmp capable gcc"
741 - fi
742 - FORTRAN_NEED_OPENMP=1
743 - fi
744 - fortran-2_pkg_setup
745 - filter-ldflags -Wl,-Bdirect -Bdirect
746 - # avoid using existing R installation
747 - unset R_HOME
748 - # Temporary fix for bug #419761
749 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
750 - append-flags -fno-ipa-cp-clone
751 - fi
752 -}
753 -
754 -src_prepare() {
755 - epatch \
756 - "${FILESDIR}"/${PN}-2.11.1-parallel.patch \
757 - "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \
758 - "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch
759 -
760 - # fix packages.html for doc (gentoo bug #205103)
761 - sed -i \
762 - -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
763 - src/library/tools/R/Rd.R || die
764 -
765 - # fix Rscript path when installed (gentoo bug #221061)
766 - sed -i \
767 - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
768 - src/unix/Makefile.in || die "sed unix Makefile failed"
769 -
770 - # fix HTML links to manual (gentoo bug #273957)
771 - sed -i \
772 - -e 's:\.\./manual/:manual/:g' \
773 - $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
774 -
775 - use lapack && \
776 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
777 -
778 - if use X; then
779 - export R_BROWSER="$(type -p xdg-open)"
780 - export R_PDFVIEWER="$(type -p xdg-open)"
781 - fi
782 - use perl && \
783 - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
784 -
785 - # don't search /usr/local
786 - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
787 - # Fix for Darwin (OS X)
788 - if use prefix; then
789 - if [[ ${CHOST} == *-darwin* ]] ; then
790 - sed -i \
791 - -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
792 - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
793 - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
794 - -e "/SHLIB_EXT/s/\.so/.dylib/" \
795 - configure.ac || die
796 - # sort of "undo" 2.14.1-rmath-shared.patch
797 - sed -i \
798 - -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
799 - src/nmath/standalone/Makefile.in || die
800 - else
801 - append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
802 - fi
803 - fi
804 - AT_M4DIR=m4 eaclocal
805 - eautoconf
806 -}
807 -
808 -src_configure() {
809 - # --with-system-tre \
810 - # tre is patched from upstream
811 - econf \
812 - --enable-byte-compiled-packages \
813 - --enable-R-shlib \
814 - --disable-R-framework \
815 - --with-system-zlib \
816 - --with-system-bzlib \
817 - --with-system-pcre \
818 - --with-system-xz \
819 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
820 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
821 - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
822 - $(use_enable nls) \
823 - $(use_enable openmp) \
824 - $(use_enable profile R-profiling) \
825 - $(use_enable profile memory-profiling) \
826 - $(use_enable static-libs static) \
827 - $(use_enable static-libs R-static-lib) \
828 - $(use_with cairo) \
829 - $(use_with icu ICU) \
830 - $(use_with jpeg jpeglib) \
831 - $(use_with lapack) \
832 - $(use_with !minimal recommended-packages) \
833 - $(use_with png libpng) \
834 - $(use_with readline) \
835 - $(use_with tiff libtiff) \
836 - $(use_with tk tcltk) \
837 - $(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \
838 - $(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \
839 - $(use_with X x)
840 -}
841 -
842 -src_compile() {
843 - export VARTEXFONTS="${T}/fonts"
844 - emake AR="$(tc-getAR)"
845 - emake -C src/nmath/standalone \
846 - shared $(use static-libs && echo static) AR="$(tc-getAR)"
847 - use doc && emake info pdf
848 -}
849 -
850 -src_install() {
851 - default
852 - emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
853 -
854 - if use doc; then
855 - emake DESTDIR="${D}" install-info install-pdf
856 - dosym ../manual /usr/share/doc/${PF}/html/manual
857 - fi
858 -
859 - cat > 99R <<-EOF
860 - LDPATH=${R_DIR}/lib
861 - R_HOME=${R_DIR}
862 - EOF
863 - doenvd 99R
864 - newbashcomp "${WORKDIR}"/${BCP} ${PN}
865 - # The buildsystem has a different understanding of install_names than
866 - # we require. Since it builds modules like shared objects (wrong), many
867 - # objects (all modules) get an incorrect install_name. Fixing the build
868 - # system here is not really trivial.
869 - if [[ ${CHOST} == *-darwin* ]] ; then
870 - local mod
871 - pushd "${ED}"/usr/lib/R > /dev/null
872 - for mod in $(find . -name "*.dylib") ; do
873 - mod=${mod#./}
874 - install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
875 - "${mod}"
876 - done
877 - popd > /dev/null
878 - fi
879 - docompress -x /usr/share/doc/${PF}/NEWS.rds
880 -}
881 -
882 -pkg_postinst() {
883 - if use java; then
884 - einfo "Re-initializing java paths for ${P}"
885 - R CMD javareconf
886 - fi
887 -}
888
889 diff --git a/dev-lang/R/R-3.1.2.ebuild b/dev-lang/R/R-3.1.2.ebuild
890 deleted file mode 100644
891 index 7ab8cdd..0000000
892 --- a/dev-lang/R/R-3.1.2.ebuild
893 +++ /dev/null
894 @@ -1,206 +0,0 @@
895 -# Copyright 1999-2014 Gentoo Foundation
896 -# Distributed under the terms of the GNU General Public License v2
897 -# $Id$
898 -
899 -EAPI=5
900 -
901 -inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
902 -
903 -BCP=${PN}-20130129.bash_completion
904 -DESCRIPTION="Language and environment for statistical computing and graphics"
905 -HOMEPAGE="http://www.r-project.org/"
906 -SRC_URI="
907 - mirror://cran/src/base/R-3/${P}.tar.gz
908 - https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2"
909 -
910 -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
911 -SLOT="0"
912 -KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
913 -IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
914 -REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
915 -
916 -CDEPEND="
917 - app-arch/bzip2:0=
918 - app-arch/xz-utils:0=
919 - app-text/ghostscript-gpl
920 - >=dev-libs/libpcre-8.35:3=
921 - virtual/blas:0
922 - || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath )
923 - cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= )
924 - icu? ( dev-libs/icu:= )
925 - jpeg? ( virtual/jpeg:0 )
926 - lapack? ( virtual/lapack:0 )
927 - perl? ( dev-lang/perl )
928 - png? ( media-libs/libpng:0= )
929 - readline? ( sys-libs/readline:0= )
930 - tiff? ( media-libs/tiff:0= )
931 - tk? ( dev-lang/tk:0= )
932 - X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )"
933 -
934 -DEPEND="${CDEPEND}
935 - virtual/pkgconfig
936 - doc? (
937 - virtual/latex-base
938 - dev-texlive/texlive-fontsrecommended
939 - )"
940 -
941 -RDEPEND="${CDEPEND}
942 - ( || ( <sys-libs/zlib-1.2.5.1-r1:0 >=sys-libs/zlib-1.2.5.1-r2:0[minizip] ) )
943 - java? ( >=virtual/jre-1.5 )"
944 -
945 -RESTRICT="minimal? ( test )"
946 -
947 -R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
948 -
949 -pkg_setup() {
950 - if use openmp; then
951 - if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
952 - ewarn "OpenMP is not available in your current selected gcc"
953 - die "need openmp capable gcc"
954 - fi
955 - FORTRAN_NEED_OPENMP=1
956 - fi
957 - fortran-2_pkg_setup
958 - filter-ldflags -Wl,-Bdirect -Bdirect
959 - # avoid using existing R installation
960 - unset R_HOME
961 - # Temporary fix for bug #419761
962 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
963 - append-flags -fno-ipa-cp-clone
964 - fi
965 -}
966 -
967 -src_prepare() {
968 - epatch \
969 - "${FILESDIR}"/${PN}-2.11.1-parallel.patch \
970 - "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \
971 - "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch
972 -
973 - # fix packages.html for doc (gentoo bug #205103)
974 - sed -i \
975 - -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
976 - src/library/tools/R/Rd.R || die
977 -
978 - # fix Rscript path when installed (gentoo bug #221061)
979 - sed -i \
980 - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
981 - src/unix/Makefile.in || die "sed unix Makefile failed"
982 -
983 - # fix HTML links to manual (gentoo bug #273957)
984 - sed -i \
985 - -e 's:\.\./manual/:manual/:g' \
986 - $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
987 -
988 - use lapack && \
989 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
990 -
991 - if use X; then
992 - export R_BROWSER="$(type -p xdg-open)"
993 - export R_PDFVIEWER="$(type -p xdg-open)"
994 - fi
995 - use perl && \
996 - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
997 -
998 - # don't search /usr/local
999 - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
1000 - # Fix for Darwin (OS X)
1001 - if use prefix; then
1002 - if [[ ${CHOST} == *-darwin* ]] ; then
1003 - sed -i \
1004 - -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
1005 - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
1006 - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
1007 - -e "/SHLIB_EXT/s/\.so/.dylib/" \
1008 - configure.ac || die
1009 - # sort of "undo" 2.14.1-rmath-shared.patch
1010 - sed -i \
1011 - -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
1012 - src/nmath/standalone/Makefile.in || die
1013 - else
1014 - append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
1015 - fi
1016 - fi
1017 - AT_M4DIR=m4 eaclocal
1018 - eautoconf
1019 -}
1020 -
1021 -src_configure() {
1022 - # --with-system-tre \
1023 - # tre is patched from upstream
1024 - econf \
1025 - --enable-byte-compiled-packages \
1026 - --enable-R-shlib \
1027 - --disable-R-framework \
1028 - --with-system-zlib \
1029 - --with-system-bzlib \
1030 - --with-system-pcre \
1031 - --with-system-xz \
1032 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
1033 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
1034 - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
1035 - $(use_enable nls) \
1036 - $(use_enable openmp) \
1037 - $(use_enable profile R-profiling) \
1038 - $(use_enable profile memory-profiling) \
1039 - $(use_enable static-libs static) \
1040 - $(use_enable static-libs R-static-lib) \
1041 - $(use_with cairo) \
1042 - $(use_with icu ICU) \
1043 - $(use_with jpeg jpeglib) \
1044 - $(use_with lapack) \
1045 - $(use_with !minimal recommended-packages) \
1046 - $(use_with png libpng) \
1047 - $(use_with readline) \
1048 - $(use_with tiff libtiff) \
1049 - $(use_with tk tcltk) \
1050 - $(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \
1051 - $(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \
1052 - $(use_with X x)
1053 -}
1054 -
1055 -src_compile() {
1056 - export VARTEXFONTS="${T}/fonts"
1057 - emake AR="$(tc-getAR)"
1058 - emake -C src/nmath/standalone \
1059 - shared $(use static-libs && echo static) AR="$(tc-getAR)"
1060 - use doc && emake info pdf
1061 -}
1062 -
1063 -src_install() {
1064 - default
1065 - emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
1066 -
1067 - if use doc; then
1068 - emake DESTDIR="${D}" install-info install-pdf
1069 - dosym ../manual /usr/share/doc/${PF}/html/manual
1070 - fi
1071 -
1072 - cat > 99R <<-EOF
1073 - LDPATH=${R_DIR}/lib
1074 - R_HOME=${R_DIR}
1075 - EOF
1076 - doenvd 99R
1077 - newbashcomp "${WORKDIR}"/${BCP} ${PN}
1078 - # The buildsystem has a different understanding of install_names than
1079 - # we require. Since it builds modules like shared objects (wrong), many
1080 - # objects (all modules) get an incorrect install_name. Fixing the build
1081 - # system here is not really trivial.
1082 - if [[ ${CHOST} == *-darwin* ]] ; then
1083 - local mod
1084 - pushd "${ED}"/usr/lib/R > /dev/null
1085 - for mod in $(find . -name "*.dylib") ; do
1086 - mod=${mod#./}
1087 - install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
1088 - "${mod}"
1089 - done
1090 - popd > /dev/null
1091 - fi
1092 - docompress -x /usr/share/doc/${PF}/NEWS.rds
1093 -}
1094 -
1095 -pkg_postinst() {
1096 - if use java; then
1097 - einfo "Re-initializing java paths for ${P}"
1098 - R CMD javareconf
1099 - fi
1100 -}
1101
1102 diff --git a/dev-lang/R/R-3.2.0-r1.ebuild b/dev-lang/R/R-3.2.0-r1.ebuild
1103 deleted file mode 100644
1104 index 9c874f3..0000000
1105 --- a/dev-lang/R/R-3.2.0-r1.ebuild
1106 +++ /dev/null
1107 @@ -1,207 +0,0 @@
1108 -# Copyright 1999-2015 Gentoo Foundation
1109 -# Distributed under the terms of the GNU General Public License v2
1110 -# $Id$
1111 -
1112 -EAPI=5
1113 -
1114 -inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
1115 -
1116 -BCP=${PN}-20130129.bash_completion
1117 -DESCRIPTION="Language and environment for statistical computing and graphics"
1118 -HOMEPAGE="http://www.r-project.org/"
1119 -SRC_URI="
1120 - mirror://cran/src/base/R-3/${P}.tar.gz
1121 - https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2"
1122 -
1123 -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
1124 -SLOT="0"
1125 -KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
1126 -IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
1127 -REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
1128 -
1129 -CDEPEND="
1130 - app-arch/bzip2:0=
1131 - app-arch/xz-utils:0=
1132 - app-text/ghostscript-gpl
1133 - >=dev-libs/libpcre-8.35:3=
1134 - virtual/blas:0
1135 - || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath )
1136 - cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= )
1137 - icu? ( dev-libs/icu:= )
1138 - jpeg? ( virtual/jpeg:0 )
1139 - lapack? ( virtual/lapack:0 )
1140 - perl? ( dev-lang/perl )
1141 - png? ( media-libs/libpng:0= )
1142 - readline? ( sys-libs/readline:0= )
1143 - tiff? ( media-libs/tiff:0= )
1144 - tk? ( dev-lang/tk:0= )
1145 - X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )"
1146 -
1147 -DEPEND="${CDEPEND}
1148 - virtual/pkgconfig
1149 - doc? (
1150 - virtual/latex-base
1151 - dev-texlive/texlive-fontsrecommended
1152 - )"
1153 -
1154 -RDEPEND="${CDEPEND}
1155 - ( || ( <sys-libs/zlib-1.2.5.1-r1:0 >=sys-libs/zlib-1.2.5.1-r2:0[minizip] ) )
1156 - java? ( >=virtual/jre-1.5 )"
1157 -
1158 -RESTRICT="minimal? ( test )"
1159 -
1160 -R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}"
1161 -
1162 -pkg_setup() {
1163 - if use openmp; then
1164 - if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
1165 - ewarn "OpenMP is not available in your current selected gcc"
1166 - die "need openmp capable gcc"
1167 - fi
1168 - FORTRAN_NEED_OPENMP=1
1169 - fi
1170 - fortran-2_pkg_setup
1171 - filter-ldflags -Wl,-Bdirect -Bdirect
1172 - # avoid using existing R installation
1173 - unset R_HOME
1174 - # Temporary fix for bug #419761
1175 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
1176 - append-flags -fno-ipa-cp-clone
1177 - fi
1178 -}
1179 -
1180 -src_prepare() {
1181 - epatch \
1182 - "${FILESDIR}"/${PN}-2.11.1-parallel.patch \
1183 - "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \
1184 - "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch \
1185 - "${FILESDIR}"/${PN}-3.2.0-omitted-extern-R_running_as_main_program.patch
1186 -
1187 - # fix packages.html for doc (gentoo bug #205103)
1188 - sed -i \
1189 - -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
1190 - src/library/tools/R/Rd.R || die
1191 -
1192 - # fix Rscript path when installed (gentoo bug #221061)
1193 - sed -i \
1194 - -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
1195 - src/unix/Makefile.in || die "sed unix Makefile failed"
1196 -
1197 - # fix HTML links to manual (gentoo bug #273957)
1198 - sed -i \
1199 - -e 's:\.\./manual/:manual/:g' \
1200 - $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
1201 -
1202 - use lapack && \
1203 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
1204 -
1205 - if use X; then
1206 - export R_BROWSER="$(type -p xdg-open)"
1207 - export R_PDFVIEWER="$(type -p xdg-open)"
1208 - fi
1209 - use perl && \
1210 - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
1211 -
1212 - # don't search /usr/local
1213 - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
1214 - # Fix for Darwin (OS X)
1215 - if use prefix; then
1216 - if [[ ${CHOST} == *-darwin* ]] ; then
1217 - sed -i \
1218 - -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
1219 - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
1220 - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
1221 - -e "/SHLIB_EXT/s/\.so/.dylib/" \
1222 - configure.ac || die
1223 - # sort of "undo" 2.14.1-rmath-shared.patch
1224 - sed -i \
1225 - -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
1226 - src/nmath/standalone/Makefile.in || die
1227 - else
1228 - append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
1229 - fi
1230 - fi
1231 - AT_M4DIR=m4 eaclocal
1232 - eautoconf
1233 -}
1234 -
1235 -src_configure() {
1236 - # --with-system-tre \
1237 - # tre is patched from upstream
1238 - econf \
1239 - --enable-byte-compiled-packages \
1240 - --enable-R-shlib \
1241 - --disable-R-framework \
1242 - --with-system-zlib \
1243 - --with-system-bzlib \
1244 - --with-system-pcre \
1245 - --with-system-xz \
1246 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
1247 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
1248 - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
1249 - $(use_enable nls) \
1250 - $(use_enable openmp) \
1251 - $(use_enable profile R-profiling) \
1252 - $(use_enable profile memory-profiling) \
1253 - $(use_enable static-libs static) \
1254 - $(use_enable static-libs R-static-lib) \
1255 - $(use_with cairo) \
1256 - $(use_with icu ICU) \
1257 - $(use_with jpeg jpeglib) \
1258 - $(use_with lapack) \
1259 - $(use_with !minimal recommended-packages) \
1260 - $(use_with png libpng) \
1261 - $(use_with readline) \
1262 - $(use_with tiff libtiff) \
1263 - $(use_with tk tcltk) \
1264 - $(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \
1265 - $(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \
1266 - $(use_with X x)
1267 -}
1268 -
1269 -src_compile() {
1270 - export VARTEXFONTS="${T}/fonts"
1271 - emake AR="$(tc-getAR)"
1272 - emake -C src/nmath/standalone \
1273 - shared $(use static-libs && echo static) AR="$(tc-getAR)"
1274 - use doc && emake info pdf
1275 -}
1276 -
1277 -src_install() {
1278 - default
1279 - emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
1280 -
1281 - if use doc; then
1282 - emake DESTDIR="${D}" install-info install-pdf
1283 - dosym ../manual /usr/share/doc/${PF}/html/manual
1284 - fi
1285 -
1286 - cat > 99R <<-EOF
1287 - LDPATH=${R_DIR}/lib
1288 - R_HOME=${R_DIR}
1289 - EOF
1290 - doenvd 99R
1291 - newbashcomp "${WORKDIR}"/${BCP} ${PN}
1292 - # The buildsystem has a different understanding of install_names than
1293 - # we require. Since it builds modules like shared objects (wrong), many
1294 - # objects (all modules) get an incorrect install_name. Fixing the build
1295 - # system here is not really trivial.
1296 - if [[ ${CHOST} == *-darwin* ]] ; then
1297 - local mod
1298 - pushd "${ED}"/usr/lib/R > /dev/null
1299 - for mod in $(find . -name "*.dylib") ; do
1300 - mod=${mod#./}
1301 - install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
1302 - "${mod}"
1303 - done
1304 - popd > /dev/null
1305 - fi
1306 - docompress -x /usr/share/doc/${PF}/NEWS.rds
1307 -}
1308 -
1309 -pkg_postinst() {
1310 - if use java; then
1311 - einfo "Re-initializing java paths for ${P}"
1312 - R CMD javareconf
1313 - fi
1314 -}
1315
1316 diff --git a/dev-lang/R/R-3.2.2.ebuild b/dev-lang/R/R-3.2.2.ebuild
1317 index de20937..9229648 100644
1318 --- a/dev-lang/R/R-3.2.2.ebuild
1319 +++ b/dev-lang/R/R-3.2.2.ebuild
1320 @@ -45,7 +45,7 @@ DEPEND="${CDEPEND}
1321 )"
1322
1323 RDEPEND="${CDEPEND}
1324 - ( || ( <sys-libs/zlib-1.2.5.1-r1:0 >=sys-libs/zlib-1.2.5.1-r2:0[minizip] ) )
1325 + >=sys-libs/zlib-1.2.5.1-r2:0[minizip]
1326 java? ( >=virtual/jre-1.5 )"
1327
1328 RESTRICT="minimal? ( test )"
1329
1330 diff --git a/dev-lang/R/files/R-2.12.1-ldflags.patch b/dev-lang/R/files/R-2.12.1-ldflags.patch
1331 deleted file mode 100644
1332 index 2876ac3..0000000
1333 --- a/dev-lang/R/files/R-2.12.1-ldflags.patch
1334 +++ /dev/null
1335 @@ -1,15 +0,0 @@
1336 -Respect ldflags on rscript
1337 -Patch by Sebastien Fabbro
1338 -https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14506
1339 -
1340 ---- src/unix/Makefile.in.orig 2010-12-22 16:58:19.000000000 +0000
1341 -+++ src/unix/Makefile.in 2010-12-22 16:54:16.000000000 +0000
1342 -@@ -66,7 +66,7 @@
1343 -
1344 - ## we need to build at install time to capture the correct 'rhome'
1345 - install-Rscript:
1346 -- $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
1347 -+ $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(LDFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
1348 - $(srcdir)/Rscript.c
1349 - @$(MKINSTALLDIRS) "$(DESTDIR)$(Rexecbindir)"
1350 - @$(INSTALL_PROGRAM) Rscript "$(DESTDIR)$(Rexecbindir)/Rscript"
1351
1352 diff --git a/dev-lang/R/files/R-2.14.1-rmath-shared.patch b/dev-lang/R/files/R-2.14.1-rmath-shared.patch
1353 deleted file mode 100644
1354 index c16f20e..0000000
1355 --- a/dev-lang/R/files/R-2.14.1-rmath-shared.patch
1356 +++ /dev/null
1357 @@ -1,24 +0,0 @@
1358 -Link with libm to fix unresolved symbols when linked with as-needed
1359 -and add a soname to the standalone math library
1360 -Patch by Sebastien Fabbro
1361 ---- src/nmath/standalone/Makefile.in.orig 2010-03-17 14:43:22.000000000 +0000
1362 -+++ src/nmath/standalone/Makefile.in 2012-01-02 17:40:13.000000000 +0000
1363 -@@ -64,7 +64,8 @@
1364 - Rexeclibdir_LTLIBRARIES = $(libRmath_la)
1365 - libRmath_la_SOURCES = $(SOURCES)
1366 - libRmath_la_OBJECTS = $(OBJECTS:.o=.lo)
1367 --libRmath_la_LDFLAGS =
1368 -+libRmath_la_LDFLAGS = -Wl,-soname=libRmath.so
1369 -+libRmath_la_LIBADD = $(LIBM)
1370 -
1371 - CLEANFILES = Makedeps *.d *.o *.lo test $(SOURCES)
1372 - DISTCLEANFILES = Makefile $(Rexeclibdir_LIBRARIES) $(Rexeclibdir_LTLIBRARIES)
1373 -@@ -116,7 +117,7 @@
1374 - $(RANLIB) $@
1375 -
1376 - $(libRmath_la): $(libRmath_la_OBJECTS)
1377 -- $(DYLIB_LINK) -o $@ $(libRmath_la_LDFLAGS) $(libRmath_la_OBJECTS)
1378 -+ $(DYLIB_LINK) $(libRmath_la_LDFLAGS) $(libRmath_la_OBJECTS) $(libRmath_la_LIBADD) -o $@
1379 -
1380 - test: $(srcdir)/test.c
1381 - $(CC) -o $@ $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(srcdir)/test.c \
1382
1383 diff --git a/dev-lang/R/files/R-3.2.0-omitted-extern-R_running_as_main_program.patch b/dev-lang/R/files/R-3.2.0-omitted-extern-R_running_as_main_program.patch
1384 deleted file mode 100644
1385 index eebe508..0000000
1386 --- a/dev-lang/R/files/R-3.2.0-omitted-extern-R_running_as_main_program.patch
1387 +++ /dev/null
1388 @@ -1,12 +0,0 @@
1389 ---- R-3.2.0-orig/src/include/Rinterface.h 2015-03-19 10:02:16.000000000 +1100
1390 -+++ R-3.2.0/src/include/Rinterface.h 2015-05-01 23:02:17.541946810 +1000
1391 -@@ -90,7 +90,8 @@
1392 - void fpu_setup(Rboolean);
1393 -
1394 - /* in unix/system.c */
1395 --int R_running_as_main_program;
1396 -+/* Gentoo bug 547478 R bug https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15899 */
1397 -+extern int R_running_as_main_program;
1398 -
1399 - #ifdef CSTACK_DEFNS
1400 - /* duplicating Defn.h */