1 |
bicatali 13/03/04 22:56:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: R-2.15.3.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.01.21688-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
9 |
|
10 |
Revision Changes Path |
11 |
1.213 dev-lang/R/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.213&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?rev=1.213&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/ChangeLog?r1=1.212&r2=1.213 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v |
20 |
retrieving revision 1.212 |
21 |
retrieving revision 1.213 |
22 |
diff -u -r1.212 -r1.213 |
23 |
--- ChangeLog 19 Feb 2013 12:31:48 -0000 1.212 |
24 |
+++ ChangeLog 4 Mar 2013 22:56:38 -0000 1.213 |
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.212 2013/02/19 12:31:48 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.213 2013/03/04 22:56:38 bicatali Exp $ |
30 |
+ |
31 |
+*R-2.15.3 (04 Mar 2013) |
32 |
+ |
33 |
+ 04 Mar 2013; Sébastien Fabbro <bicatali@g.o> +R-2.15.3.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
19 Feb 2013; Justin Lecher <jlec@g.o> R-2.10.1.ebuild, |
37 |
R-2.15.2.ebuild, metadata.xml: |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-lang/R/R-2.15.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.15.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/R/R-2.15.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: R-2.15.3.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-2.15.3.ebuild,v 1.1 2013/03/04 22:56:38 bicatali 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="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 ~amd64-linux ~x86-fbsd ~x86-linux ~x64-macos" |
65 |
IUSE="bash-completion cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X" |
66 |
REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )" |
67 |
|
68 |
CDEPEND=" |
69 |
app-arch/bzip2 |
70 |
app-text/ghostscript-gpl |
71 |
dev-libs/libpcre |
72 |
virtual/blas |
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="${EROOT%/}/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 |
# https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14953 |
128 |
epatch "${FILESDIR}"/${PN}-2.14.1-rmath-shared.patch |
129 |
|
130 |
# fix packages.html for doc (gentoo bug #205103) |
131 |
sed -i \ |
132 |
-e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ |
133 |
src/library/tools/R/Rd.R || die |
134 |
|
135 |
# fix Rscript path when installed (gentoo bug #221061) |
136 |
sed -i \ |
137 |
-e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \ |
138 |
src/unix/Makefile.in || die "sed unix Makefile failed" |
139 |
|
140 |
# fix HTML links to manual (gentoo bug #273957) |
141 |
sed -i \ |
142 |
-e 's:\.\./manual/:manual/:g' \ |
143 |
$(grep -Flr ../manual/ doc) || die "sed for HTML links failed" |
144 |
|
145 |
use lapack && \ |
146 |
export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" |
147 |
|
148 |
if use X; then |
149 |
export R_BROWSER="$(type -p xdg-open)" |
150 |
export R_PDFVIEWER="$(type -p xdg-open)" |
151 |
fi |
152 |
use perl && \ |
153 |
export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" |
154 |
|
155 |
# don't search /usr/local |
156 |
sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die |
157 |
# Fix for Darwin (OS X) |
158 |
if use prefix; then |
159 |
if [[ ${CHOST} == *-darwin* ]] ; then |
160 |
sed -i \ |
161 |
-e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ |
162 |
-e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ |
163 |
-e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ |
164 |
-e "/SHLIB_EXT/s/\.so/.dylib/" \ |
165 |
configure.ac || die |
166 |
# sort of "undo" 2.14.1-rmath-shared.patch |
167 |
sed -i \ |
168 |
-e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \ |
169 |
src/nmath/standalone/Makefile.in || die |
170 |
else |
171 |
append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib" |
172 |
fi |
173 |
fi |
174 |
AT_M4DIR=m4 eaclocal |
175 |
eautoconf |
176 |
} |
177 |
|
178 |
src_configure() { |
179 |
econf \ |
180 |
--enable-byte-compiled-packages \ |
181 |
--enable-R-shlib \ |
182 |
--disable-R-framework \ |
183 |
--with-system-zlib \ |
184 |
--with-system-bzlib \ |
185 |
--with-system-pcre \ |
186 |
--with-system-xz \ |
187 |
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
188 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
189 |
rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ |
190 |
$(use_enable nls) \ |
191 |
$(use_enable openmp) \ |
192 |
$(use_enable profile R-profiling) \ |
193 |
$(use_enable profile memory-profiling) \ |
194 |
$(use_enable static-libs static) \ |
195 |
$(use_enable static-libs R-static-lib) \ |
196 |
$(use_with cairo) \ |
197 |
$(use_with icu ICU) \ |
198 |
$(use_with jpeg jpeglib) \ |
199 |
$(use_with lapack) \ |
200 |
$(use_with !minimal recommended-packages) \ |
201 |
$(use_with png libpng) \ |
202 |
$(use_with readline) \ |
203 |
$(use_with tiff libtiff) \ |
204 |
$(use_with tk tcltk) \ |
205 |
$(use_with X x) |
206 |
} |
207 |
|
208 |
src_compile() { |
209 |
export VARTEXFONTS="${T}/fonts" |
210 |
emake AR="$(tc-getAR)" |
211 |
emake -C src/nmath/standalone shared $(use static-libs && echo static) AR="$(tc-getAR)" |
212 |
use doc && emake info pdf |
213 |
} |
214 |
|
215 |
src_install() { |
216 |
default |
217 |
emake -C src/nmath/standalone DESTDIR="${D}" install |
218 |
|
219 |
if use doc; then |
220 |
emake DESTDIR="${D}" install-info install-pdf |
221 |
dosym ../manual /usr/share/doc/${PF}/html/manual |
222 |
fi |
223 |
|
224 |
cat > 99R <<-EOF |
225 |
LDPATH=${R_DIR}/lib |
226 |
R_HOME=${R_DIR} |
227 |
EOF |
228 |
doenvd 99R |
229 |
use bash-completion && newbashcomp "${WORKDIR}"/${BCP} ${PN} |
230 |
# The buildsystem has a different understanding of install_names than what |
231 |
# we require. Since it builds modules like shared objects (wrong), many |
232 |
# objects (all modules) get an incorrect install_name. Fixing the build |
233 |
# system here is not really trivial. |
234 |
if [[ ${CHOST} == *-darwin* ]] ; then |
235 |
local mod |
236 |
pushd "${ED}"/usr/lib/R > /dev/null |
237 |
for mod in $(find . -name "*.dylib") ; do |
238 |
mod=${mod#./} |
239 |
install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \ |
240 |
"${mod}" |
241 |
done |
242 |
popd > /dev/null |
243 |
fi |
244 |
} |
245 |
|
246 |
pkg_postinst() { |
247 |
if use java; then |
248 |
einfo "Re-initializing java paths for ${P}" |
249 |
R CMD javareconf |
250 |
fi |
251 |
} |