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.14.1.ebuild ChangeLog R-2.13.0.ebuild R-2.14.0.ebuild R-2.13.1-r1.ebuild
Date: Mon, 02 Jan 2012 19:48:04
Message-Id: 20120102194754.AB7EA2004C@flycatcher.gentoo.org
1 bicatali 12/01/02 19:47:54
2
3 Modified: ChangeLog
4 Added: R-2.14.1.ebuild
5 Removed: R-2.13.0.ebuild R-2.14.0.ebuild R-2.13.1-r1.ebuild
6 Log:
7 Version bump. Fixed automagic dependencies on icu and tiff. Added required dependency on pango when cairo is set. Fixed as-needed on standalone math library. Added required use flags for graphics capabilities (bug #373649). Removed glibc hacks, applied on glibc package. Commented patches for another attempt to submit them upstream. Removed older unstable versions, fixing bugs #353545, bug #357077, bug #382687, bug #384493, bug #384723.
8
9 (Portage version: 2.1.10.41/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.192 dev-lang/R/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.192&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.192&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?r1=1.191&r2=1.192
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v
21 retrieving revision 1.191
22 retrieving revision 1.192
23 diff -u -r1.191 -r1.192
24 --- ChangeLog 21 Nov 2011 16:22:52 -0000 1.191
25 +++ ChangeLog 2 Jan 2012 19:47:54 -0000 1.192
26 @@ -1,6 +1,20 @@
27 # ChangeLog for dev-lang/R
28 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.191 2011/11/21 16:22:52 jlec Exp $
30 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.192 2012/01/02 19:47:54 bicatali Exp $
32 +
33 +*R-2.14.1 (02 Jan 2012)
34 +
35 + 02 Jan 2012; Sébastien Fabbro <bicatali@g.o>
36 + files/R-2.11.1-parallel.patch, files/R-2.12.1-ldflags.patch,
37 + -R-2.13.0.ebuild, -R-2.13.1-r1.ebuild, files/R-2.13.1-zlib_header_fix.patch,
38 + -R-2.14.0.ebuild, +R-2.14.1.ebuild, +files/R-2.14.1-rmath-shared.patch,
39 + +files/R-2.14.1-tiff.patch:
40 + Version bump. Fixed automagic dependencies on icu and tiff. Added required
41 + dependency on pango when cairo is set. Fixed as-needed on standalone math
42 + library. Added required use flags for graphics capabilities (bug #373649).
43 + Removed glibc hacks, applied on glibc package. Commented patches for another
44 + attempt to submit them upstream. Removed older unstable versions, fixing bugs
45 + #353545, bug #357077, bug #382687, bug #384493, bug #384723.
46
47 *R-2.14.0 (21 Nov 2011)
48
49
50
51
52 1.1 dev-lang/R/R-2.14.1.ebuild
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.14.1.ebuild?rev=1.1&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.14.1.ebuild?rev=1.1&content-type=text/plain
56
57 Index: R-2.14.1.ebuild
58 ===================================================================
59 # Copyright 1999-2012 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 # $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.14.1.ebuild,v 1.1 2012/01/02 19:47:54 bicatali Exp $
62
63 EAPI=4
64
65 inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 versionator
66
67 DESCRIPTION="Language and environment for statistical computing and graphics"
68 HOMEPAGE="http://www.r-project.org/"
69 SRC_URI="mirror://cran/src/base/R-2/${P}.tar.gz
70 bash-completion? ( mirror://gentoo/R.bash_completion.bz2 )"
71
72 LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
73 SLOT="0"
74 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
75 IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png profile readline static-libs tiff tk X"
76 REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )"
77
78 CDEPEND="app-arch/bzip2
79 app-text/ghostscript-gpl
80 dev-libs/libpcre
81 virtual/blas
82 cairo? ( x11-libs/cairo[X] x11-libs/pango )
83 icu? ( dev-libs/icu )
84 jpeg? ( virtual/jpeg )
85 lapack? ( virtual/lapack )
86 perl? ( dev-lang/perl )
87 png? ( media-libs/libpng )
88 readline? ( sys-libs/readline )
89 tk? ( dev-lang/tk )
90 X? ( x11-libs/libXmu x11-misc/xdg-utils )"
91
92 DEPEND="${CDEPEND}
93 dev-util/pkgconfig
94 doc? (
95 virtual/latex-base
96 dev-texlive/texlive-fontsrecommended
97 )"
98
99 RDEPEND="${CDEPEND}
100 ( || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] ) )
101 app-arch/xz-utils
102 java? ( >=virtual/jre-1.5 )"
103
104 RESTRICT="minimal? ( test )"
105
106 R_DIR="${EPREFIX}/usr/$(get_libdir)/${PN}"
107
108 pkg_setup() {
109 if use openmp; then
110 FORTRAN_NEED_OPENMP=1
111 tc-has-openmp || die "Please enable openmp support in your compiler"
112 fi
113 fortran-2_pkg_setup
114 filter-ldflags -Wl,-Bdirect -Bdirect
115 # avoid using existing R installation
116 unset R_HOME
117 }
118
119 src_prepare() {
120 epatch \
121 "${FILESDIR}"/${PN}-2.11.1-parallel.patch \
122 "${FILESDIR}"/${PN}-2.12.1-ldflags.patch \
123 "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \
124 "${FILESDIR}"/${PN}-2.14.1-tiff.patch \
125 "${FILESDIR}"/${PN}-2.14.1-rmath-shared.patch
126
127 # fix packages.html for doc (bug #205103)
128 sed -i \
129 -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
130 src/library/tools/R/Rd.R || die
131
132 # fix Rscript path when installed (bug #221061)
133 sed -i \
134 -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \
135 src/unix/Makefile.in || die "sed unix Makefile failed"
136
137 # fix HTML links to manual (bug #273957)
138 sed -i \
139 -e 's:\.\./manual/:manual/:g' \
140 $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
141
142 use lapack && \
143 export LAPACK_LIBS="$(pkg-config --libs lapack)"
144
145 if use X; then
146 export R_BROWSER="$(type -p xdg-open)"
147 export R_PDFVIEWER="$(type -p xdg-open)"
148 fi
149 use perl && \
150 export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
151 AT_M4DIR=m4 eaclocal
152 eautoconf
153 }
154
155 src_configure() {
156 econf \
157 --enable-byte-compiled-packages \
158 --enable-R-shlib \
159 --with-system-zlib \
160 --with-system-bzlib \
161 --with-system-pcre \
162 --with-system-xz \
163 --with-blas="$(pkg-config --libs blas)" \
164 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
165 rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
166 $(use_enable nls) \
167 $(use_enable openmp) \
168 $(use_enable profile R-profiling) \
169 $(use_enable profile memory-profiling) \
170 $(use_enable static-libs static) \
171 $(use_enable static-libs R-static-lib) \
172 $(use_with cairo) \
173 $(use_with icu ICU) \
174 $(use_with jpeg jpeglib) \
175 $(use_with lapack) \
176 $(use_with !minimal recommended-packages) \
177 $(use_with png libpng) \
178 $(use_with readline) \
179 $(use_with tiff libtiff) \
180 $(use_with tk tcltk) \
181 $(use_with X x)
182 }
183
184 src_compile(){
185 export VARTEXFONTS="${T}/fonts"
186 emake
187 emake -C src/nmath/standalone shared $(use static-libs && echo static)
188 use doc && emake info pdf
189 }
190
191 src_install() {
192 default
193 emake -C src/nmath/standalone DESTDIR="${D}" install
194
195 if use doc; then
196 emake DESTDIR="${D}" install-info install-pdf
197 dosym ../manual /usr/share/doc/${PF}/html/manual
198 fi
199
200 cat > 99R <<-EOF
201 LDPATH=${R_DIR}/lib
202 R_HOME=${R_DIR}
203 EOF
204 doenvd 99R
205 use bash-completion && dobashcomp "${WORKDIR}"/R.bash_completion
206 }
207
208 pkg_postinst() {
209 if use java; then
210 einfo "Re-initializing java paths for ${P}"
211 R CMD javareconf
212 fi
213 bash-completion-r1_pkg_postinst
214 }