Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/R: R-2.10.0.ebuild ChangeLog
Date: Tue, 03 Nov 2009 22:25:47
Message-Id: E1N5Rou-0008FO-Vk@stork.gentoo.org
1 bicatali 09/11/03 22:25:44
2
3 Modified: ChangeLog
4 Added: R-2.10.0.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc48/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.164 dev-lang/R/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/ChangeLog?rev=1.164&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/ChangeLog?rev=1.164&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/ChangeLog?r1=1.163&r2=1.164
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v
19 retrieving revision 1.163
20 retrieving revision 1.164
21 diff -u -r1.163 -r1.164
22 --- ChangeLog 3 Nov 2009 19:28:02 -0000 1.163
23 +++ ChangeLog 3 Nov 2009 22:25:44 -0000 1.164
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/R
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.163 2009/11/03 19:28:02 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.164 2009/11/03 22:25:44 bicatali Exp $
29 +
30 +*R-2.10.0 (03 Nov 2009)
31 +
32 + 03 Nov 2009; Sébastien Fabbro <bicatali@g.o> +R-2.10.0.ebuild:
33 + Version bump
34
35 03 Nov 2009; Raúl Porcel <armin76@g.o> R-2.9.2.ebuild:
36 ia64 stable wrt #289381
37
38
39
40 1.1 dev-lang/R/R-2.10.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.10.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.10.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: R-2.10.0.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.10.0.ebuild,v 1.1 2009/11/03 22:25:44 bicatali Exp $
50
51 EAPI=2
52 inherit eutils flag-o-matic bash-completion versionator
53
54 DESCRIPTION="Language and environment for statistical computing and graphics"
55 HOMEPAGE="http://www.r-project.org/"
56 SRC_URI="mirror://cran/src/base/R-2/${P}.tar.gz
57 bash-completion? ( mirror://gentoo/R.bash_completion.bz2 )"
58
59 LICENSE="GPL-2 LGPL-2.1"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62
63 IUSE="doc java jpeg lapack minimal nls perl png readline threads tk X cairo"
64
65 # common depends
66 CDEPEND="dev-libs/libpcre
67 app-arch/bzip2
68 virtual/blas
69 virtual/ghostscript
70 cairo? ( x11-libs/cairo[X]
71 || ( >=x11-libs/pango-1.20[X] <x11-libs/pango-1.20 ) )
72 jpeg? ( media-libs/jpeg )
73 lapack? ( virtual/lapack )
74 perl? ( dev-lang/perl )
75 png? ( media-libs/libpng )
76 readline? ( sys-libs/readline )
77 tk? ( dev-lang/tk )
78 X? ( x11-libs/libXmu x11-misc/xdg-utils )"
79
80 DEPEND="${CDEPEND}
81 dev-util/pkgconfig
82 doc? ( virtual/latex-base
83 || ( dev-texlive/texlive-fontsrecommended
84 app-text/ptex ) )"
85
86 RDEPEND="${CDEPEND}
87 app-arch/unzip
88 app-arch/zip
89 java? ( >=virtual/jre-1.5 )"
90
91 R_HOME=/usr/$(get_libdir)/${PN}
92
93 pkg_setup() {
94 filter-ldflags -Wl,-Bdirect -Bdirect
95 }
96
97 src_prepare() {
98 # fix packages.html for doc (bug #205103)
99 # check in later versions if fixed
100 sed -i \
101 -e "s:../../library:../../../../$(get_libdir)/R/library:g" \
102 src/library/tools/R/packageshtml.R \
103 || die "sed failed"
104
105 # fix Rscript
106 sed -i \
107 -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_HOME}\"':" \
108 src/unix/Makefile.in || die "sed unix Makefile failed"
109
110 # fix HTML links to manual (bug #273957)
111 sed -i -e 's:\.\./manual/:manual/:g' $(grep -Flr ../manual/ doc) \
112 || die "sed for HTML links to manual failed"
113
114 use lapack && \
115 export LAPACK_LIBS="$(pkg-config --libs lapack)"
116
117 if use X; then
118 export R_BROWSER="$(type -p xdg-open)"
119 export R_PDFVIEWER="$(type -p xdg-open)"
120 fi
121 use perl && export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
122 }
123
124 src_configure() {
125 econf \
126 --disable-rpath \
127 --enable-R-profiling \
128 --enable-memory-profiling \
129 --enable-R-shlib \
130 --enable-linux-lfs \
131 --with-system-zlib \
132 --with-system-bzlib \
133 --with-system-pcre \
134 --with-blas="$(pkg-config --libs blas)" \
135 --docdir=/usr/share/doc/${PF} \
136 rdocdir=/usr/share/doc/${PF} \
137 $(use_enable nls) \
138 $(use_enable threads) \
139 $(use_with lapack) \
140 $(use_with tk tcltk) \
141 $(use_with jpeg jpeglib) \
142 $(use_with !minimal recommended-packages) \
143 $(use_with png libpng) \
144 $(use_with readline) \
145 $(use_with cairo) \
146 $(use_with X x)
147 }
148
149 src_compile(){
150 emake || die "emake failed"
151 RMATH_V=0.0.0
152 emake -j1 -C src/nmath/standalone \
153 libRmath_la_LDFLAGS=-Wl,-soname,libRmath.so.${RMATH_V} \
154 || die "emake math library failed"
155 if use doc; then
156 export VARTEXFONTS="${T}/fonts"
157 emake info pdf || die "emake docs failed"
158 fi
159 }
160
161 src_test() {
162 # we need to unset R_HOME otherwise some of the diff based
163 # tests fail due to warnings in the output
164 R_HOME="" emake -j1 check || die "Some of the tests failed"
165 }
166
167 src_install() {
168 emake DESTDIR="${D}" install || die "emake install failed"
169
170 if use doc; then
171 emake DESTDIR="${D}" \
172 install-info install-pdf || die "emake install docs failed"
173 dosym /usr/share/doc/${PF}/manual /usr/share/doc/${PF}/html/manual
174 fi
175
176 # standalone math lib install (-j1 basically harmless)
177 emake -j1 \
178 -C src/nmath/standalone \
179 DESTDIR="${D}" install \
180 || die "emake install math library failed"
181
182 local mv=$(get_major_version ${RMATH_V})
183 mv "${D}"/usr/$(get_libdir)/libRmath.so \
184 "${D}"/usr/$(get_libdir)/libRmath.so.${RMATH_V}
185 dosym libRmath.so.${RMATH_V} /usr/$(get_libdir)/libRmath.so.${mv}
186 dosym libRmath.so.${mv} /usr/$(get_libdir)/libRmath.so
187
188 # env file
189 cat > 99R <<-EOF
190 LDPATH=${R_HOME}/lib
191 R_HOME=${R_HOME}
192 EOF
193 doenvd 99R || die "doenvd failed"
194 dobashcompletion "${WORKDIR}"/R.bash_completion
195 }
196
197 pkg_config() {
198 if use java; then
199 einfo "Re-initializing java paths for ${P}"
200 R CMD javareconf
201 fi
202 }