1 |
commit: 92d5e5c89778eb7ce15420c71a3f7abd0bdf6b7e |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 20 11:06:05 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 20 11:06:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d5e5c8 |
7 |
|
8 |
dev-lang/R: Remove old 3.4.1, 3.6.3-r1, 4.0.2 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/765361 |
11 |
Closes: https://bugs.gentoo.org/776781 |
12 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
dev-lang/R/Manifest | 3 - |
16 |
dev-lang/R/R-3.4.1.ebuild | 203 ------------------------------------ |
17 |
dev-lang/R/R-3.6.3-r1.ebuild | 234 ----------------------------------------- |
18 |
dev-lang/R/R-4.0.2.ebuild | 243 ------------------------------------------- |
19 |
4 files changed, 683 deletions(-) |
20 |
|
21 |
diff --git a/dev-lang/R/Manifest b/dev-lang/R/Manifest |
22 |
index 5a48a7b4c96..72da37844ea 100644 |
23 |
--- a/dev-lang/R/Manifest |
24 |
+++ b/dev-lang/R/Manifest |
25 |
@@ -1,6 +1,3 @@ |
26 |
-DIST R-3.4.1.tar.gz 30200109 BLAKE2B 03602e9a48759caee8ce047fa6273df7a54af089de4489e21953c0e3fc7bfdf720d924f1e0167d3dbf65f63ed42ac10dea8b45289b921cda1c0e6d25a0063ebb SHA512 19bd50c87dc001ef947c15c1760f27ac8986ff6b43c6d90d3093ae184e42963027ef06faf31ec57ac9e519af7a35a2f53f8ea23ef75d800ebbd02945cedc4651 |
27 |
-DIST R-3.6.3.tar.gz 33308185 BLAKE2B f82751e21d3b502132f8f27d4fc47a921fb085a50c3da3b45e08fbbdd1ab3d42e89b4fa6653a570c21176d79f492277b1d0b86c3c9f4da1386d8b6e4771d4d2c SHA512 9b1dc78922e431bd1af81e6e560b10ad04d121718f680fed32db735d561fd40ea6028759976722db11559f1a78fe684119b766f0567128cb2ee5003aa87a0931 |
28 |
-DIST R-4.0.2.tar.gz 33191186 BLAKE2B 2d5b99c17a9df48a36871f18701efacfaa1e6bb89c0e5c6516fc20966547f34f9079dc52ab18ac7816e0fed25d6230076246e83dc648501553fa2d0cad67b8e4 SHA512 b7330613ee9795f54cde3dd9f7509be83d9156fb8577c17179727ee01450db27704249f68bd48e0331e2df09c2d9833d8bb019c4f9ce9ba669df74650ff2e842 |
29 |
DIST R-4.0.4.tar.gz 33687611 BLAKE2B 40cdfd98fe6c9193deb729d151631c2b0f935accf5ea6251704b633d2688278af1a5a67317152be023fb4a10315c64e473f58276bb0c3fadb1141c35391ad22e SHA512 811c4407a083eb776f92c3cbacb1dc7eada8890a8c27678c6c82bef9db52b1afaefeb408fbe11e46922740adee498f32e7ddf7451b3ab89cf60773737e47f8be |
30 |
DIST R-4.0.5.tar.gz 32466444 BLAKE2B 5dbbd289f4fd6347b4109eecaf65b50b5793a83edddd2cb391c20473607f136d91a8e9f4ab9e453f6927d2ca9145762920424e3a1dcea89309afde56efd5d32c SHA512 6ff5b0f9cb6b17f66cde1f5585d1b33659dbae8919d34c2e593f68a0bff4d0425aa9704d99284d103702a9cd42f613311f3a87af6b939b1af65dcec80bf2ca8c |
31 |
DIST R-78d6830e28ea90a046da79a9b4f70c39594bb6d6.bash_completion 13596 BLAKE2B 53338e4a1c4f68beb69247216e553dbcac47f660fbf032bfebf7a660e32d2cff5b11ed35411c52de7e1fd6e00bbf5b5ea19369a325fa0a38bd93d63dc3288cbd SHA512 9ccd19bb1b0c18a2f13035ccd6809447429e197e298fb4d1df808ef345d723b42f75a1b91c349f6dbb46e4a82e59ef33e11300c495d79b63d670d0c0f2b16a06 |
32 |
|
33 |
diff --git a/dev-lang/R/R-3.4.1.ebuild b/dev-lang/R/R-3.4.1.ebuild |
34 |
deleted file mode 100644 |
35 |
index 51f38dcc9d6..00000000000 |
36 |
--- a/dev-lang/R/R-3.4.1.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,203 +0,0 @@ |
39 |
-# Copyright 1999-2021 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=6 |
43 |
- |
44 |
-inherit bash-completion-r1 autotools flag-o-matic fortran-2 multilib versionator toolchain-funcs |
45 |
- |
46 |
-# latest git commit for R bash completion: https://github.com/deepayan/rcompletion |
47 |
-BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6 |
48 |
- |
49 |
-DESCRIPTION="Language and environment for statistical computing and graphics" |
50 |
-HOMEPAGE="http://www.r-project.org/" |
51 |
-SRC_URI=" |
52 |
- mirror://cran/src/base/R-3/${P}.tar.gz |
53 |
- https://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion" |
54 |
- |
55 |
-LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" |
56 |
-SLOT="0" |
57 |
-KEYWORDS="amd64 arm64 ~hppa ~ia64 sparc x86 ~amd64-linux ~x86-linux" |
58 |
-IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs tiff tk X" |
59 |
-REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )" |
60 |
- |
61 |
-CDEPEND=" |
62 |
- app-arch/bzip2:0= |
63 |
- app-arch/xz-utils:0= |
64 |
- app-text/ghostscript-gpl |
65 |
- >=dev-libs/libpcre-8.35:3= |
66 |
- net-misc/curl |
67 |
- virtual/blas:0 |
68 |
- || ( >=sys-apps/coreutils-8.15 app-misc/realpath ) |
69 |
- cairo? ( x11-libs/cairo:0=[X] x11-libs/pango:0= ) |
70 |
- icu? ( dev-libs/icu:= ) |
71 |
- jpeg? ( virtual/jpeg:0 ) |
72 |
- lapack? ( virtual/lapack:0 ) |
73 |
- perl? ( dev-lang/perl ) |
74 |
- png? ( media-libs/libpng:0= ) |
75 |
- readline? ( sys-libs/readline:0= ) |
76 |
- tiff? ( media-libs/tiff:0= ) |
77 |
- tk? ( dev-lang/tk:0= ) |
78 |
- X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )" |
79 |
- |
80 |
-DEPEND="${CDEPEND} |
81 |
- virtual/pkgconfig |
82 |
- doc? ( |
83 |
- virtual/latex-base |
84 |
- dev-texlive/texlive-fontsrecommended |
85 |
- )" |
86 |
- |
87 |
-RDEPEND="${CDEPEND} |
88 |
- >=sys-libs/zlib-1.2.5.1-r2:0[minizip] |
89 |
- java? ( >=virtual/jre-1.5 )" |
90 |
- |
91 |
-RESTRICT="minimal? ( test )" |
92 |
- |
93 |
-PATCHES=( |
94 |
- "${FILESDIR}"/${PN}-3.4.1-parallel.patch |
95 |
- "${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch |
96 |
-) |
97 |
- |
98 |
-pkg_pretend() { |
99 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
100 |
-} |
101 |
- |
102 |
-pkg_setup() { |
103 |
- if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
104 |
- if ! tc-check-openmp; then |
105 |
- ewarn "OpenMP is not available in your current selected compiler" |
106 |
- die "need openmp capable compiler" |
107 |
- fi |
108 |
- FORTRAN_NEED_OPENMP=1 |
109 |
- fi |
110 |
- fortran-2_pkg_setup |
111 |
- filter-ldflags -Wl,-Bdirect -Bdirect |
112 |
- # avoid using existing R installation |
113 |
- unset R_HOME |
114 |
- # Temporary fix for bug #419761 |
115 |
- if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then |
116 |
- append-flags -fno-ipa-cp-clone |
117 |
- fi |
118 |
-} |
119 |
- |
120 |
-src_prepare() { |
121 |
- default |
122 |
- |
123 |
- # fix packages.html for doc (gentoo bug #205103) |
124 |
- sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ |
125 |
- -i src/library/tools/R/Rd.R || die |
126 |
- |
127 |
- # fix Rscript path when installed (gentoo bug #221061) |
128 |
- sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EROOT%/}/usr/$(get_libdir)/${PN}\"':" \ |
129 |
- -i src/unix/Makefile.in || die "sed unix Makefile failed" |
130 |
- |
131 |
- # fix HTML links to manual (gentoo bug #273957) |
132 |
- sed -e 's:\.\./manual/:manual/:g' \ |
133 |
- -i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" |
134 |
- |
135 |
- use lapack && \ |
136 |
- export LAPACK_LIBS="$($(tc-getPKG_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 |
- |
145 |
- # don't search /usr/local |
146 |
- sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die |
147 |
- # Fix for Darwin (OS X) |
148 |
- if use prefix; then |
149 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
150 |
- sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ |
151 |
- -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ |
152 |
- -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ |
153 |
- -e "/SHLIB_EXT/s/\.so/.dylib/" \ |
154 |
- -i configure.ac || die |
155 |
- # sort of "undo" 2.14.1-rmath-shared.patch |
156 |
- sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \ |
157 |
- -i src/nmath/standalone/Makefile.in || die |
158 |
- else |
159 |
- append-ldflags -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib" |
160 |
- fi |
161 |
- fi |
162 |
- AT_M4DIR=m4 eaclocal |
163 |
- eautoconf |
164 |
-} |
165 |
- |
166 |
-src_configure() { |
167 |
- # --with-system-tre \ |
168 |
- # tre is patched from upstream |
169 |
- econf \ |
170 |
- --enable-byte-compiled-packages \ |
171 |
- --enable-R-shlib \ |
172 |
- --disable-R-framework \ |
173 |
- --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
174 |
- rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ |
175 |
- $(use_enable java) \ |
176 |
- $(use_enable nls) \ |
177 |
- $(use_enable openmp) \ |
178 |
- $(use_enable profile R-profiling) \ |
179 |
- $(use_enable profile memory-profiling) \ |
180 |
- $(use_enable static-libs static) \ |
181 |
- $(use_enable static-libs R-static-lib) \ |
182 |
- $(use_with cairo) \ |
183 |
- $(use_with icu ICU) \ |
184 |
- $(use_with jpeg jpeglib) \ |
185 |
- $(use_with lapack) \ |
186 |
- $(use_with !minimal recommended-packages) \ |
187 |
- $(use_with png libpng) \ |
188 |
- $(use_with readline) \ |
189 |
- $(use_with tiff libtiff) \ |
190 |
- $(use_with tk tcltk) \ |
191 |
- $(use_with tk tk-config "${EPREFIX}"/usr/$(get_libdir)/tkConfig.sh) \ |
192 |
- $(use_with tk tcl-config "${EPREFIX}"/usr/$(get_libdir)/tclConfig.sh) \ |
193 |
- $(use_with X x) |
194 |
-} |
195 |
- |
196 |
-src_compile() { |
197 |
- export VARTEXFONTS="${T}/fonts" |
198 |
- emake AR="$(tc-getAR)" |
199 |
- emake -C src/nmath/standalone \ |
200 |
- shared $(use static-libs && echo static) AR="$(tc-getAR)" |
201 |
- use doc && emake info pdf |
202 |
-} |
203 |
- |
204 |
-src_install() { |
205 |
- default |
206 |
- emake -j1 -C src/nmath/standalone DESTDIR="${D}" install |
207 |
- |
208 |
- if use doc; then |
209 |
- emake DESTDIR="${D}" install-info install-pdf |
210 |
- dosym ../manual /usr/share/doc/${PF}/html/manual |
211 |
- fi |
212 |
- |
213 |
- cat > 99R <<-EOF |
214 |
- LDPATH=${EROOT%/}/usr/$(get_libdir)/${PN}/lib |
215 |
- R_HOME=${EROOT%/}/usr/$(get_libdir)/${PN} |
216 |
- EOF |
217 |
- doenvd 99R |
218 |
- newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN} |
219 |
- # The buildsystem has a different understanding of install_names than |
220 |
- # we require. Since it builds modules like shared objects (wrong), many |
221 |
- # objects (all modules) get an incorrect install_name. Fixing the build |
222 |
- # system here is not really trivial. |
223 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
224 |
- local mod |
225 |
- pushd "${ED}"/usr/$(get_libdir)/R > /dev/null |
226 |
- for mod in $(find . -name "*.dylib") ; do |
227 |
- mod=${mod#./} |
228 |
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \ |
229 |
- "${mod}" |
230 |
- done |
231 |
- popd > /dev/null |
232 |
- fi |
233 |
- docompress -x /usr/share/doc/${PF}/{BioC_mirrors.csv,CRAN_mirrors.csv,KEYWORDS.db,NEWS.rds} |
234 |
-} |
235 |
- |
236 |
-pkg_postinst() { |
237 |
- if use java; then |
238 |
- einfo "Re-initializing java paths for ${P}" |
239 |
- R CMD javareconf |
240 |
- fi |
241 |
-} |
242 |
|
243 |
diff --git a/dev-lang/R/R-3.6.3-r1.ebuild b/dev-lang/R/R-3.6.3-r1.ebuild |
244 |
deleted file mode 100644 |
245 |
index ac47502bca4..00000000000 |
246 |
--- a/dev-lang/R/R-3.6.3-r1.ebuild |
247 |
+++ /dev/null |
248 |
@@ -1,234 +0,0 @@ |
249 |
-# Copyright 1999-2021 Gentoo Authors |
250 |
-# Distributed under the terms of the GNU General Public License v2 |
251 |
- |
252 |
-EAPI=7 |
253 |
- |
254 |
-inherit bash-completion-r1 autotools flag-o-matic fortran-2 multilib toolchain-funcs |
255 |
- |
256 |
-# latest git commit for R bash completion: https://github.com/deepayan/rcompletion |
257 |
-BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6 |
258 |
- |
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://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion" |
264 |
- |
265 |
-LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" |
266 |
-SLOT="0" |
267 |
-KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
268 |
-IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs test tiff tk X" |
269 |
-REQUIRED_USE="png? ( || ( cairo X ) ) jpeg? ( || ( cairo X ) ) tiff? ( || ( cairo X ) )" |
270 |
- |
271 |
-# At least one package installation in the test suite requires TeX, |
272 |
-# and will fail without it (bug #718056). |
273 |
-BDEPEND="virtual/pkgconfig |
274 |
- doc? ( |
275 |
- virtual/latex-base |
276 |
- dev-texlive/texlive-fontsrecommended |
277 |
- ) |
278 |
- test? ( virtual/latex-base )" |
279 |
-DEPEND=" |
280 |
- app-arch/bzip2:0= |
281 |
- app-arch/xz-utils:0= |
282 |
- app-text/ghostscript-gpl |
283 |
- dev-libs/libpcre:3= |
284 |
- net-libs/libtirpc |
285 |
- net-misc/curl |
286 |
- virtual/blas:0 |
287 |
- || ( sys-apps/coreutils app-misc/realpath ) |
288 |
- cairo? ( x11-libs/cairo:0=[X=] x11-libs/pango:0= ) |
289 |
- icu? ( dev-libs/icu:= ) |
290 |
- jpeg? ( virtual/jpeg:0 ) |
291 |
- lapack? ( virtual/lapack:0 ) |
292 |
- perl? ( dev-lang/perl ) |
293 |
- png? ( media-libs/libpng:0= ) |
294 |
- readline? ( sys-libs/readline:0= ) |
295 |
- tiff? ( media-libs/tiff:0= ) |
296 |
- tk? ( dev-lang/tk:0= ) |
297 |
- X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )" |
298 |
- |
299 |
-RDEPEND="${DEPEND} |
300 |
- sys-libs/zlib:0[minizip] |
301 |
- java? ( >=virtual/jre-1.5 )" |
302 |
- |
303 |
-RESTRICT="minimal? ( test ) |
304 |
- !test? ( test )" |
305 |
- |
306 |
-PATCHES=( |
307 |
- "${FILESDIR}"/${PN}-3.4.1-parallel.patch |
308 |
- "${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch |
309 |
- "${FILESDIR}"/${PN}-3.6.2-no-LDFLAGS-in-libR-pkg-config.patch |
310 |
- "${FILESDIR}"/${PN}-3.6.2-no-gzip-doc.patch |
311 |
-) |
312 |
- |
313 |
-pkg_pretend() { |
314 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
315 |
-} |
316 |
- |
317 |
-pkg_setup() { |
318 |
- if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
319 |
- FORTRAN_NEED_OPENMP=1 |
320 |
- fi |
321 |
- fortran-2_pkg_setup |
322 |
- filter-ldflags -Wl,-Bdirect -Bdirect |
323 |
- # avoid using existing R installation |
324 |
- unset R_HOME |
325 |
- # Temporary fix for bug #419761 |
326 |
- if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then |
327 |
- append-flags -fno-ipa-cp-clone |
328 |
- fi |
329 |
-} |
330 |
- |
331 |
-src_prepare() { |
332 |
- default |
333 |
- |
334 |
- # fix packages.html for doc (gentoo bug #205103) |
335 |
- sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ |
336 |
- -i src/library/tools/R/Rd.R || die |
337 |
- |
338 |
- # fix Rscript path when installed (gentoo bug #221061) |
339 |
- sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EROOT}/usr/$(get_libdir)/${PN}\"':" \ |
340 |
- -i src/unix/Makefile.in || die "sed unix Makefile failed" |
341 |
- |
342 |
- # fix HTML links to manual (gentoo bug #273957) |
343 |
- sed -e 's:\.\./manual/:manual/:g' \ |
344 |
- -i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" |
345 |
- |
346 |
- use lapack && \ |
347 |
- export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" |
348 |
- |
349 |
- if use X; then |
350 |
- export R_BROWSER="$(type -p xdg-open)" |
351 |
- export R_PDFVIEWER="$(type -p xdg-open)" |
352 |
- fi |
353 |
- use perl && \ |
354 |
- export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" |
355 |
- |
356 |
- # don't search /usr/local |
357 |
- sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die |
358 |
- # Fix for Darwin (OS X) |
359 |
- if use prefix; then |
360 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
361 |
- sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ |
362 |
- -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ |
363 |
- -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ |
364 |
- -e "/SHLIB_EXT/s/\.so/.dylib/" \ |
365 |
- -i configure.ac || die |
366 |
- # sort of "undo" 2.14.1-rmath-shared.patch |
367 |
- sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT}/usr/$(get_libdir)/libRmath.dylib:" \ |
368 |
- -i src/nmath/standalone/Makefile.in || die |
369 |
- else |
370 |
- append-ldflags -Wl,-rpath="${EROOT}/usr/$(get_libdir)/R/lib" |
371 |
- fi |
372 |
- fi |
373 |
- AT_M4DIR=m4 |
374 |
- eautoreconf |
375 |
-} |
376 |
- |
377 |
-src_configure() { |
378 |
- # --with-system-tre \ |
379 |
- # tre is patched from upstream |
380 |
- econf \ |
381 |
- --enable-byte-compiled-packages \ |
382 |
- --enable-R-shlib \ |
383 |
- --disable-R-framework \ |
384 |
- --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
385 |
- rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ |
386 |
- $(use_enable java) \ |
387 |
- $(use_enable nls) \ |
388 |
- $(use_enable openmp) \ |
389 |
- $(use_enable profile R-profiling) \ |
390 |
- $(use_enable profile memory-profiling) \ |
391 |
- $(use_enable static-libs static) \ |
392 |
- $(use_enable static-libs R-static-lib) \ |
393 |
- $(use_with cairo) \ |
394 |
- $(use_with icu ICU) \ |
395 |
- $(use_with jpeg jpeglib) \ |
396 |
- $(use_with lapack) \ |
397 |
- $(use_with !minimal recommended-packages) \ |
398 |
- $(use_with png libpng) \ |
399 |
- $(use_with readline) \ |
400 |
- $(use_with tiff libtiff) \ |
401 |
- $(use_with tk tcltk) \ |
402 |
- $(use_with tk tk-config "${EPREFIX}"/usr/$(get_libdir)/tkConfig.sh) \ |
403 |
- $(use_with tk tcl-config "${EPREFIX}"/usr/$(get_libdir)/tclConfig.sh) \ |
404 |
- $(use_with X x) |
405 |
-} |
406 |
- |
407 |
-src_compile() { |
408 |
- export VARTEXFONTS="${T}/fonts" |
409 |
- emake AR="$(tc-getAR)" |
410 |
- emake -C src/nmath/standalone \ |
411 |
- shared $(use static-libs && echo static) AR="$(tc-getAR)" |
412 |
- use doc && emake info pdf |
413 |
-} |
414 |
- |
415 |
-src_install() { |
416 |
- default |
417 |
- emake -j1 -C src/nmath/standalone DESTDIR="${D}" install |
418 |
- |
419 |
- if use doc; then |
420 |
- emake DESTDIR="${D}" install-info install-pdf |
421 |
- dosym ../manual /usr/share/doc/${PF}/html/manual |
422 |
- fi |
423 |
- |
424 |
- cat > 99R <<-EOF |
425 |
- LDPATH=${EROOT}/usr/$(get_libdir)/${PN}/lib |
426 |
- R_HOME=${EROOT}/usr/$(get_libdir)/${PN} |
427 |
- EOF |
428 |
- doenvd 99R |
429 |
- newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN} |
430 |
- # The buildsystem has a different understanding of install_names than |
431 |
- # we require. Since it builds modules like shared objects (wrong), many |
432 |
- # objects (all modules) get an incorrect install_name. Fixing the build |
433 |
- # system here is not really trivial. |
434 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
435 |
- local mod |
436 |
- pushd "${ED}"/usr/$(get_libdir)/R > /dev/null |
437 |
- for mod in $(find . -name "*.dylib") ; do |
438 |
- mod=${mod#./} |
439 |
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \ |
440 |
- "${mod}" |
441 |
- done |
442 |
- popd > /dev/null |
443 |
- fi |
444 |
- |
445 |
- # Users are encouraged to access some of the the R documentation |
446 |
- # interactively, through functions like "contributors()" that |
447 |
- # tries to open the "AUTHORS" file. Other files can be accessed |
448 |
- # by name with RShowDoc(), and the documentation for e.g. license() |
449 |
- # and RShowDoc() suggests a few of these names. Here we try to |
450 |
- # collect as many names as possible that a user might actually |
451 |
- # try to view through R, because if we don't decompress them, |
452 |
- # then R doesn't know what to do with 'em. Bug #556706. |
453 |
- INTERACTIVE_DOCS=( |
454 |
- AUTHORS |
455 |
- COPYING |
456 |
- FAQ |
457 |
- NEWS |
458 |
- THANKS |
459 |
- ) |
460 |
- |
461 |
- # Other data sources that are shipped as "documentation," but which |
462 |
- # need to be accessible via their original unmolested filenames. |
463 |
- INTERACTIVE_DATA=( |
464 |
- BioC_mirrors.csv |
465 |
- CRAN_mirrors.csv |
466 |
- KEYWORDS.db |
467 |
- NEWS.rds |
468 |
- ) |
469 |
- |
470 |
- NOCOMPRESS_DOCS=( "${INTERACTIVE_DOCS[@]}" "${INTERACTIVE_DATA[@]}" ) |
471 |
- |
472 |
- for f in "${NOCOMPRESS_DOCS[@]}"; do |
473 |
- docompress -x "/usr/share/doc/${PF}/${f}" |
474 |
- done |
475 |
-} |
476 |
- |
477 |
-pkg_postinst() { |
478 |
- if use java; then |
479 |
- einfo "Re-initializing java paths for ${P}" |
480 |
- R CMD javareconf |
481 |
- fi |
482 |
-} |
483 |
|
484 |
diff --git a/dev-lang/R/R-4.0.2.ebuild b/dev-lang/R/R-4.0.2.ebuild |
485 |
deleted file mode 100644 |
486 |
index 15faae53360..00000000000 |
487 |
--- a/dev-lang/R/R-4.0.2.ebuild |
488 |
+++ /dev/null |
489 |
@@ -1,243 +0,0 @@ |
490 |
-# Copyright 1999-2021 Gentoo Authors |
491 |
-# Distributed under the terms of the GNU General Public License v2 |
492 |
- |
493 |
-EAPI=7 |
494 |
- |
495 |
-inherit bash-completion-r1 autotools flag-o-matic fortran-2 multilib toolchain-funcs |
496 |
- |
497 |
-# latest git commit for R bash completion: https://github.com/deepayan/rcompletion |
498 |
-BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6 |
499 |
- |
500 |
-DESCRIPTION="Language and environment for statistical computing and graphics" |
501 |
-HOMEPAGE="http://www.r-project.org/" |
502 |
-SRC_URI=" |
503 |
- mirror://cran/src/base/R-4/${P}.tar.gz |
504 |
- https://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion" |
505 |
- |
506 |
-LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" |
507 |
-SLOT="0" |
508 |
-KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
509 |
-IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs test tiff tk X" |
510 |
- |
511 |
-# One test required profiling in v4.0.2, check the upstream bug: |
512 |
-# |
513 |
-# https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17836 |
514 |
-# |
515 |
-REQUIRED_USE="png? ( || ( cairo X ) ) |
516 |
- jpeg? ( || ( cairo X ) ) |
517 |
- tiff? ( || ( cairo X ) ) |
518 |
- test? ( profile ) |
519 |
-" |
520 |
- |
521 |
-# At least one package installation in the test suite requires TeX, |
522 |
-# and will fail without it (bug #718056). |
523 |
-BDEPEND="virtual/pkgconfig |
524 |
- doc? ( |
525 |
- virtual/latex-base |
526 |
- dev-texlive/texlive-fontsrecommended |
527 |
- ) |
528 |
- test? ( virtual/latex-base )" |
529 |
-DEPEND=" |
530 |
- app-arch/bzip2:0= |
531 |
- app-arch/xz-utils:0= |
532 |
- app-text/ghostscript-gpl |
533 |
- dev-libs/libpcre2:= |
534 |
- net-libs/libtirpc |
535 |
- net-misc/curl |
536 |
- virtual/blas:0 |
537 |
- || ( sys-apps/coreutils app-misc/realpath ) |
538 |
- cairo? ( x11-libs/cairo:0=[X=] x11-libs/pango:0= ) |
539 |
- icu? ( dev-libs/icu:= ) |
540 |
- jpeg? ( virtual/jpeg:0 ) |
541 |
- lapack? ( virtual/lapack:0 ) |
542 |
- perl? ( dev-lang/perl ) |
543 |
- png? ( media-libs/libpng:0= ) |
544 |
- readline? ( sys-libs/readline:0= ) |
545 |
- tiff? ( media-libs/tiff:0= ) |
546 |
- tk? ( dev-lang/tk:0= ) |
547 |
- X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )" |
548 |
- |
549 |
-RDEPEND="${DEPEND} |
550 |
- sys-libs/zlib:0[minizip] |
551 |
- java? ( >=virtual/jre-1.5 )" |
552 |
- |
553 |
-RESTRICT="minimal? ( test ) |
554 |
- !test? ( test )" |
555 |
- |
556 |
-PATCHES=( |
557 |
- "${FILESDIR}"/${PN}-3.4.1-parallel.patch |
558 |
- "${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch |
559 |
- "${FILESDIR}"/${PN}-3.6.2-no-LDFLAGS-in-libR-pkg-config.patch |
560 |
- "${FILESDIR}"/${PN}-3.6.2-no-gzip-doc.patch |
561 |
-) |
562 |
- |
563 |
-pkg_pretend() { |
564 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
565 |
-} |
566 |
- |
567 |
-pkg_setup() { |
568 |
- if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
569 |
- FORTRAN_NEED_OPENMP=1 |
570 |
- fi |
571 |
- fortran-2_pkg_setup |
572 |
- filter-ldflags -Wl,-Bdirect -Bdirect |
573 |
- # avoid using existing R installation |
574 |
- unset R_HOME |
575 |
- # Temporary fix for bug #419761 |
576 |
- if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then |
577 |
- append-flags -fno-ipa-cp-clone |
578 |
- fi |
579 |
-} |
580 |
- |
581 |
-src_prepare() { |
582 |
- default |
583 |
- |
584 |
- # fix packages.html for doc (gentoo bug #205103) |
585 |
- sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \ |
586 |
- -i src/library/tools/R/Rd.R || die |
587 |
- |
588 |
- # fix Rscript path when installed (gentoo bug #221061) |
589 |
- sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EROOT}/usr/$(get_libdir)/${PN}\"':" \ |
590 |
- -i src/unix/Makefile.in || die "sed unix Makefile failed" |
591 |
- |
592 |
- # fix HTML links to manual (gentoo bug #273957) |
593 |
- sed -e 's:\.\./manual/:manual/:g' \ |
594 |
- -i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" |
595 |
- |
596 |
- use lapack && \ |
597 |
- export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" |
598 |
- |
599 |
- if use X; then |
600 |
- export R_BROWSER="$(type -p xdg-open)" |
601 |
- export R_PDFVIEWER="$(type -p xdg-open)" |
602 |
- fi |
603 |
- use perl && \ |
604 |
- export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" |
605 |
- |
606 |
- # don't search /usr/local |
607 |
- sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die |
608 |
- # Fix for Darwin (OS X) |
609 |
- if use prefix; then |
610 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
611 |
- sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \ |
612 |
- -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \ |
613 |
- -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \ |
614 |
- -e "/SHLIB_EXT/s/\.so/.dylib/" \ |
615 |
- -i configure.ac || die |
616 |
- # sort of "undo" 2.14.1-rmath-shared.patch |
617 |
- sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT}/usr/$(get_libdir)/libRmath.dylib:" \ |
618 |
- -i src/nmath/standalone/Makefile.in || die |
619 |
- else |
620 |
- append-ldflags -Wl,-rpath="${EROOT}/usr/$(get_libdir)/R/lib" |
621 |
- fi |
622 |
- fi |
623 |
- AT_M4DIR=m4 |
624 |
- eautoreconf |
625 |
-} |
626 |
- |
627 |
-src_configure() { |
628 |
- # --with-system-tre \ |
629 |
- # tre is patched from upstream |
630 |
- econf \ |
631 |
- --enable-byte-compiled-packages \ |
632 |
- --enable-R-shlib \ |
633 |
- --disable-R-framework \ |
634 |
- --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ |
635 |
- rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ |
636 |
- $(use_enable java) \ |
637 |
- $(use_enable nls) \ |
638 |
- $(use_enable openmp) \ |
639 |
- $(use_enable profile R-profiling) \ |
640 |
- $(use_enable profile memory-profiling) \ |
641 |
- $(use_enable static-libs static) \ |
642 |
- $(use_enable static-libs R-static-lib) \ |
643 |
- $(use_with cairo) \ |
644 |
- $(use_with icu ICU) \ |
645 |
- $(use_with jpeg jpeglib) \ |
646 |
- $(use_with lapack) \ |
647 |
- $(use_with !minimal recommended-packages) \ |
648 |
- $(use_with png libpng) \ |
649 |
- $(use_with readline) \ |
650 |
- $(use_with tiff libtiff) \ |
651 |
- $(use_with tk tcltk) \ |
652 |
- $(use_with tk tk-config "${EPREFIX}"/usr/$(get_libdir)/tkConfig.sh) \ |
653 |
- $(use_with tk tcl-config "${EPREFIX}"/usr/$(get_libdir)/tclConfig.sh) \ |
654 |
- $(use_with X x) |
655 |
-} |
656 |
- |
657 |
-src_compile() { |
658 |
- export VARTEXFONTS="${T}/fonts" |
659 |
- emake AR="$(tc-getAR)" |
660 |
- emake -C src/nmath/standalone \ |
661 |
- shared $(use static-libs && echo static) AR="$(tc-getAR)" |
662 |
- use doc && emake info pdf |
663 |
-} |
664 |
- |
665 |
-src_install() { |
666 |
- default |
667 |
- emake -j1 -C src/nmath/standalone DESTDIR="${D}" install |
668 |
- |
669 |
- if use doc; then |
670 |
- emake DESTDIR="${D}" install-info install-pdf |
671 |
- dosym ../manual /usr/share/doc/${PF}/html/manual |
672 |
- fi |
673 |
- |
674 |
- cat > 99R <<-EOF |
675 |
- LDPATH=${EROOT}/usr/$(get_libdir)/${PN}/lib |
676 |
- R_HOME=${EROOT}/usr/$(get_libdir)/${PN} |
677 |
- EOF |
678 |
- doenvd 99R |
679 |
- newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN} |
680 |
- # The buildsystem has a different understanding of install_names than |
681 |
- # we require. Since it builds modules like shared objects (wrong), many |
682 |
- # objects (all modules) get an incorrect install_name. Fixing the build |
683 |
- # system here is not really trivial. |
684 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
685 |
- local mod |
686 |
- pushd "${ED}"/usr/$(get_libdir)/R > /dev/null |
687 |
- for mod in $(find . -name "*.dylib") ; do |
688 |
- mod=${mod#./} |
689 |
- install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \ |
690 |
- "${mod}" |
691 |
- done |
692 |
- popd > /dev/null |
693 |
- fi |
694 |
- |
695 |
- # Users are encouraged to access some of the the R documentation |
696 |
- # interactively, through functions like "contributors()" that |
697 |
- # tries to open the "AUTHORS" file. Other files can be accessed |
698 |
- # by name with RShowDoc(), and the documentation for e.g. license() |
699 |
- # and RShowDoc() suggests a few of these names. Here we try to |
700 |
- # collect as many names as possible that a user might actually |
701 |
- # try to view through R, because if we don't decompress them, |
702 |
- # then R doesn't know what to do with 'em. Bug #556706. |
703 |
- INTERACTIVE_DOCS=( |
704 |
- AUTHORS |
705 |
- COPYING |
706 |
- FAQ |
707 |
- NEWS |
708 |
- THANKS |
709 |
- ) |
710 |
- |
711 |
- # Other data sources that are shipped as "documentation," but which |
712 |
- # need to be accessible via their original unmolested filenames. |
713 |
- INTERACTIVE_DATA=( |
714 |
- BioC_mirrors.csv |
715 |
- CRAN_mirrors.csv |
716 |
- KEYWORDS.db |
717 |
- NEWS.rds |
718 |
- ) |
719 |
- |
720 |
- NOCOMPRESS_DOCS=( "${INTERACTIVE_DOCS[@]}" "${INTERACTIVE_DATA[@]}" ) |
721 |
- |
722 |
- for f in "${NOCOMPRESS_DOCS[@]}"; do |
723 |
- docompress -x "/usr/share/doc/${PF}/${f}" |
724 |
- done |
725 |
-} |
726 |
- |
727 |
-pkg_postinst() { |
728 |
- if use java; then |
729 |
- einfo "Re-initializing java paths for ${P}" |
730 |
- R CMD javareconf |
731 |
- fi |
732 |
-} |