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: metadata.xml R-2.15.2-r1.ebuild ChangeLog R-2.15.1.ebuild R-2.14.2.ebuild R-2.14.1.ebuild R-2.15.0.ebuild
Date: Mon, 28 Jan 2013 22:49:53
Message-Id: 20130128224948.1207B2171D@flycatcher.gentoo.org
1 bicatali 13/01/28 22:49:47
2
3 Modified: metadata.xml ChangeLog
4 Added: R-2.15.2-r1.ebuild
5 Removed: R-2.15.1.ebuild R-2.14.2.ebuild R-2.14.1.ebuild
6 R-2.15.0.ebuild
7 Log:
8 Fixed for cairo graphics (bug #453048), use generic pkg-config, make sure Rexec links to libR.so on prefix. Removed old.
9
10 (Portage version: 2.2.01.21688-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
11
12 Revision Changes Path
13 1.8 dev-lang/R/metadata.xml
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/metadata.xml?rev=1.8&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/metadata.xml?rev=1.8&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/metadata.xml?r1=1.7&r2=1.8
18
19 Index: metadata.xml
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/metadata.xml,v
22 retrieving revision 1.7
23 retrieving revision 1.8
24 diff -u -r1.7 -r1.8
25 --- metadata.xml 7 Oct 2012 13:35:21 -0000 1.7
26 +++ metadata.xml 28 Jan 2013 22:49:47 -0000 1.8
27 @@ -1,12 +1,12 @@
28 <?xml version="1.0" encoding="UTF-8"?>
29 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
30 <pkgmetadata>
31 - <herd>sci-mathematics</herd>
32 - <maintainer>
33 - <email>calchan@g.o</email>
34 - <name>Denis Dupeyron</name>
35 - </maintainer>
36 - <longdescription lang="en">
37 +<herd>sci-mathematics</herd>
38 +<maintainer>
39 + <email>calchan@g.o</email>
40 + <name>Denis Dupeyron</name>
41 +</maintainer>
42 +<longdescription lang="en">
43 R is GNU S, a system for statistical computation and graphics. It
44 consists of a language plus a run-time environment with graphics, a
45 debugger, access to certain system functions, and the ability to run
46
47
48
49 1.208 dev-lang/R/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.208&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.208&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?r1=1.207&r2=1.208
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v
58 retrieving revision 1.207
59 retrieving revision 1.208
60 diff -u -r1.207 -r1.208
61 --- ChangeLog 26 Oct 2012 21:44:05 -0000 1.207
62 +++ ChangeLog 28 Jan 2013 22:49:47 -0000 1.208
63 @@ -1,6 +1,16 @@
64 # ChangeLog for dev-lang/R
65 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.207 2012/10/26 21:44:05 calchan Exp $
67 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
68 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.208 2013/01/28 22:49:47 bicatali Exp $
69 +
70 +*R-2.15.2-r1 (28 Jan 2013)
71 +
72 + 28 Jan 2013; Sébastien Fabbro <bicatali@g.o> +R-2.15.2-r1.ebuild,
73 + +files/R-2.15.2-cairo.patch, -R-2.14.1.ebuild, -R-2.14.2.ebuild,
74 + -R-2.15.0.ebuild, -R-2.15.1.ebuild, -files/R-2.14.1-pcre830.patch,
75 + -files/R-2.14.2-library-writability.patch,
76 + -files/R-2.14.2-prune-package-update.patch, metadata.xml:
77 + Fixed for cairo graphics (bug #453048), use generic pkg-config, make sure
78 + Rexec links to libR.so on prefix. Removed old.
79
80 *R-2.15.2 (26 Oct 2012)
81
82
83
84
85 1.1 dev-lang/R/R-2.15.2-r1.ebuild
86
87 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.15.2-r1.ebuild?rev=1.1&view=markup
88 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.15.2-r1.ebuild?rev=1.1&content-type=text/plain
89
90 Index: R-2.15.2-r1.ebuild
91 ===================================================================
92 # Copyright 1999-2013 Gentoo Foundation
93 # Distributed under the terms of the GNU General Public License v2
94 # $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.15.2-r1.ebuild,v 1.1 2013/01/28 22:49:47 bicatali Exp $
95
96 EAPI=5
97
98 inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs
99
100 BCP=${PN}-20120306.bash_completion
101 DESCRIPTION="Language and environment for statistical computing and graphics"
102 HOMEPAGE="http://www.r-project.org/"
103 SRC_URI="mirror://cran/src/base/R-2/${P}.tar.gz
104 bash-completion? ( http://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2 )"
105
106 LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
107 SLOT="0"
108 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-fbsd ~x86-linux ~x64-macos"
109 IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X"
110 REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
111
112 CDEPEND="
113 app-arch/bzip2
114 app-text/ghostscript-gpl
115 dev-libs/libpcre
116 virtual/blas
117 cairo? ( x11-libs/cairo[X] x11-libs/pango )
118 icu? ( dev-libs/icu )
119 jpeg? ( virtual/jpeg )
120 lapack? ( virtual/lapack )
121 perl? ( dev-lang/perl )
122 png? ( media-libs/libpng )
123 readline? ( sys-libs/readline )
124 tk? ( dev-lang/tk )
125 X? ( x11-libs/libXmu x11-misc/xdg-utils )"
126
127 DEPEND="${CDEPEND}
128 virtual/pkgconfig
129 doc? (
130 virtual/latex-base
131 dev-texlive/texlive-fontsrecommended
132 )"
133
134 RDEPEND="${CDEPEND}
135 ( || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] ) )
136 app-arch/xz-utils
137 java? ( >=virtual/jre-1.5 )"
138
139 RESTRICT="minimal? ( test )"
140
141 R_DIR="${EROOT}/usr/$(get_libdir)/${PN}"
142
143 pkg_setup() {
144 if use openmp; then
145 FORTRAN_NEED_OPENMP=1
146 tc-has-openmp || die "Please enable openmp support in your compiler"
147 fi
148 fortran-2_pkg_setup
149 filter-ldflags -Wl,-Bdirect -Bdirect
150 # avoid using existing R installation
151 unset R_HOME
152 # Temporary fix for bug #419761
153 if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
154 append-flags -fno-ipa-cp-clone
155 fi
156 }
157
158 src_prepare() {
159 # gentoo bug #322965 (not applied upstream)
160 # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14505
161 epatch "${FILESDIR}"/${PN}-2.11.1-parallel.patch
162
163 # respect ldflags (not applied upstream)
164 # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14506
165 epatch "${FILESDIR}"/${PN}-2.12.1-ldflags.patch
166
167 # gentoo bug #383431
168 # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14951
169 epatch "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch
170
171 # https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14953
172 epatch "${FILESDIR}"/${PN}-2.14.1-rmath-shared.patch
173
174 # fix cairo plots (gentoo bug #453048)
175 epatch "${FILESDIR}"/${PN}-2.15.2-cairo.patch
176
177 # fix packages.html for doc (gentoo bug #205103)
178 sed -i \
179 -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
180 src/library/tools/R/Rd.R || die
181
182 # fix Rscript path when installed (gentoo bug #221061)
183 sed -i \
184 -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
185 src/unix/Makefile.in || die "sed unix Makefile failed"
186
187 # fix HTML links to manual (gentoo bug #273957)
188 sed -i \
189 -e 's:\.\./manual/:manual/:g' \
190 $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
191
192 use lapack && \
193 export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
194
195 if use X; then
196 export R_BROWSER="$(type -p xdg-open)"
197 export R_PDFVIEWER="$(type -p xdg-open)"
198 fi
199 use perl && \
200 export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
201
202 # don't search /usr/local
203 sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
204 # Fix for Darwin (OS X)
205 if use prefix; then
206 if [[ ${CHOST} == *-darwin* ]] ; then
207 sed -i \
208 -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
209 -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
210 -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
211 -e "/SHLIB_EXT/s/\.so/.dylib/" \
212 configure.ac || die
213 # sort of "undo" 2.14.1-rmath-shared.patch
214 sed -i \
215 -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT}/usr/$(get_libdir)/libRmath.dylib:" \
216 src/nmath/standalone/Makefile.in || die
217 else
218 append-ldflags -Wl,-rpath="${EROOT}/usr/$(get_libdir)/R/lib"
219 fi
220 fi
221 AT_M4DIR=m4 eaclocal
222 eautoconf
223 }
224
225 src_configure() {
226 econf \
227 --enable-byte-compiled-packages \
228 --enable-R-shlib \
229 --disable-R-framework \
230 --with-system-zlib \
231 --with-system-bzlib \
232 --with-system-pcre \
233 --with-system-xz \
234 --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
235 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
236 rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
237 $(use_enable nls) \
238 $(use_enable openmp) \
239 $(use_enable profile R-profiling) \
240 $(use_enable profile memory-profiling) \
241 $(use_enable static-libs static) \
242 $(use_enable static-libs R-static-lib) \
243 $(use_with cairo) \
244 $(use_with icu ICU) \
245 $(use_with jpeg jpeglib) \
246 $(use_with lapack) \
247 $(use_with !minimal recommended-packages) \
248 $(use_with png libpng) \
249 $(use_with readline) \
250 $(use_with tiff libtiff) \
251 $(use_with tk tcltk) \
252 $(use_with X x)
253 }
254
255 src_compile() {
256 export VARTEXFONTS="${T}/fonts"
257 emake
258 emake -C src/nmath/standalone shared $(use static-libs && echo static)
259 use doc && emake info pdf
260 }
261
262 src_install() {
263 default
264 emake -C src/nmath/standalone DESTDIR="${D}" install
265
266 if use doc; then
267 emake DESTDIR="${D}" install-info install-pdf
268 dosym ../manual /usr/share/doc/${PF}/html/manual
269 fi
270
271 cat > 99R <<-EOF
272 LDPATH=${R_DIR}/lib
273 R_HOME=${R_DIR}
274 EOF
275 doenvd 99R
276 use bash-completion && newbashcomp "${WORKDIR}"/${BCP} ${PN}
277 # The buildsystem has a different understanding of install_names than what
278 # we require. Since it builds modules like shared objects (wrong), many
279 # objects (all modules) get an incorrect install_name. Fixing the build
280 # system here is not really trivial.
281 if [[ ${CHOST} == *-darwin* ]] ; then
282 local mod
283 pushd "${ED}"/usr/lib/R > /dev/null
284 for mod in $(find . -name "*.dylib") ; do
285 mod=${mod#./}
286 install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \
287 "${mod}"
288 done
289 popd > /dev/null
290 fi
291 }
292
293 pkg_postinst() {
294 if use java; then
295 einfo "Re-initializing java paths for ${P}"
296 R CMD javareconf
297 fi
298 }