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