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