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