Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/R: R-2.13.0.ebuild R-2.13.1-r1.ebuild ChangeLog R-2.10.1.ebuild metadata.xml R-2.14.0.ebuild R-2.12.1.ebuild R-2.12.2.ebuild
Date: Mon, 21 Nov 2011 16:23:15
Message-Id: 20111121162253.09C572004B@flycatcher.gentoo.org
1 jlec 11/11/21 16:22:53
2
3 Modified: R-2.13.0.ebuild R-2.13.1-r1.ebuild ChangeLog
4 R-2.10.1.ebuild metadata.xml
5 Added: R-2.14.0.ebuild
6 Removed: R-2.12.1.ebuild R-2.12.2.ebuild
7 Log:
8 Version Bump, #391045, cleaned old, moved to bashcompletion-r1.eclass, sorted minor things in ebuild (adopt changes in between versions)
9
10 (Portage version: 2.2.0_alpha76/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.3 dev-lang/R/R-2.13.0.ebuild
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.13.0.ebuild?rev=1.3&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.13.0.ebuild?rev=1.3&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.13.0.ebuild?r1=1.2&r2=1.3
18
19 Index: R-2.13.0.ebuild
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.13.0.ebuild,v
22 retrieving revision 1.2
23 retrieving revision 1.3
24 diff -u -r1.2 -r1.3
25 --- R-2.13.0.ebuild 5 Oct 2011 19:20:04 -0000 1.2
26 +++ R-2.13.0.ebuild 21 Nov 2011 16:22:52 -0000 1.3
27 @@ -1,10 +1,10 @@
28 # Copyright 1999-2011 Gentoo Foundation
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.13.0.ebuild,v 1.2 2011/10/05 19:20:04 aballier Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.13.0.ebuild,v 1.3 2011/11/21 16:22:52 jlec Exp $
32
33 EAPI=4
34
35 -inherit bash-completion eutils flag-o-matic fortran-2 versionator
36 +inherit bash-completion-r1 eutils flag-o-matic fortran-2 versionator
37
38 DESCRIPTION="Language and environment for statistical computing and graphics"
39 HOMEPAGE="http://www.r-project.org/"
40 @@ -16,7 +16,7 @@
41 SLOT="0"
42 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
43
44 -IUSE="cairo doc java jpeg lapack minimal nls openmp perl png profile readline static-libs tk X"
45 +IUSE="bash-completion cairo doc java jpeg lapack minimal nls openmp perl png profile readline static-libs tk X"
46
47 # common depends
48 CDEPEND="
49 @@ -24,10 +24,10 @@
50 app-text/ghostscript-gpl
51 dev-libs/libpcre
52 virtual/blas
53 - virtual/fortran[openmp?]
54 + virtual/fortran
55 cairo? (
56 x11-libs/cairo[X]
57 - || ( >=x11-libs/pango-1.20[X] <x11-libs/pango-1.20 ) )
58 + >=x11-libs/pango-1.20[X] )
59 jpeg? ( virtual/jpeg )
60 lapack? ( virtual/lapack )
61 perl? ( dev-lang/perl )
62 @@ -39,9 +39,9 @@
63 DEPEND="${CDEPEND}
64 dev-util/pkgconfig
65 doc? (
66 - virtual/latex-base
67 - dev-texlive/texlive-fontsrecommended
68 - )"
69 + virtual/latex-base
70 + dev-texlive/texlive-fontsrecommended
71 + )"
72
73 RDEPEND="${CDEPEND}
74 app-arch/unzip
75 @@ -51,7 +51,7 @@
76
77 RESTRICT="minimal? ( test )"
78
79 -R_DIR="${EPREFIX}"/usr/$(get_libdir)/${PN}
80 +R_DIR="${EPREFIX}/usr/$(get_libdir)/${PN}"
81
82 pkg_setup() {
83 if use openmp; then
84 @@ -161,7 +161,7 @@
85 R_HOME=${R_DIR}
86 EOF
87 doenvd 99R || die "doenvd failed"
88 - dobashcompletion "${WORKDIR}"/R.bash_completion
89 + use bash-completion && dobashcomp "${WORKDIR}"/R.bash_completion
90 }
91
92 pkg_postinst() {
93 @@ -169,4 +169,5 @@
94 einfo "Re-initializing java paths for ${P}"
95 R CMD javareconf
96 fi
97 + bash-completion-r1_pkg_postinst
98 }
99
100
101
102 1.3 dev-lang/R/R-2.13.1-r1.ebuild
103
104 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.13.1-r1.ebuild?rev=1.3&view=markup
105 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.13.1-r1.ebuild?rev=1.3&content-type=text/plain
106 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.13.1-r1.ebuild?r1=1.2&r2=1.3
107
108 Index: R-2.13.1-r1.ebuild
109 ===================================================================
110 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.13.1-r1.ebuild,v
111 retrieving revision 1.2
112 retrieving revision 1.3
113 diff -u -r1.2 -r1.3
114 --- R-2.13.1-r1.ebuild 5 Oct 2011 19:20:04 -0000 1.2
115 +++ R-2.13.1-r1.ebuild 21 Nov 2011 16:22:52 -0000 1.3
116 @@ -1,30 +1,31 @@
117 # Copyright 1999-2011 Gentoo Foundation
118 # Distributed under the terms of the GNU General Public License v2
119 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.13.1-r1.ebuild,v 1.2 2011/10/05 19:20:04 aballier Exp $
120 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.13.1-r1.ebuild,v 1.3 2011/11/21 16:22:52 jlec Exp $
121
122 EAPI=4
123
124 -inherit bash-completion eutils flag-o-matic fortran-2 versionator
125 +inherit bash-completion-r1 eutils flag-o-matic fortran-2 versionator
126
127 DESCRIPTION="Language and environment for statistical computing and graphics"
128 HOMEPAGE="http://www.r-project.org/"
129 -SRC_URI="mirror://cran/src/base/R-2/${P}.tar.gz
130 +SRC_URI="
131 + mirror://cran/src/base/R-2/${P}.tar.gz
132 bash-completion? ( mirror://gentoo/R.bash_completion.bz2 )"
133
134 LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
135 SLOT="0"
136 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
137
138 -IUSE="cairo doc java jpeg lapack minimal nls openmp perl png profile readline static-libs tk X"
139 +IUSE="bash-completion cairo doc java jpeg lapack minimal nls openmp perl png profile readline static-libs tk X"
140
141 # common depends
142 -CDEPEND="app-arch/bzip2
143 +CDEPEND="
144 + app-arch/bzip2
145 app-text/ghostscript-gpl
146 dev-libs/libpcre
147 || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 sys-freebsd/freebsd-lib )
148 virtual/blas
149 - cairo? ( x11-libs/cairo[X]
150 - >=x11-libs/pango-1.20[X] )
151 + cairo? ( x11-libs/cairo[X] )
152 jpeg? ( virtual/jpeg )
153 lapack? ( virtual/lapack )
154 perl? ( dev-lang/perl )
155 @@ -35,8 +36,9 @@
156
157 DEPEND="${CDEPEND}
158 dev-util/pkgconfig
159 - doc? ( virtual/latex-base
160 - dev-texlive/texlive-fontsrecommended
161 + doc? (
162 + virtual/latex-base
163 + dev-texlive/texlive-fontsrecommended
164 )"
165
166 RDEPEND="${CDEPEND}
167 @@ -46,7 +48,7 @@
168
169 RESTRICT="minimal? ( test )"
170
171 -R_DIR="${EPREFIX}"/usr/$(get_libdir)/${PN}
172 +R_DIR="${EPREFIX}/usr/$(get_libdir)/${PN}"
173
174 pkg_setup() {
175 if use openmp; then
176 @@ -88,12 +90,14 @@
177 || die "sed failed"
178
179 # fix Rscript
180 - sed -i \
181 + sed \
182 -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
183 - src/unix/Makefile.in || die "sed unix Makefile failed"
184 + -i src/unix/Makefile.in || die "sed unix Makefile failed"
185
186 # fix HTML links to manual (bug #273957)
187 - sed -i -e 's:\.\./manual/:manual/:g' $(grep -Flr ../manual/ doc) \
188 + sed \
189 + -e 's:\.\./manual/:manual/:g' \
190 + -i $(grep -Flr ../manual/ doc) \
191 || die "sed for HTML links to manual failed"
192
193 use lapack && \
194 @@ -116,8 +120,8 @@
195 --with-system-pcre \
196 --with-system-xz \
197 --with-blas="$(pkg-config --libs blas)" \
198 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
199 - rdocdir="${EPREFIX}"/usr/share/doc/${PF} \
200 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
201 + rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
202 $(use_enable openmp) \
203 $(use_enable nls) \
204 $(use_enable profile R-profiling) \
205 @@ -169,7 +173,7 @@
206 R_HOME=${R_DIR}
207 EOF
208 doenvd 99R
209 - dobashcompletion "${WORKDIR}"/R.bash_completion
210 + use bash-completion && dobashcomp "${WORKDIR}"/R.bash_completion
211 }
212
213 pkg_postinst() {
214 @@ -177,4 +181,5 @@
215 einfo "Re-initializing java paths for ${P}"
216 R CMD javareconf
217 fi
218 + bash-completion-r1_pkg_postinst
219 }
220
221
222
223 1.191 dev-lang/R/ChangeLog
224
225 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.191&view=markup
226 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.191&content-type=text/plain
227 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?r1=1.190&r2=1.191
228
229 Index: ChangeLog
230 ===================================================================
231 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v
232 retrieving revision 1.190
233 retrieving revision 1.191
234 diff -u -r1.190 -r1.191
235 --- ChangeLog 17 Oct 2011 15:34:01 -0000 1.190
236 +++ ChangeLog 21 Nov 2011 16:22:52 -0000 1.191
237 @@ -1,6 +1,14 @@
238 # ChangeLog for dev-lang/R
239 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
240 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.190 2011/10/17 15:34:01 ssuominen Exp $
241 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.191 2011/11/21 16:22:52 jlec Exp $
242 +
243 +*R-2.14.0 (21 Nov 2011)
244 +
245 + 21 Nov 2011; Justin Lecher <jlec@g.o> R-2.10.1.ebuild,
246 + -R-2.12.1.ebuild, -R-2.12.2.ebuild, R-2.13.0.ebuild, R-2.13.1-r1.ebuild,
247 + +R-2.14.0.ebuild, metadata.xml:
248 + Version Bump, #391045, cleaned old, moved to bashcompletion-r1.eclass, sorted
249 + minor things in ebuild (adopt changes in between versions)
250
251 17 Oct 2011; Samuli Suominen <ssuominen@g.o> R-2.10.1.ebuild:
252 Fix building with libpng15 wrt #366223. Fix building with sys-libs/zlib >=
253
254
255
256 1.15 dev-lang/R/R-2.10.1.ebuild
257
258 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.10.1.ebuild?rev=1.15&view=markup
259 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.10.1.ebuild?rev=1.15&content-type=text/plain
260 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.10.1.ebuild?r1=1.14&r2=1.15
261
262 Index: R-2.10.1.ebuild
263 ===================================================================
264 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.10.1.ebuild,v
265 retrieving revision 1.14
266 retrieving revision 1.15
267 diff -u -r1.14 -r1.15
268 --- R-2.10.1.ebuild 17 Oct 2011 15:34:01 -0000 1.14
269 +++ R-2.10.1.ebuild 21 Nov 2011 16:22:52 -0000 1.15
270 @@ -1,10 +1,10 @@
271 # Copyright 1999-2011 Gentoo Foundation
272 # Distributed under the terms of the GNU General Public License v2
273 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.10.1.ebuild,v 1.14 2011/10/17 15:34:01 ssuominen Exp $
274 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.10.1.ebuild,v 1.15 2011/11/21 16:22:52 jlec Exp $
275
276 EAPI=2
277
278 -inherit bash-completion eutils flag-o-matic fortran-2 versionator
279 +inherit bash-completion-r1 eutils flag-o-matic fortran-2 versionator
280
281 DESCRIPTION="Language and environment for statistical computing and graphics"
282 HOMEPAGE="http://www.r-project.org/"
283 @@ -16,7 +16,7 @@
284 SLOT="0"
285 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
286
287 -IUSE="cairo doc java jpeg lapack minimal nls perl png readline threads tk X"
288 +IUSE="bash-completion cairo doc java jpeg lapack minimal nls perl png readline threads tk X"
289
290 # common depends
291 CDEPEND="
292 @@ -27,7 +27,7 @@
293 virtual/fortran
294 cairo? (
295 x11-libs/cairo[X]
296 - || ( >=x11-libs/pango-1.20[X] <x11-libs/pango-1.20 ) )
297 + >=x11-libs/pango-1.20[X] )
298 jpeg? ( virtual/jpeg )
299 lapack? ( virtual/lapack )
300 perl? ( dev-lang/perl )
301 @@ -39,9 +39,9 @@
302 DEPEND="${CDEPEND}
303 dev-util/pkgconfig
304 doc? (
305 - virtual/latex-base
306 - dev-texlive/texlive-fontsrecommended
307 - )"
308 + virtual/latex-base
309 + dev-texlive/texlive-fontsrecommended
310 + )"
311
312 RDEPEND="${CDEPEND}
313 app-arch/unzip
314 @@ -68,12 +68,14 @@
315 || die "sed failed"
316
317 # fix Rscript
318 - sed -i \
319 + sed \
320 -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
321 - src/unix/Makefile.in || die "sed unix Makefile failed"
322 + -i src/unix/Makefile.in || die "sed unix Makefile failed"
323
324 # fix HTML links to manual (bug #273957)
325 - sed -i -e 's:\.\./manual/:manual/:g' $(grep -Flr ../manual/ doc) \
326 + sed \
327 + -e 's:\.\./manual/:manual/:g' \
328 + -i $(grep -Flr ../manual/ doc) \
329 || die "sed for HTML links to manual failed"
330
331 # Fix compability with zlib-1.2.5.1-r1 OF change
332 @@ -161,7 +163,7 @@
333 R_HOME=${R_DIR}
334 EOF
335 doenvd 99R || die "doenvd failed"
336 - dobashcompletion "${WORKDIR}"/R.bash_completion
337 + use bash-completion && dobashcomp "${WORKDIR}"/R.bash_completion
338 }
339
340 pkg_config() {
341
342
343
344 1.5 dev-lang/R/metadata.xml
345
346 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/metadata.xml?rev=1.5&view=markup
347 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/metadata.xml?rev=1.5&content-type=text/plain
348 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/metadata.xml?r1=1.4&r2=1.5
349
350 Index: metadata.xml
351 ===================================================================
352 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/metadata.xml,v
353 retrieving revision 1.4
354 retrieving revision 1.5
355 diff -u -r1.4 -r1.5
356 --- metadata.xml 7 Oct 2008 09:42:00 -0000 1.4
357 +++ metadata.xml 21 Nov 2011 16:22:52 -0000 1.5
358 @@ -1,8 +1,8 @@
359 <?xml version="1.0" encoding="UTF-8"?>
360 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
361 <pkgmetadata>
362 -<herd>sci-mathematics</herd>
363 -<longdescription lang="en">
364 + <herd>sci-mathematics</herd>
365 + <longdescription lang="en">
366 R is GNU S, a system for statistical computation and graphics. It
367 consists of a language plus a run-time environment with graphics, a
368 debugger, access to certain system functions, and the ability to run
369
370
371
372 1.1 dev-lang/R/R-2.14.0.ebuild
373
374 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.14.0.ebuild?rev=1.1&view=markup
375 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.14.0.ebuild?rev=1.1&content-type=text/plain
376
377 Index: R-2.14.0.ebuild
378 ===================================================================
379 # Copyright 1999-2011 Gentoo Foundation
380 # Distributed under the terms of the GNU General Public License v2
381 # $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.14.0.ebuild,v 1.1 2011/11/21 16:22:52 jlec Exp $
382
383 EAPI=4
384
385 inherit bash-completion-r1 eutils flag-o-matic fortran-2 versionator
386
387 DESCRIPTION="Language and environment for statistical computing and graphics"
388 HOMEPAGE="http://www.r-project.org/"
389 SRC_URI="
390 mirror://cran/src/base/R-2/${P}.tar.gz
391 bash-completion? ( mirror://gentoo/R.bash_completion.bz2 )"
392
393 LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
394 SLOT="0"
395 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
396 IUSE="bash-completion cairo doc java jpeg lapack minimal nls openmp perl png profile readline static-libs tk X"
397
398 # common depends
399 CDEPEND="
400 app-arch/bzip2
401 app-text/ghostscript-gpl
402 dev-libs/libpcre
403 || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 sys-freebsd/freebsd-lib )
404 virtual/blas
405 cairo? ( x11-libs/cairo[X] )
406 jpeg? ( virtual/jpeg )
407 lapack? ( virtual/lapack )
408 perl? ( dev-lang/perl )
409 png? ( media-libs/libpng )
410 readline? ( sys-libs/readline )
411 tk? ( dev-lang/tk )
412 X? ( x11-libs/libXmu x11-misc/xdg-utils )"
413
414 DEPEND="${CDEPEND}
415 dev-util/pkgconfig
416 doc? (
417 virtual/latex-base
418 dev-texlive/texlive-fontsrecommended
419 )"
420
421 RDEPEND="${CDEPEND}
422 ( || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] ) )
423 app-arch/xz-utils
424 java? ( >=virtual/jre-1.5 )"
425
426 RESTRICT="minimal? ( test )"
427
428 R_DIR="${EPREFIX}/usr/$(get_libdir)/${PN}"
429
430 pkg_setup() {
431 if use openmp; then
432 FORTRAN_NEED_OPENMP=1
433 tc-has-openmp || die "Please enable openmp support in your compiler"
434 fi
435 fortran-2_pkg_setup
436 filter-ldflags -Wl,-Bdirect -Bdirect
437 # avoid using existing R installation
438 unset R_HOME
439 }
440
441 src_prepare() {
442 # fix ocasional failure with parallel install (bug #322965)
443 # upstream in R-2.13?
444 # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14505
445 epatch "${FILESDIR}"/${PN}-2.11.1-parallel.patch
446 # respect ldflags on rscript
447 # upstream does not want it, no reasons given
448 # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14506
449 epatch "${FILESDIR}"/${PN}-2.12.1-ldflags.patch
450 # update for zlib header changes (see bug #383431)
451 epatch "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch
452
453 # glibc 2.14 removed rpc
454 if has_version '>=net-libs/libtirpc-0.2.2-r1'; then
455 append-cppflags $($(tc-getPKG_CONFIG) libtirpc --cflags)
456 export LIBS+=" $($(tc-getPKG_CONFIG) libtirpc --libs)"
457 # patching configure.ac would cause way too much work
458 # ugly hack on configure and let upstream do the job
459 sed -i -e "s/'' nsl;/'' tirpc;/" configure || die
460 fi
461
462 # fix packages.html for doc (bug #205103)
463 # check in later versions if fixed
464 sed -i \
465 -e "s:../../library:../../../../$(get_libdir)/R/library:g" \
466 src/library/tools/R/Rd.R \
467 || die "sed failed"
468
469 # fix Rscript
470 sed -i \
471 -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
472 src/unix/Makefile.in || die "sed unix Makefile failed"
473
474 # fix HTML links to manual (bug #273957)
475 sed -i -e 's:\.\./manual/:manual/:g' $(grep -Flr ../manual/ doc) \
476 || die "sed for HTML links to manual failed"
477
478 use lapack && \
479 export LAPACK_LIBS="$(pkg-config --libs lapack)"
480
481 if use X; then
482 export R_BROWSER="$(type -p xdg-open)"
483 export R_PDFVIEWER="$(type -p xdg-open)"
484 fi
485 use perl && \
486 export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
487 }
488
489 src_configure() {
490 econf \
491 --enable-byte-compiled-packages \
492 --enable-R-shlib \
493 --with-system-zlib \
494 --with-system-bzlib \
495 --with-system-pcre \
496 --with-system-xz \
497 --with-blas="$(pkg-config --libs blas)" \
498 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
499 rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
500 $(use_enable openmp) \
501 $(use_enable nls) \
502 $(use_enable profile R-profiling) \
503 $(use_enable profile memory-profiling) \
504 $(use_enable static-libs static) \
505 $(use_enable static-libs R-static-lib) \
506 $(use_with lapack) \
507 $(use_with tk tcltk) \
508 $(use_with jpeg jpeglib) \
509 $(use_with !minimal recommended-packages) \
510 $(use_with png libpng) \
511 $(use_with readline) \
512 $(use_with cairo) \
513 $(use_with X x)
514 }
515
516 src_compile(){
517 export VARTEXFONTS="${T}/fonts"
518 emake
519 RMATH_V=0.0.0
520 emake -C src/nmath/standalone \
521 libRmath_la_LDFLAGS="-Wl,-soname,libRmath.so.${RMATH_V}" \
522 libRmath_la_LIBADD="\$(LIBM)" \
523 shared $(use static-libs && echo static)
524 use doc && emake info pdf
525 }
526
527 src_install() {
528 default
529 if use doc; then
530 emake DESTDIR="${D}" install-info install-pdf
531 dosym ../manual /usr/share/doc/${PF}/html/manual
532 fi
533
534 # standalone math lib install (-j1 basically harmless)
535 emake \
536 -C src/nmath/standalone \
537 DESTDIR="${D}" install
538
539 local mv=$(get_major_version ${RMATH_V})
540 mv "${ED}"/usr/$(get_libdir)/libRmath.so \
541 "${ED}"/usr/$(get_libdir)/libRmath.so.${RMATH_V}
542 dosym libRmath.so.${RMATH_V} /usr/$(get_libdir)/libRmath.so.${mv}
543 dosym libRmath.so.${mv} /usr/$(get_libdir)/libRmath.so
544
545 # env file
546 cat > 99R <<-EOF
547 LDPATH=${R_DIR}/lib
548 R_HOME=${R_DIR}
549 EOF
550 doenvd 99R
551 use bash-completion && dobashcomp "${WORKDIR}"/R.bash_completion
552 }
553
554 pkg_postinst() {
555 if use java; then
556 einfo "Re-initializing java paths for ${P}"
557 R CMD javareconf
558 fi
559 bash-completion-r1_pkg_postinst
560 }