Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/R/
Date: Sat, 23 Oct 2021 14:25:00
Message-Id: 1634999081.468924259258c048b50e5cf6f258d7985a78275e.soap@gentoo
1 commit: 468924259258c048b50e5cf6f258d7985a78275e
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Sat Oct 23 14:24:41 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 23 14:24:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46892425
7
8 dev-lang/R: remove 4.0.4
9
10 Closes: https://github.com/gentoo/gentoo/pull/22680
11 Closes: https://bugs.gentoo.org/801145
12 Package-Manager: Portage-3.0.20, Repoman-3.0.3
13 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 dev-lang/R/Manifest | 1 -
17 dev-lang/R/R-4.0.4.ebuild | 243 ----------------------------------------------
18 2 files changed, 244 deletions(-)
19
20 diff --git a/dev-lang/R/Manifest b/dev-lang/R/Manifest
21 index e217fbc0125..756a8d080ef 100644
22 --- a/dev-lang/R/Manifest
23 +++ b/dev-lang/R/Manifest
24 @@ -1,4 +1,3 @@
25 -DIST R-4.0.4.tar.gz 33687611 BLAKE2B 40cdfd98fe6c9193deb729d151631c2b0f935accf5ea6251704b633d2688278af1a5a67317152be023fb4a10315c64e473f58276bb0c3fadb1141c35391ad22e SHA512 811c4407a083eb776f92c3cbacb1dc7eada8890a8c27678c6c82bef9db52b1afaefeb408fbe11e46922740adee498f32e7ddf7451b3ab89cf60773737e47f8be
26 DIST R-4.0.5.tar.gz 32466444 BLAKE2B 5dbbd289f4fd6347b4109eecaf65b50b5793a83edddd2cb391c20473607f136d91a8e9f4ab9e453f6927d2ca9145762920424e3a1dcea89309afde56efd5d32c SHA512 6ff5b0f9cb6b17f66cde1f5585d1b33659dbae8919d34c2e593f68a0bff4d0425aa9704d99284d103702a9cd42f613311f3a87af6b939b1af65dcec80bf2ca8c
27 DIST R-4.1.0.tar.gz 33714683 BLAKE2B 22ba966b5a29f153f3ce6cbc467e815c397e7c6aade0db62c7d2ae044056d9227da4dcb8fbf33e661548f4f434c328415e297c6b07b3932ef3f47358c2543f42 SHA512 41519bf06a1ebc2bb582e9a7c35d0e82e213312dec8147861a7f9b28ee750cd40dfbf02737602d05698641fcea6182b0da8131e83edacc358e98eca0a393b729
28 DIST R-78d6830e28ea90a046da79a9b4f70c39594bb6d6.bash_completion 13596 BLAKE2B 53338e4a1c4f68beb69247216e553dbcac47f660fbf032bfebf7a660e32d2cff5b11ed35411c52de7e1fd6e00bbf5b5ea19369a325fa0a38bd93d63dc3288cbd SHA512 9ccd19bb1b0c18a2f13035ccd6809447429e197e298fb4d1df808ef345d723b42f75a1b91c349f6dbb46e4a82e59ef33e11300c495d79b63d670d0c0f2b16a06
29
30 diff --git a/dev-lang/R/R-4.0.4.ebuild b/dev-lang/R/R-4.0.4.ebuild
31 deleted file mode 100644
32 index e85bf329f62..00000000000
33 --- a/dev-lang/R/R-4.0.4.ebuild
34 +++ /dev/null
35 @@ -1,243 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -inherit bash-completion-r1 autotools flag-o-matic fortran-2 toolchain-funcs
42 -
43 -# latest git commit for R bash completion: https://github.com/deepayan/rcompletion
44 -BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6
45 -
46 -DESCRIPTION="Language and environment for statistical computing and graphics"
47 -HOMEPAGE="http://www.r-project.org/"
48 -SRC_URI="
49 - mirror://cran/src/base/R-4/${P}.tar.gz
50 - https://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion"
51 -
52 -LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
53 -SLOT="0"
54 -KEYWORDS="amd64 arm64 ~hppa ~ia64 sparc x86 ~amd64-linux ~x86-linux"
55 -IUSE="cairo doc icu java jpeg lapack minimal nls openmp perl png prefix profile readline static-libs test tiff tk X"
56 -
57 -# One test required profiling in v4.0.2, check the upstream bug:
58 -#
59 -# https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17836
60 -#
61 -REQUIRED_USE="png? ( || ( cairo X ) )
62 - jpeg? ( || ( cairo X ) )
63 - tiff? ( || ( cairo X ) )
64 - test? ( profile )
65 -"
66 -
67 -# At least one package installation in the test suite requires TeX,
68 -# and will fail without it (bug #718056).
69 -BDEPEND="virtual/pkgconfig
70 - doc? (
71 - virtual/latex-base
72 - dev-texlive/texlive-fontsrecommended
73 - )
74 - test? ( virtual/latex-base )"
75 -DEPEND="
76 - app-arch/bzip2:0=
77 - app-arch/xz-utils:0=
78 - app-text/ghostscript-gpl
79 - dev-libs/libpcre2:=
80 - net-libs/libtirpc
81 - net-misc/curl
82 - virtual/blas:0
83 - || ( sys-apps/coreutils app-misc/realpath )
84 - cairo? ( x11-libs/cairo:0=[X=] x11-libs/pango:0= )
85 - icu? ( dev-libs/icu:= )
86 - jpeg? ( virtual/jpeg:0 )
87 - lapack? ( virtual/lapack:0 )
88 - perl? ( dev-lang/perl )
89 - png? ( media-libs/libpng:0= )
90 - readline? ( sys-libs/readline:0= )
91 - tiff? ( media-libs/tiff:0= )
92 - tk? ( dev-lang/tk:0= )
93 - X? ( x11-libs/libXmu:0= x11-misc/xdg-utils )"
94 -
95 -RDEPEND="${DEPEND}
96 - sys-libs/zlib:0[minizip]
97 - java? ( >=virtual/jre-1.5 )"
98 -
99 -RESTRICT="minimal? ( test )
100 - !test? ( test )"
101 -
102 -PATCHES=(
103 - "${FILESDIR}"/${PN}-3.4.1-parallel.patch
104 - "${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch
105 - "${FILESDIR}"/${PN}-3.6.2-no-LDFLAGS-in-libR-pkg-config.patch
106 - "${FILESDIR}"/${PN}-3.6.2-no-gzip-doc.patch
107 -)
108 -
109 -pkg_pretend() {
110 - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
111 -}
112 -
113 -pkg_setup() {
114 - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
115 - FORTRAN_NEED_OPENMP=1
116 - fi
117 - fortran-2_pkg_setup
118 - filter-ldflags -Wl,-Bdirect -Bdirect
119 - # avoid using existing R installation
120 - unset R_HOME
121 - # Temporary fix for bug #419761
122 - if [[ ($(tc-getCC) == *gcc) && ($(gcc-version) == 4.7) ]]; then
123 - append-flags -fno-ipa-cp-clone
124 - fi
125 -}
126 -
127 -src_prepare() {
128 - default
129 -
130 - # fix packages.html for doc (gentoo bug #205103)
131 - sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
132 - -i src/library/tools/R/Rd.R || die
133 -
134 - # fix Rscript path when installed (gentoo bug #221061)
135 - sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EROOT}/usr/$(get_libdir)/${PN}\"':" \
136 - -i src/unix/Makefile.in || die "sed unix Makefile failed"
137 -
138 - # fix HTML links to manual (gentoo bug #273957)
139 - sed -e 's:\.\./manual/:manual/:g' \
140 - -i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
141 -
142 - use lapack && \
143 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
144 -
145 - if use X; then
146 - export R_BROWSER="$(type -p xdg-open)"
147 - export R_PDFVIEWER="$(type -p xdg-open)"
148 - fi
149 - use perl && \
150 - export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
151 -
152 - # don't search /usr/local
153 - sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
154 - # Fix for Darwin (OS X)
155 - if use prefix; then
156 - if [[ ${CHOST} == *-darwin* ]] ; then
157 - sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
158 - -e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
159 - -e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
160 - -e "/SHLIB_EXT/s/\.so/.dylib/" \
161 - -i configure.ac || die
162 - # sort of "undo" 2.14.1-rmath-shared.patch
163 - sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EROOT}/usr/$(get_libdir)/libRmath.dylib:" \
164 - -i src/nmath/standalone/Makefile.in || die
165 - else
166 - append-ldflags -Wl,-rpath="${EROOT}/usr/$(get_libdir)/R/lib"
167 - fi
168 - fi
169 - AT_M4DIR=m4
170 - eautoreconf
171 -}
172 -
173 -src_configure() {
174 - # --with-system-tre \
175 - # tre is patched from upstream
176 - econf \
177 - --enable-byte-compiled-packages \
178 - --enable-R-shlib \
179 - --disable-R-framework \
180 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
181 - rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
182 - $(use_enable java) \
183 - $(use_enable nls) \
184 - $(use_enable openmp) \
185 - $(use_enable profile R-profiling) \
186 - $(use_enable profile memory-profiling) \
187 - $(use_enable static-libs static) \
188 - $(use_enable static-libs R-static-lib) \
189 - $(use_with cairo) \
190 - $(use_with icu ICU) \
191 - $(use_with jpeg jpeglib) \
192 - $(use_with lapack) \
193 - $(use_with !minimal recommended-packages) \
194 - $(use_with png libpng) \
195 - $(use_with readline) \
196 - $(use_with tiff libtiff) \
197 - $(use_with tk tcltk) \
198 - $(use_with tk tk-config "${EPREFIX}"/usr/$(get_libdir)/tkConfig.sh) \
199 - $(use_with tk tcl-config "${EPREFIX}"/usr/$(get_libdir)/tclConfig.sh) \
200 - $(use_with X x)
201 -}
202 -
203 -src_compile() {
204 - export VARTEXFONTS="${T}/fonts"
205 - emake AR="$(tc-getAR)"
206 - emake -C src/nmath/standalone \
207 - shared $(use static-libs && echo static) AR="$(tc-getAR)"
208 - use doc && emake info pdf
209 -}
210 -
211 -src_install() {
212 - default
213 - emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
214 -
215 - if use doc; then
216 - emake DESTDIR="${D}" install-info install-pdf
217 - dosym ../manual /usr/share/doc/${PF}/html/manual
218 - fi
219 -
220 - cat > 99R <<-EOF
221 - LDPATH=${EROOT}/usr/$(get_libdir)/${PN}/lib
222 - R_HOME=${EROOT}/usr/$(get_libdir)/${PN}
223 - EOF
224 - doenvd 99R
225 - newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN}
226 - # The buildsystem has a different understanding of install_names than
227 - # we require. Since it builds modules like shared objects (wrong), many
228 - # objects (all modules) get an incorrect install_name. Fixing the build
229 - # system here is not really trivial.
230 - if [[ ${CHOST} == *-darwin* ]] ; then
231 - local mod
232 - pushd "${ED}"/usr/$(get_libdir)/R > /dev/null
233 - for mod in $(find . -name "*.dylib") ; do
234 - mod=${mod#./}
235 - install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \
236 - "${mod}"
237 - done
238 - popd > /dev/null
239 - fi
240 -
241 - # Users are encouraged to access some of the the R documentation
242 - # interactively, through functions like "contributors()" that
243 - # tries to open the "AUTHORS" file. Other files can be accessed
244 - # by name with RShowDoc(), and the documentation for e.g. license()
245 - # and RShowDoc() suggests a few of these names. Here we try to
246 - # collect as many names as possible that a user might actually
247 - # try to view through R, because if we don't decompress them,
248 - # then R doesn't know what to do with 'em. Bug #556706.
249 - INTERACTIVE_DOCS=(
250 - AUTHORS
251 - COPYING
252 - FAQ
253 - NEWS
254 - THANKS
255 - )
256 -
257 - # Other data sources that are shipped as "documentation," but which
258 - # need to be accessible via their original unmolested filenames.
259 - INTERACTIVE_DATA=(
260 - BioC_mirrors.csv
261 - CRAN_mirrors.csv
262 - KEYWORDS.db
263 - NEWS.rds
264 - )
265 -
266 - NOCOMPRESS_DOCS=( "${INTERACTIVE_DOCS[@]}" "${INTERACTIVE_DATA[@]}" )
267 -
268 - for f in "${NOCOMPRESS_DOCS[@]}"; do
269 - docompress -x "/usr/share/doc/${PF}/${f}"
270 - done
271 -}
272 -
273 -pkg_postinst() {
274 - if use java; then
275 - einfo "Re-initializing java paths for ${P}"
276 - R CMD javareconf
277 - fi
278 -}