Gentoo Archives: gentoo-commits

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