diff options
author | Alfred Wingate <parona@protonmail.com> | 2024-06-23 03:58:41 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2024-06-23 03:58:41 +0200 |
commit | be5b8a10e2e385902611ef51ba1dfe1bd886a0c1 (patch) | |
tree | 3284e5ab18b8bd4023abed57908088b8e29c6a22 /dev-lang/R | |
parent | net-misc/wget2: subscribe to libassuan subslot (diff) | |
download | gentoo-be5b8a10e2e385902611ef51ba1dfe1bd886a0c1.tar.gz gentoo-be5b8a10e2e385902611ef51ba1dfe1bd886a0c1.tar.bz2 gentoo-be5b8a10e2e385902611ef51ba1dfe1bd886a0c1.zip |
dev-lang/R: fixes for 4.4.1
* Lapack symbols (zspmv) required for Blas, therefore build with lapack
unconditionally.
* Add and enable by default libdeflate support to conform with upstream
defaults.
* Require timezone-data which is needed, it would be missing on non glibc
systems by default.
Closes: https://github.com/gentoo/gentoo/pull/36418
Bug: https://bugs.gentoo.org/922673
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-lang/R')
-rw-r--r-- | dev-lang/R/R-4.4.1.ebuild | 18 | ||||
-rw-r--r-- | dev-lang/R/metadata.xml | 3 |
2 files changed, 13 insertions, 8 deletions
diff --git a/dev-lang/R/R-4.4.1.ebuild b/dev-lang/R/R-4.4.1.ebuild index 3a4567f726de..6282a9ecd337 100644 --- a/dev-lang/R/R-4.4.1.ebuild +++ b/dev-lang/R/R-4.4.1.ebuild @@ -18,7 +18,7 @@ SRC_URI=" LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~loong ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" -IUSE="cairo doc icu java jpeg lapack lto minimal nls openmp perl png prefix profile readline test tiff tk X" +IUSE="cairo doc icu java jpeg +libdeflate lto minimal nls openmp perl png prefix profile readline test tiff tk X" REQUIRED_USE=" png? ( || ( cairo X ) ) @@ -37,23 +37,26 @@ DEPEND=" dev-libs/libpcre2:= >=dev-libs/tre-0.8.0_p20210321[approx] net-misc/curl - virtual/blas sys-libs/zlib[minizip] sys-apps/coreutils + sys-libs/timezone-data + virtual/blas + virtual/lapack cairo? ( x11-libs/cairo:=[X=] x11-libs/pango:= ) icu? ( dev-libs/icu:= ) jpeg? ( media-libs/libjpeg-turbo:= ) - kernel_linux? ( net-libs/libtirpc ) - lapack? ( virtual/lapack ) + kernel_linux? ( net-libs/libtirpc:= ) + libdeflate? ( app-arch/libdeflate ) perl? ( dev-lang/perl ) png? ( media-libs/libpng:= ) readline? ( sys-libs/readline:= ) tiff? ( media-libs/tiff:= ) tk? ( dev-lang/tk:= ) X? ( + x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )" @@ -108,9 +111,6 @@ src_prepare() { sed -e 's:\.\./manual/:manual/:g' \ -i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed" - use lapack && - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" - use perl && export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}" @@ -145,9 +145,11 @@ src_configure() { --disable-R-framework \ --disable-R-static-lib \ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \ + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" \ rdocdir="${EPREFIX}/usr/share/doc/${PF}" \ --with-system-tre \ --without-aqua \ + --without-newAccelerate \ $(use_enable java) \ $(use_enable lto lto R) \ $(use_enable nls) \ @@ -157,7 +159,7 @@ src_configure() { $(use_with cairo) \ $(use_with icu ICU) \ $(use_with jpeg jpeglib) \ - $(use_with lapack) \ + $(use_with libdeflate libdeflate-compression) \ $(use_with !minimal recommended-packages) \ $(use_with png libpng) \ $(use_with readline) \ diff --git a/dev-lang/R/metadata.xml b/dev-lang/R/metadata.xml index c5ab836c4412..442394218fff 100644 --- a/dev-lang/R/metadata.xml +++ b/dev-lang/R/metadata.xml @@ -24,4 +24,7 @@ <upstream> <remote-id type="github">wch/r-source</remote-id> </upstream> + <use> + <flag name="libdeflate">Use <pkg>app-arch/libdeflate</pkg> rather than <pkg>sys-libs/zlib</pkg> for lazy-loaded R objects.</flag> + </use> </pkgmetadata> |