1 |
commit: cd121187300053974c222d584f34fc99abd5b577 |
2 |
Author: Amy Liffey <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 4 17:45:46 2019 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 4 17:45:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd121187 |
7 |
|
8 |
dev-lang/R: remove old 3.2.2, 3.3.2, 3.5.1 |
9 |
|
10 |
Signed-off-by: Amy Liffey <amynka <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
|
13 |
dev-lang/R/Manifest | 4 - |
14 |
dev-lang/R/R-3.2.2.ebuild | 205 ---------------------------------------------- |
15 |
dev-lang/R/R-3.3.2.ebuild | 201 --------------------------------------------- |
16 |
dev-lang/R/R-3.5.1.ebuild | 204 --------------------------------------------- |
17 |
4 files changed, 614 deletions(-) |
18 |
|
19 |
diff --git a/dev-lang/R/Manifest b/dev-lang/R/Manifest |
20 |
index f85c3d58315..32412abdb94 100644 |
21 |
--- a/dev-lang/R/Manifest |
22 |
+++ b/dev-lang/R/Manifest |
23 |
@@ -1,8 +1,4 @@ |
24 |
-DIST R-20130129.bash_completion.bz2 4209 BLAKE2B 0afbe9548641cb68a521e4140c48019d21288e32061abba227f8dfcb1398febe7132cc60ebaf9e4e1a226aaca0587d13f982c59e5bd6921fbe932238d6bb96d7 SHA512 910b26e16cfebe677f438abfa5f2652e582db143d91dbf0e7d4b1ea33462c7e5c89c3a3619c63ae98bba26b11a5adb16eda9d344f8cdbe4f0feabc546993c1a5 |
25 |
-DIST R-3.2.2.tar.gz 29772864 BLAKE2B f3f7ff9b9bd3cf685712e8997dd5a511a47e56ed261c1039b0540c29e4dd3131cc3052dad2c9a89af04b7bd595d9be7b9c8310206dd5b82244bb274f5a274603 SHA512 71ba470875262b9f00fb6970f209788df4dad30e0a28373b824b60d8bc6401afb7786e65387663c6490c7ddcd2bfd7f808a270a3e63238f3d7565d5f93607138 |
26 |
-DIST R-3.3.2.tar.gz 29440670 BLAKE2B 37308fb0caf19c33196b496d5b6f2f1b5b6f75e3ed985f2f0c4b0633d6191181de7f4cbd1ec986d76089a101d8895493cfe3b8563cfbc36f0b72a1ea14c748c5 SHA512 06a98687c0b180cb0bfd57440ea26088212d9f48948d503136475bf54b42d72cfec5bea7e333c0cedd60733bd614dd0f8c2eced7e24478b6c89f48e8d0c43482 |
27 |
DIST R-3.4.1.tar.gz 30200109 BLAKE2B 03602e9a48759caee8ce047fa6273df7a54af089de4489e21953c0e3fc7bfdf720d924f1e0167d3dbf65f63ed42ac10dea8b45289b921cda1c0e6d25a0063ebb SHA512 19bd50c87dc001ef947c15c1760f27ac8986ff6b43c6d90d3093ae184e42963027ef06faf31ec57ac9e519af7a35a2f53f8ea23ef75d800ebbd02945cedc4651 |
28 |
-DIST R-3.5.1.tar.gz 29812849 BLAKE2B 9390934e5da5bd223eee717d4e4c5bd7d47291811318b2fdeac59216081cf9e63119f17bc8fee7235e2426852c50eb5948e6a2a3a632047f41b36460e2584967 SHA512 382cc6e200469dd168799948edcf3a0b869d7ef3b3176fdfc60752f3f37e6ba356323c47d8815a4d9ab6ad3a21cd045d26ef5e75107c8685328e0ffcfd172f7f |
29 |
DIST R-3.5.3.tar.gz 30205979 BLAKE2B 60dde4c1a7874df0b113630577d943d581d9e0844383a5cb7eda7f62470177d541704a888c33ded216f8b1f088cda493d7716693f5e2451effe3639ce2286dd1 SHA512 077cbd4bc9f19a3a2485afbd4d8e08e0754ddcb9a10164cbc8478f239d5ed0ffaf6796929f154cce1c8aea549c32d460049fc036dc326174d1dbb0a1ddb5f5ef |
30 |
DIST R-3.6.0.tar.gz 30449618 BLAKE2B 2fb2f1252f5ead97ab42eb1f71fa0be1e8aec2f6cce182956ec1c35b43b70b58f579faf5f3ca11efb8e9c24a9ed836b5b690cb23858249bc7f575aca4709bc3b SHA512 b2e17b909b6387abb964492e2e9370f913295ca7ac99bab0e965c43ed3c4635e27468c326fb2bca3c529b03c731b0170d9e777a194ad4d6c5a983c050223d8c8 |
31 |
DIST R-78d6830e28ea90a046da79a9b4f70c39594bb6d6.bash_completion 13596 BLAKE2B 53338e4a1c4f68beb69247216e553dbcac47f660fbf032bfebf7a660e32d2cff5b11ed35411c52de7e1fd6e00bbf5b5ea19369a325fa0a38bd93d63dc3288cbd SHA512 9ccd19bb1b0c18a2f13035ccd6809447429e197e298fb4d1df808ef345d723b42f75a1b91c349f6dbb46e4a82e59ef33e11300c495d79b63d670d0c0f2b16a06 |
32 |
|
33 |
diff --git a/dev-lang/R/R-3.2.2.ebuild b/dev-lang/R/R-3.2.2.ebuild |
34 |
deleted file mode 100644 |
35 |
index df833c293e4..00000000000 |
36 |
--- a/dev-lang/R/R-3.2.2.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,205 +0,0 @@ |
39 |
-# Copyright 1999-2018 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=5 |
43 |
- |
44 |
-inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs |
45 |
- |
46 |
-BCP=${PN}-20130129.bash_completion |
47 |
-DESCRIPTION="Language and environment for statistical computing and graphics" |
48 |
-HOMEPAGE="http://www.r-project.org/" |
49 |
-SRC_URI=" |
50 |
- mirror://cran/src/base/R-3/${P}.tar.gz |
51 |
- https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2" |
52 |
- |
53 |
-LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" |
54 |
-SLOT="0" |
55 |
-KEYWORDS="amd64 ia64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" |
56 |
-IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X" |
57 |
-REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )" |
58 |
- |
59 |
-CDEPEND=" |
60 |
- app-arch/bzip2:0= |
61 |
- app-arch/xz-utils:0= |
62 |
- app-text/ghostscript-gpl |
63 |
- >=dev-libs/libpcre-8.35:3= |
64 |
- virtual/blas:0 |
65 |
- || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath ) |
66 |
- cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= ) |
67 |
- icu? ( dev-libs/icu:= ) |
68 |
- jpeg? ( virtual/jpeg:0 ) |
69 |
- lapack? ( virtual/lapack:0 ) |
70 |
- perl? ( dev-lang/perl ) |
71 |
- png? ( media-libs/libpng:0= ) |
72 |
- readline? ( sys-libs/readline:0= ) |
73 |
- tiff? ( media-libs/tiff:0= ) |
74 |
- tk? ( dev-lang/tk:0= ) |
75 |
- X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )" |
76 |
- |
77 |
-DEPEND="${CDEPEND} |
78 |
- virtual/pkgconfig |
79 |
- doc? ( |
80 |
- virtual/latex-base |
81 |
- dev-texlive/texlive-fontsrecommended |
82 |
- )" |
83 |
- |
84 |
-RDEPEND="${CDEPEND} |
85 |
- >=sys-libs/zlib-1.2.5.1-r2:0[minizip] |
86 |
- java? ( >=virtual/jre-1.5 )" |
87 |
- |
88 |
-RESTRICT="minimal? ( test )" |
89 |
- |
90 |
-R_DIR="${EROOT%/}/usr/$(get_libdir)/${PN}" |
91 |
- |
92 |
-pkg_setup() { |
93 |
- if use openmp; then |
94 |
- if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then |
95 |
- ewarn "OpenMP is not available in your current selected gcc" |
96 |
- die "need openmp capable gcc" |
97 |
- fi |
98 |
- FORTRAN_NEED_OPENMP=1 |
99 |
- fi |
100 |
- fortran-2_pkg_setup |
101 |
- filter-ldflags -Wl,-Bdirect -Bdirect |
102 |
- # avoid using existing R installation |
103 |
- unset R_HOME |
104 |
- # Temporary fix for bug #419761 |
105 |
- if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then |
106 |
- append-flags -fno-ipa-cp-clone |
107 |
- fi |
108 |
-} |
109 |
- |
110 |
-src_prepare() { |
111 |
- epatch \ |
112 |
- "${FILESDIR}"/${PN}-2.11.1-parallel.patch \ |
113 |
- "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \ |
114 |
- "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch |
115 |
- |
116 |
- # fix packages.html for doc (gentoo bug #205103) |
117 |
- sed -i \ |
118 |
- -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ |
119 |
- src/library/tools/R/Rd.R || die |
120 |
- |
121 |
- # fix Rscript path when installed (gentoo bug #221061) |
122 |
- sed -i \ |
123 |
- -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${R_DIR}\"':" \ |
124 |
- src/unix/Makefile.in || die "sed unix Makefile failed" |
125 |
- |
126 |
- # fix HTML links to manual (gentoo bug #273957) |
127 |
- sed -i \ |
128 |
- -e 's:\.\./manual/:manual/:g' \ |
129 |
- $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" |
130 |
- |
131 |
- use lapack && \ |
132 |
- export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" |
133 |
- |
134 |
- if use X; then |
135 |
- export R_BROWSER="$(type -p xdg-open)" |
136 |
- export R_PDFVIEWER="$(type -p xdg-open)" |
137 |
- fi |
138 |
- use perl && \ |
139 |
- export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" |
140 |
- |
141 |
- # don't search /usr/local |
142 |
- sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die |
143 |
- # Fix for Darwin (OS X) |
144 |
- if use prefix; then |
145 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
146 |
- sed -i \ |
147 |
- -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ |
148 |
- -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ |
149 |
- -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ |
150 |
- -e "/SHLIB_EXT/s/\.so/.dylib/" \ |
151 |
- configure.ac || die |
152 |
- # sort of "undo" 2.14.1-rmath-shared.patch |
153 |
- sed -i \ |
154 |
- -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \ |
155 |
- src/nmath/standalone/Makefile.in || die |
156 |
- else |
157 |
- append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib" |
158 |
- fi |
159 |
- fi |
160 |
- AT_M4DIR=m4 eaclocal |
161 |
- eautoconf |
162 |
-} |
163 |
- |
164 |
-src_configure() { |
165 |
- # --with-system-tre \ |
166 |
- # tre is patched from upstream |
167 |
- econf \ |
168 |
- --enable-byte-compiled-packages \ |
169 |
- --enable-R-shlib \ |
170 |
- --disable-R-framework \ |
171 |
- --with-system-zlib \ |
172 |
- --with-system-bzlib \ |
173 |
- --with-system-pcre \ |
174 |
- --with-system-xz \ |
175 |
- --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
176 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
177 |
- rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ |
178 |
- $(use_enable nls) \ |
179 |
- $(use_enable openmp) \ |
180 |
- $(use_enable profile R-profiling) \ |
181 |
- $(use_enable profile memory-profiling) \ |
182 |
- $(use_enable static-libs static) \ |
183 |
- $(use_enable static-libs R-static-lib) \ |
184 |
- $(use_with cairo) \ |
185 |
- $(use_with icu ICU) \ |
186 |
- $(use_with jpeg jpeglib) \ |
187 |
- $(use_with lapack) \ |
188 |
- $(use_with !minimal recommended-packages) \ |
189 |
- $(use_with png libpng) \ |
190 |
- $(use_with readline) \ |
191 |
- $(use_with tiff libtiff) \ |
192 |
- $(use_with tk tcltk) \ |
193 |
- $(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \ |
194 |
- $(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \ |
195 |
- $(use_with X x) |
196 |
-} |
197 |
- |
198 |
-src_compile() { |
199 |
- export VARTEXFONTS="${T}/fonts" |
200 |
- emake AR="$(tc-getAR)" |
201 |
- emake -C src/nmath/standalone \ |
202 |
- shared $(use static-libs && echo static) AR="$(tc-getAR)" |
203 |
- use doc && emake info pdf |
204 |
-} |
205 |
- |
206 |
-src_install() { |
207 |
- default |
208 |
- emake -j1 -C src/nmath/standalone DESTDIR="${D}" install |
209 |
- |
210 |
- if use doc; then |
211 |
- emake DESTDIR="${D}" install-info install-pdf |
212 |
- dosym ../manual /usr/share/doc/${PF}/html/manual |
213 |
- fi |
214 |
- |
215 |
- cat > 99R <<-EOF |
216 |
- LDPATH=${R_DIR}/lib |
217 |
- R_HOME=${R_DIR} |
218 |
- EOF |
219 |
- doenvd 99R |
220 |
- newbashcomp "${WORKDIR}"/${BCP} ${PN} |
221 |
- # The buildsystem has a different understanding of install_names than |
222 |
- # we require. Since it builds modules like shared objects (wrong), many |
223 |
- # objects (all modules) get an incorrect install_name. Fixing the build |
224 |
- # system here is not really trivial. |
225 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
226 |
- local mod |
227 |
- pushd "${ED}"/usr/lib/R > /dev/null |
228 |
- for mod in $(find . -name "*.dylib") ; do |
229 |
- mod=${mod#./} |
230 |
- install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \ |
231 |
- "${mod}" |
232 |
- done |
233 |
- popd > /dev/null |
234 |
- fi |
235 |
- docompress -x /usr/share/doc/${PF}/NEWS.rds |
236 |
-} |
237 |
- |
238 |
-pkg_postinst() { |
239 |
- if use java; then |
240 |
- einfo "Re-initializing java paths for ${P}" |
241 |
- R CMD javareconf |
242 |
- fi |
243 |
-} |
244 |
|
245 |
diff --git a/dev-lang/R/R-3.3.2.ebuild b/dev-lang/R/R-3.3.2.ebuild |
246 |
deleted file mode 100644 |
247 |
index 6ca1d812f3e..00000000000 |
248 |
--- a/dev-lang/R/R-3.3.2.ebuild |
249 |
+++ /dev/null |
250 |
@@ -1,201 +0,0 @@ |
251 |
-# Copyright 1999-2018 Gentoo Authors |
252 |
-# Distributed under the terms of the GNU General Public License v2 |
253 |
- |
254 |
-EAPI=5 |
255 |
- |
256 |
-inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs |
257 |
- |
258 |
-BCP=${PN}-20130129.bash_completion |
259 |
-DESCRIPTION="Language and environment for statistical computing and graphics" |
260 |
-HOMEPAGE="http://www.r-project.org/" |
261 |
-SRC_URI=" |
262 |
- mirror://cran/src/base/R-3/${P}.tar.gz |
263 |
- https://dev.gentoo.org/~bicatali/distfiles/${BCP}.bz2" |
264 |
- |
265 |
-LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" |
266 |
-SLOT="0" |
267 |
-KEYWORDS="~amd64 ~ia64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" |
268 |
-IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X" |
269 |
-REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )" |
270 |
- |
271 |
-CDEPEND=" |
272 |
- app-arch/bzip2:0= |
273 |
- app-arch/xz-utils:0= |
274 |
- app-text/ghostscript-gpl |
275 |
- >=dev-libs/libpcre-8.35:3= |
276 |
- virtual/blas:0 |
277 |
- || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath ) |
278 |
- cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= ) |
279 |
- icu? ( dev-libs/icu:= ) |
280 |
- jpeg? ( virtual/jpeg:0 ) |
281 |
- lapack? ( virtual/lapack:0 ) |
282 |
- perl? ( dev-lang/perl ) |
283 |
- png? ( media-libs/libpng:0= ) |
284 |
- readline? ( sys-libs/readline:0= ) |
285 |
- tiff? ( media-libs/tiff:0= ) |
286 |
- tk? ( dev-lang/tk:0= ) |
287 |
- X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )" |
288 |
- |
289 |
-DEPEND="${CDEPEND} |
290 |
- virtual/pkgconfig |
291 |
- doc? ( |
292 |
- virtual/latex-base |
293 |
- dev-texlive/texlive-fontsrecommended |
294 |
- )" |
295 |
- |
296 |
-RDEPEND="${CDEPEND} |
297 |
- >=sys-libs/zlib-1.2.5.1-r2:0[minizip] |
298 |
- java? ( >=virtual/jre-1.5 )" |
299 |
- |
300 |
-RESTRICT="minimal? ( test )" |
301 |
- |
302 |
-pkg_setup() { |
303 |
- if use openmp; then |
304 |
- if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then |
305 |
- ewarn "OpenMP is not available in your current selected gcc" |
306 |
- die "need openmp capable gcc" |
307 |
- fi |
308 |
- FORTRAN_NEED_OPENMP=1 |
309 |
- fi |
310 |
- fortran-2_pkg_setup |
311 |
- filter-ldflags -Wl,-Bdirect -Bdirect |
312 |
- # avoid using existing R installation |
313 |
- unset R_HOME |
314 |
- # Temporary fix for bug #419761 |
315 |
- if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then |
316 |
- append-flags -fno-ipa-cp-clone |
317 |
- fi |
318 |
-} |
319 |
- |
320 |
-src_prepare() { |
321 |
- epatch \ |
322 |
- "${FILESDIR}"/${PN}-2.11.1-parallel.patch \ |
323 |
- "${FILESDIR}"/${PN}-2.13.1-zlib_header_fix.patch \ |
324 |
- "${FILESDIR}"/${PN}-3.0.0-rmath-shared.patch \ |
325 |
- "${FILESDIR}"/${P}-zlib-1.2.10-backport.patch |
326 |
- |
327 |
- # fix packages.html for doc (gentoo bug #205103) |
328 |
- sed -i \ |
329 |
- -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ |
330 |
- src/library/tools/R/Rd.R || die |
331 |
- |
332 |
- # fix Rscript path when installed (gentoo bug #221061) |
333 |
- sed -i \ |
334 |
- -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EROOT%/}/usr/$(get_libdir)/${PN}\"':" \ |
335 |
- src/unix/Makefile.in || die "sed unix Makefile failed" |
336 |
- |
337 |
- # fix HTML links to manual (gentoo bug #273957) |
338 |
- sed -i \ |
339 |
- -e 's:\.\./manual/:manual/:g' \ |
340 |
- $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" |
341 |
- |
342 |
- use lapack && \ |
343 |
- export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" |
344 |
- |
345 |
- if use X; then |
346 |
- export R_BROWSER="$(type -p xdg-open)" |
347 |
- export R_PDFVIEWER="$(type -p xdg-open)" |
348 |
- fi |
349 |
- use perl && \ |
350 |
- export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" |
351 |
- |
352 |
- # don't search /usr/local |
353 |
- sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die |
354 |
- # Fix for Darwin (OS X) |
355 |
- if use prefix; then |
356 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
357 |
- sed -i \ |
358 |
- -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ |
359 |
- -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ |
360 |
- -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ |
361 |
- -e "/SHLIB_EXT/s/\.so/.dylib/" \ |
362 |
- configure.ac || die |
363 |
- # sort of "undo" 2.14.1-rmath-shared.patch |
364 |
- sed -i \ |
365 |
- -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \ |
366 |
- src/nmath/standalone/Makefile.in || die |
367 |
- else |
368 |
- append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib" |
369 |
- fi |
370 |
- fi |
371 |
- AT_M4DIR=m4 eaclocal |
372 |
- eautoconf |
373 |
-} |
374 |
- |
375 |
-src_configure() { |
376 |
- # --with-system-tre \ |
377 |
- # tre is patched from upstream |
378 |
- econf \ |
379 |
- --enable-byte-compiled-packages \ |
380 |
- --enable-R-shlib \ |
381 |
- --disable-R-framework \ |
382 |
- --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
383 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
384 |
- rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ |
385 |
- $(use_enable java) \ |
386 |
- $(use_enable nls) \ |
387 |
- $(use_enable openmp) \ |
388 |
- $(use_enable profile R-profiling) \ |
389 |
- $(use_enable profile memory-profiling) \ |
390 |
- $(use_enable static-libs static) \ |
391 |
- $(use_enable static-libs R-static-lib) \ |
392 |
- $(use_with cairo) \ |
393 |
- $(use_with icu ICU) \ |
394 |
- $(use_with jpeg jpeglib) \ |
395 |
- $(use_with lapack) \ |
396 |
- $(use_with !minimal recommended-packages) \ |
397 |
- $(use_with png libpng) \ |
398 |
- $(use_with readline) \ |
399 |
- $(use_with tiff libtiff) \ |
400 |
- $(use_with tk tcltk) \ |
401 |
- $(use_with tk tk-config "${EPREFIX}"/usr/lib/tkConfig.sh) \ |
402 |
- $(use_with tk tcl-config "${EPREFIX}"/usr/lib/tclConfig.sh) \ |
403 |
- $(use_with X x) |
404 |
-} |
405 |
- |
406 |
-src_compile() { |
407 |
- export VARTEXFONTS="${T}/fonts" |
408 |
- emake AR="$(tc-getAR)" |
409 |
- emake -C src/nmath/standalone \ |
410 |
- shared $(use static-libs && echo static) AR="$(tc-getAR)" |
411 |
- use doc && emake info pdf |
412 |
-} |
413 |
- |
414 |
-src_install() { |
415 |
- default |
416 |
- emake -j1 -C src/nmath/standalone DESTDIR="${D}" install |
417 |
- |
418 |
- if use doc; then |
419 |
- emake DESTDIR="${D}" install-info install-pdf |
420 |
- dosym ../manual /usr/share/doc/${PF}/html/manual |
421 |
- fi |
422 |
- |
423 |
- cat > 99R <<-EOF |
424 |
- LDPATH=${EROOT%/}/usr/$(get_libdir)/${PN}/lib |
425 |
- R_HOME=${EROOT%/}/usr/$(get_libdir)/${PN} |
426 |
- EOF |
427 |
- doenvd 99R |
428 |
- newbashcomp "${WORKDIR}"/${BCP} ${PN} |
429 |
- # The buildsystem has a different understanding of install_names than |
430 |
- # we require. Since it builds modules like shared objects (wrong), many |
431 |
- # objects (all modules) get an incorrect install_name. Fixing the build |
432 |
- # system here is not really trivial. |
433 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
434 |
- local mod |
435 |
- pushd "${ED}"/usr/lib/R > /dev/null |
436 |
- for mod in $(find . -name "*.dylib") ; do |
437 |
- mod=${mod#./} |
438 |
- install_name_tool -id "${EPREFIX}/usr/lib/R/${mod}" \ |
439 |
- "${mod}" |
440 |
- done |
441 |
- popd > /dev/null |
442 |
- fi |
443 |
- docompress -x /usr/share/doc/${PF}/{BioC_mirrors.csv,CRAN_mirrors.csv,KEYWORDS.db,NEWS.rds} |
444 |
-} |
445 |
- |
446 |
-pkg_postinst() { |
447 |
- if use java; then |
448 |
- einfo "Re-initializing java paths for ${P}" |
449 |
- R CMD javareconf |
450 |
- fi |
451 |
-} |
452 |
|
453 |
diff --git a/dev-lang/R/R-3.5.1.ebuild b/dev-lang/R/R-3.5.1.ebuild |
454 |
deleted file mode 100644 |
455 |
index 6c443c1bd29..00000000000 |
456 |
--- a/dev-lang/R/R-3.5.1.ebuild |
457 |
+++ /dev/null |
458 |
@@ -1,204 +0,0 @@ |
459 |
-# Copyright 1999-2018 Gentoo Authors |
460 |
-# Distributed under the terms of the GNU General Public License v2 |
461 |
- |
462 |
-EAPI=6 |
463 |
- |
464 |
-inherit bash-completion-r1 autotools eutils flag-o-matic fortran-2 multilib versionator toolchain-funcs |
465 |
- |
466 |
-# latest git commit for R bash completion: https://github.com/deepayan/rcompletion |
467 |
-BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6 |
468 |
- |
469 |
-DESCRIPTION="Language and environment for statistical computing and graphics" |
470 |
-HOMEPAGE="http://www.r-project.org/" |
471 |
-SRC_URI=" |
472 |
- mirror://cran/src/base/R-3/${P}.tar.gz |
473 |
- https://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion" |
474 |
- |
475 |
-LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" |
476 |
-SLOT="0" |
477 |
-KEYWORDS="~amd64 ~ia64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" |
478 |
-IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X" |
479 |
-REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )" |
480 |
- |
481 |
-CDEPEND=" |
482 |
- app-arch/bzip2:0= |
483 |
- app-arch/xz-utils:0= |
484 |
- app-text/ghostscript-gpl |
485 |
- >=dev-libs/libpcre-8.35:3= |
486 |
- net-misc/curl |
487 |
- virtual/blas:0 |
488 |
- || ( >=sys-apps/coreutils-8.15 sys-freebsd/freebsd-bin app-misc/realpath ) |
489 |
- cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= ) |
490 |
- icu? ( dev-libs/icu:= ) |
491 |
- jpeg? ( virtual/jpeg:0 ) |
492 |
- lapack? ( virtual/lapack:0 ) |
493 |
- perl? ( dev-lang/perl ) |
494 |
- png? ( media-libs/libpng:0= ) |
495 |
- readline? ( sys-libs/readline:0= ) |
496 |
- tiff? ( media-libs/tiff:0= ) |
497 |
- tk? ( dev-lang/tk:0= ) |
498 |
- X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )" |
499 |
- |
500 |
-DEPEND="${CDEPEND} |
501 |
- virtual/pkgconfig |
502 |
- doc? ( |
503 |
- virtual/latex-base |
504 |
- dev-texlive/texlive-fontsrecommended |
505 |
- )" |
506 |
- |
507 |
-RDEPEND="${CDEPEND} |
508 |
- >=sys-libs/zlib-1.2.5.1-r2:0[minizip] |
509 |
- java? ( >=virtual/jre-1.5 )" |
510 |
- |
511 |
-RESTRICT="minimal? ( test )" |
512 |
- |
513 |
-PATCHES=( |
514 |
- "${FILESDIR}"/${PN}-3.4.1-parallel.patch |
515 |
- "${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch |
516 |
-) |
517 |
- |
518 |
-pkg_pretend() { |
519 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
520 |
-} |
521 |
- |
522 |
-pkg_setup() { |
523 |
- if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
524 |
- if ! tc-check-openmp; then |
525 |
- ewarn "OpenMP is not available in your current selected compiler" |
526 |
- die "need openmp capable compiler" |
527 |
- fi |
528 |
- FORTRAN_NEED_OPENMP=1 |
529 |
- fi |
530 |
- fortran-2_pkg_setup |
531 |
- filter-ldflags -Wl,-Bdirect -Bdirect |
532 |
- # avoid using existing R installation |
533 |
- unset R_HOME |
534 |
- # Temporary fix for bug #419761 |
535 |
- if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then |
536 |
- append-flags -fno-ipa-cp-clone |
537 |
- fi |
538 |
-} |
539 |
- |
540 |
-src_prepare() { |
541 |
- default |
542 |
- |
543 |
- # fix packages.html for doc (gentoo bug #205103) |
544 |
- sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ |
545 |
- -i src/library/tools/R/Rd.R || die |
546 |
- |
547 |
- # fix Rscript path when installed (gentoo bug #221061) |
548 |
- sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EROOT%/}/usr/$(get_libdir)/${PN}\"':" \ |
549 |
- -i src/unix/Makefile.in || die "sed unix Makefile failed" |
550 |
- |
551 |
- # fix HTML links to manual (gentoo bug #273957) |
552 |
- sed -e 's:\.\./manual/:manual/:g' \ |
553 |
- -i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" |
554 |
- |
555 |
- use lapack && \ |
556 |
- export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" |
557 |
- |
558 |
- if use X; then |
559 |
- export R_BROWSER="$(type -p xdg-open)" |
560 |
- export R_PDFVIEWER="$(type -p xdg-open)" |
561 |
- fi |
562 |
- use perl && \ |
563 |
- export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" |
564 |
- |
565 |
- # don't search /usr/local |
566 |
- sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die |
567 |
- # Fix for Darwin (OS X) |
568 |
- if use prefix; then |
569 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
570 |
- sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ |
571 |
- -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ |
572 |
- -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ |
573 |
- -e "/SHLIB_EXT/s/\.so/.dylib/" \ |
574 |
- -i configure.ac || die |
575 |
- # sort of "undo" 2.14.1-rmath-shared.patch |
576 |
- sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \ |
577 |
- -i src/nmath/standalone/Makefile.in || die |
578 |
- else |
579 |
- append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib" |
580 |
- fi |
581 |
- fi |
582 |
- AT_M4DIR=m4 |
583 |
- eautoreconf |
584 |
-} |
585 |
- |
586 |
-src_configure() { |
587 |
- # --with-system-tre \ |
588 |
- # tre is patched from upstream |
589 |
- econf \ |
590 |
- --enable-byte-compiled-packages \ |
591 |
- --enable-R-shlib \ |
592 |
- --disable-R-framework \ |
593 |
- --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
594 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
595 |
- rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ |
596 |
- $(use_enable java) \ |
597 |
- $(use_enable nls) \ |
598 |
- $(use_enable openmp) \ |
599 |
- $(use_enable profile R-profiling) \ |
600 |
- $(use_enable profile memory-profiling) \ |
601 |
- $(use_enable static-libs static) \ |
602 |
- $(use_enable static-libs R-static-lib) \ |
603 |
- $(use_with cairo) \ |
604 |
- $(use_with icu ICU) \ |
605 |
- $(use_with jpeg jpeglib) \ |
606 |
- $(use_with lapack) \ |
607 |
- $(use_with !minimal recommended-packages) \ |
608 |
- $(use_with png libpng) \ |
609 |
- $(use_with readline) \ |
610 |
- $(use_with tiff libtiff) \ |
611 |
- $(use_with tk tcltk) \ |
612 |
- $(use_with tk tk-config "${EPREFIX}"/usr/$(get_libdir)/tkConfig.sh) \ |
613 |
- $(use_with tk tcl-config "${EPREFIX}"/usr/$(get_libdir)/tclConfig.sh) \ |
614 |
- $(use_with X x) |
615 |
-} |
616 |
- |
617 |
-src_compile() { |
618 |
- export VARTEXFONTS="${T}/fonts" |
619 |
- emake AR="$(tc-getAR)" |
620 |
- emake -C src/nmath/standalone \ |
621 |
- shared $(use static-libs && echo static) AR="$(tc-getAR)" |
622 |
- use doc && emake info pdf |
623 |
-} |
624 |
- |
625 |
-src_install() { |
626 |
- default |
627 |
- emake -j1 -C src/nmath/standalone DESTDIR="${D}" install |
628 |
- |
629 |
- if use doc; then |
630 |
- emake DESTDIR="${D}" install-info install-pdf |
631 |
- dosym ../manual /usr/share/doc/${PF}/html/manual |
632 |
- fi |
633 |
- |
634 |
- cat > 99R <<-EOF |
635 |
- LDPATH=${EROOT%/}/usr/$(get_libdir)/${PN}/lib |
636 |
- R_HOME=${EROOT%/}/usr/$(get_libdir)/${PN} |
637 |
- EOF |
638 |
- doenvd 99R |
639 |
- newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN} |
640 |
- # The buildsystem has a different understanding of install_names than |
641 |
- # we require. Since it builds modules like shared objects (wrong), many |
642 |
- # objects (all modules) get an incorrect install_name. Fixing the build |
643 |
- # system here is not really trivial. |
644 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
645 |
- local mod |
646 |
- pushd "${ED}"/usr/$(get_libdir)/R > /dev/null |
647 |
- for mod in $(find . -name "*.dylib") ; do |
648 |
- mod=${mod#./} |
649 |
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \ |
650 |
- "${mod}" |
651 |
- done |
652 |
- popd > /dev/null |
653 |
- fi |
654 |
- docompress -x /usr/share/doc/${PF}/{BioC_mirrors.csv,CRAN_mirrors.csv,KEYWORDS.db,NEWS.rds} |
655 |
-} |
656 |
- |
657 |
-pkg_postinst() { |
658 |
- if use java; then |
659 |
- einfo "Re-initializing java paths for ${P}" |
660 |
- R CMD javareconf |
661 |
- fi |
662 |
-} |