diff options
| author | root <root@alpha.trunkmasters.com> | 2026-07-02 18:47:22 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-07-02 18:47:22 -0500 |
| commit | 42e69f3ef953ee9c23b6aa5ec29c5f73e1e73fc1 (patch) | |
| tree | 262c3d532218c61a15f11cfb68da6b512d3e9200 /sci-libs | |
| parent | 062a52bd61f4f8d6a9eb95e7a1057ad2970ff3d2 (diff) | |
| download | baldeagleos-repo-42e69f3ef953ee9c23b6aa5ec29c5f73e1e73fc1.tar.gz baldeagleos-repo-42e69f3ef953ee9c23b6aa5ec29c5f73e1e73fc1.tar.xz baldeagleos-repo-42e69f3ef953ee9c23b6aa5ec29c5f73e1e73fc1.zip | |
Adding metadata
Diffstat (limited to 'sci-libs')
| -rw-r--r-- | sci-libs/dlib/Manifest | 2 | ||||
| -rw-r--r-- | sci-libs/dlib/dlib-19.24.2.ebuild | 112 | ||||
| -rw-r--r-- | sci-libs/dlib/dlib-19.24.8.ebuild | 115 | ||||
| -rw-r--r-- | sci-libs/dlib/files/dlib-missing-include.patch | 22 | ||||
| -rw-r--r-- | sci-libs/mkl/Manifest | 3 | ||||
| -rw-r--r-- | sci-libs/mkl/mkl-2026.1.0.236.ebuild | 173 |
6 files changed, 176 insertions, 251 deletions
diff --git a/sci-libs/dlib/Manifest b/sci-libs/dlib/Manifest index 973ed155e611..dbd9aee18f9b 100644 --- a/sci-libs/dlib/Manifest +++ b/sci-libs/dlib/Manifest @@ -1,5 +1,3 @@ -DIST dlib-19.24.2.tar.gz 22252165 BLAKE2B cd6a911e16d9ff6cf94a4334e84983a9c48da42e3f696de20fb28a5bba9720507ec19ddc984bb753288f86359a1c19cdf15ed29f18c43769a1c17d3177d8dedf SHA512 a38a3079c169b16d81d7aca9fc294bcd63bd2dc1a21573f9141ca310542da3629b6523fa6f348be8b41bf5b478c0846a13a4c3fee77f1ac38dfbfc4a01effb57 -DIST dlib-19.24.8.tar.gz 18965261 BLAKE2B 3dbcfcd4d1a98737a21f3618994a96b3932cfc3c12ef26411ef919d8843227418460208911aa687d5a94552588e8e1eb4c99646afc86f4b43afc6972d22c65b8 SHA512 9092768628246b682e29322b101cfb8c0cd1d5a2af850510403cc7f912aa43370db1d4b5b07ff6ce6a575b3bd8cfe666b6b8f78f5e7c2ec751ae23569edcb517 DIST dlib-20.0-FindCUDAToolkit.patch 30558 BLAKE2B 95f969cea3e2d0944dab13a6dc7bb3ca741b6d3b36786e7b1a26b17c9e8be391f7787c4362e3714f75a05963cf080e8f88cf739e6fe6d29af111284927dcb6c3 SHA512 d38136f19f7501891bd27a85358a218a74cf4f86b5c5b5f0bd51ec9bd6a9e41edc891332ba48315c56cec32a27adfc275ce90a4d5409174556f8e79b9d442657 DIST dlib-20.0-Wcast-user-defined.patch 1453 BLAKE2B 39d3592f961ef518eb12523afd8b62650b6509f8ff47a56777e7f253ac8649be446e5e98152e34f7bde665445d93ff72a31caeba87d7ddd1e4ceea7281d2b8db SHA512 42826df16472b482e30ca1dfc8ca5bfcf525fbe83bc51fc551c27e3519772e351fcf1d0c7bb9c0f6e6aa118a8e982db266c6e43b1b392bec2b91353867d073e8 DIST dlib-20.0-c++23-update.patch 1347 BLAKE2B 371130b1292bab2f19692dd308778e1d9f8ed7d0c0793536131ef93b21838769eaa8ecb9868103332b838584bfe78d625cfd7e90f70f4018b4945403b646a634 SHA512 0aef41f78d0dc3d2187a28247ad52ccfad527c46311770555b5aa5798f891cf91e3a0e5014430e93c7843757d2543ba316991dbcd89650222dbe2c04d757b800 diff --git a/sci-libs/dlib/dlib-19.24.2.ebuild b/sci-libs/dlib/dlib-19.24.2.ebuild deleted file mode 100644 index ee8ce0cdb701..000000000000 --- a/sci-libs/dlib/dlib-19.24.2.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -DISTUTILS_USE_PEP517=setuptools -DISTUTILS_EXT=1 -DISTUTILS_OPTIONAL=1 -inherit cmake cuda distutils-r1 - -DESCRIPTION="Numerical and networking C++ library" -HOMEPAGE="http://dlib.net/" -SRC_URI="https://github.com/davisking/dlib/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Boost-1.0" -SLOT="0/${PV}" -KEYWORDS="~amd64 ~x86" -IUSE="cblas cuda debug examples gif jpeg lapack mkl png python sqlite test X cpu_flags_x86_avx cpu_flags_x86_sse2 cpu_flags_x86_sse4_1" -REQUIRED_USE="python? ( png ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test )" - -# doc needs a bunch of deps not in portage -RDEPEND=" - cblas? ( virtual/cblas ) - cuda? ( dev-libs/cudnn:= ) - gif? ( media-libs/giflib:= ) - jpeg? ( media-libs/libjpeg-turbo:0= ) - lapack? ( virtual/lapack ) - mkl? ( sci-libs/mkl ) - png? ( media-libs/libpng:0= ) - python? ( ${PYTHON_DEPS} ) - sqlite? ( dev-db/sqlite:3 ) - X? ( x11-libs/libX11 )" -DEPEND="${RDEPEND}" -BDEPEND=" - python? ( - ${DISTUTILS_DEPS} - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pip[${PYTHON_USEDEP}] - ) - ) -" - -DOCS=( docs/README.txt ) - -PATCHES=( - # Bug 939094 - "${FILESDIR}/${PN}-missing-include.patch" -) - -src_prepare() { - use cuda && cuda_src_prepare - cmake_src_prepare - use python && distutils-r1_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DDLIB_ENABLE_ASSERTS=$(usex debug) - -DDLIB_ENABLE_STACK_TRACE=$(usex debug) - -DDLIB_GIF_SUPPORT=$(usex gif) - -DDLIB_JPEG_SUPPORT=$(usex jpeg) - -DDLIB_PNG_SUPPORT=$(usex png) - -DDLIB_LINK_WITH_SQLITE3=$(usex sqlite) - -DDLIB_NO_GUI_SUPPORT=$(usex X OFF ON) - -DDLIB_USE_BLAS=$(usex cblas) - -DDLIB_USE_CUDA=$(usex cuda) - -DDLIB_USE_LAPACK=$(usex lapack) - -DUSE_AVX_INSTRUCTIONS=$(usex cpu_flags_x86_avx) - -DUSE_SSE2_INSTRUCTIONS=$(usex cpu_flags_x86_sse2) - -DUSE_SSE4_INSTRUCTIONS=$(usex cpu_flags_x86_sse4_1) - ) - cmake_src_configure - use python && distutils-r1_src_configure -} - -src_compile() { - cmake_src_compile - use python && distutils-r1_src_compile -} - -src_test() { - ( - local BUILD_DIR="${BUILD_DIR}"/dlib/test - mkdir -p "${BUILD_DIR}" || die - cd "${BUILD_DIR}" >/dev/null || die - - local CMAKE_USE_DIR="${S}"/dlib/test - cmake_src_configure - cmake_build - - ./dtest --runall || die "Tests failed" - ) - - use python && distutils-r1_src_test -} - -python_test() { - epytest -} - -src_install() { - cmake_src_install - use python && distutils-r1_src_install - - if use examples; then - dodoc -r examples - docompress -x /usr/share/doc/${PF} - fi -} diff --git a/sci-libs/dlib/dlib-19.24.8.ebuild b/sci-libs/dlib/dlib-19.24.8.ebuild deleted file mode 100644 index 9f6b28548ce5..000000000000 --- a/sci-libs/dlib/dlib-19.24.8.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -DISTUTILS_USE_PEP517=setuptools -DISTUTILS_EXT=1 -DISTUTILS_OPTIONAL=1 -inherit cmake cuda distutils-r1 - -DESCRIPTION="Numerical and networking C++ library" -HOMEPAGE="https://dlib.net/" -SRC_URI="https://github.com/davisking/dlib/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Boost-1.0" -SLOT="0/${PV}" -KEYWORDS="~amd64 ~x86" -IUSE="cblas cuda debug examples ffmpeg gif jpeg lapack mkl png python sqlite test webp X cpu_flags_x86_avx cpu_flags_x86_sse2 cpu_flags_x86_sse4_1" -REQUIRED_USE="python? ( png ${PYTHON_REQUIRED_USE} )" -RESTRICT="!test? ( test )" - -# doc needs a bunch of deps not in portage -RDEPEND=" - cblas? ( virtual/cblas ) - cuda? ( dev-libs/cudnn:= ) - ffmpeg? ( media-video/ffmpeg:=[X?] ) - gif? ( media-libs/giflib:= ) - jpeg? ( media-libs/libjpeg-turbo:0= ) - lapack? ( virtual/lapack ) - mkl? ( sci-libs/mkl ) - png? ( media-libs/libpng:0= ) - python? ( ${PYTHON_DEPS} ) - sqlite? ( dev-db/sqlite:3 ) - webp? ( media-libs/libwebp:= ) - X? ( x11-libs/libX11 )" -DEPEND="${RDEPEND}" -BDEPEND=" - python? ( - ${DISTUTILS_DEPS} - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pip[${PYTHON_USEDEP}] - ) - ) -" - -DOCS=( docs/README.txt ) - -PATCHES=( - "${FILESDIR}/${P}"-disable-upstream-flags.patch -) - -src_prepare() { - use cuda && cuda_src_prepare - cmake_src_prepare - use python && distutils-r1_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DDLIB_ENABLE_ASSERTS=$(usex debug) - -DDLIB_ENABLE_STACK_TRACE=$(usex debug) - -DDLIB_USE_FFMPEG=$(usex ffmpeg) - -DDLIB_GIF_SUPPORT=$(usex gif) - -DDLIB_JPEG_SUPPORT=$(usex jpeg) - -DDLIB_PNG_SUPPORT=$(usex png) - -DDLIB_LINK_WITH_SQLITE3=$(usex sqlite) - -DDLIB_NO_GUI_SUPPORT=$(usex X OFF ON) - -DDLIB_USE_BLAS=$(usex cblas) - -DDLIB_USE_CUDA=$(usex cuda) - -DDLIB_USE_LAPACK=$(usex lapack) - -DDLIB_WEBP_SUPPORT=$(usex webp) - -DUSE_AVX_INSTRUCTIONS=$(usex cpu_flags_x86_avx) - -DUSE_SSE2_INSTRUCTIONS=$(usex cpu_flags_x86_sse2) - -DUSE_SSE4_INSTRUCTIONS=$(usex cpu_flags_x86_sse4_1) - ) - cmake_src_configure - use python && distutils-r1_src_configure -} - -src_compile() { - cmake_src_compile - use python && distutils-r1_src_compile -} - -src_test() { - ( - local BUILD_DIR="${BUILD_DIR}"/dlib/test - mkdir -p "${BUILD_DIR}" || die - cd "${BUILD_DIR}" >/dev/null || die - - local CMAKE_USE_DIR="${S}"/dlib/test - cmake_src_configure - cmake_build - - ./dtest --runall || die "Tests failed" - ) - - use python && distutils-r1_src_test -} - -python_test() { - epytest -} - -src_install() { - cmake_src_install - use python && distutils-r1_src_install - - if use examples; then - dodoc -r examples - docompress -x /usr/share/doc/${PF} - fi -} diff --git a/sci-libs/dlib/files/dlib-missing-include.patch b/sci-libs/dlib/files/dlib-missing-include.patch deleted file mode 100644 index 41b556d09d48..000000000000 --- a/sci-libs/dlib/files/dlib-missing-include.patch +++ /dev/null @@ -1,22 +0,0 @@ -From dab9aa1fa5ae245c2f8becf1396205f7655b1c01 Mon Sep 17 00:00:00 2001 -From: pfeatherstone <45853521+pfeatherstone@users.noreply.github.com> -Date: Thu, 18 May 2023 13:03:15 +0100 -Subject: [PATCH] missing include (#2798) - -Co-authored-by: pf <pf@me> ---- - dlib/type_traits.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/dlib/type_traits.h b/dlib/type_traits.h -index 8391050699..a5bb863278 100644 ---- a/dlib/type_traits.h -+++ b/dlib/type_traits.h -@@ -10,6 +10,7 @@ - */ - - #include <type_traits> -+#include <cstdint> - - namespace dlib - { diff --git a/sci-libs/mkl/Manifest b/sci-libs/mkl/Manifest index 180e63ff6272..3ca6f883d35c 100644 --- a/sci-libs/mkl/Manifest +++ b/sci-libs/mkl/Manifest @@ -1,6 +1,9 @@ DIST intel-oneapi-mkl-classic-include-2025.3-2025.3.1-8_amd64.deb 662304 BLAKE2B fb73e665fe312ff1844fe1c5da0dbbf0cd0aa1c77e5641774ebafb9a5400d189924a6a1d81821c324e0b3d22f9405666996c5d3c0728e83c5646af5646396ed0 SHA512 3c4f14c9ce7913d861e03b133c7211e9da898b43fa2c443c679fe7e9fceb24d0c6cdf11b16abebc1dcad80d521eb344139238e0bd9408fac12d44918c5e340af DIST intel-oneapi-mkl-classic-include-2026.0-2026.0.0-908_amd64.deb 658936 BLAKE2B ff1eb9b1968db28202e35d365ccb08e0be36d955b7078649aa378c12644bff2f37832aacc624cf9d72e53cf039f16f8d592527356fff30341c5f58d8843bf171 SHA512 862a92b9369b0dba3a49ddf0ac6145e7aec5070661a3f4c3738ace5a2ddc96633ebbdca6828363bf6b6a7c90df2cd070aede490a2d02c2cef7f43be069f4b592 +DIST intel-oneapi-mkl-classic-include-2026.1-2026.1.0-236_amd64.deb 659080 BLAKE2B 1a4365b8bdc61ba532c2d3ce18a7b7a8c1c0e5348edbe9ee42bfc510fb6c0321bca353a11252da1281803391adb72f274ba037aa23c6945a51f34a5e897afe74 SHA512 cc3cbf4886c810c76312fcc275e7b54f86101dc56ebeca48c0793ba359e12c0348d092857d485ec57875d3f83e773ed97c031dff7dcdf59aef0538c0ee6e1c04 DIST intel-oneapi-mkl-core-2025.3-2025.3.1-8_amd64.deb 110248038 BLAKE2B 91b4a6a5229cc8d6f50813a33870551668822bea81f7534ef5728be95b0671d80dbfbe80e888c47075e2375c27c243dd6feeb144f13544d5cd8faf0a9efee945 SHA512 532641762cd66e9ed3d4c800914923eb87e862513ddd4c858bd01015af99396f892ef6a671f5f0c22b08273bc1e157067b65dead57ea66c5b705be1d4324bf33 DIST intel-oneapi-mkl-core-2026.0-2026.0.0-908_amd64.deb 126175878 BLAKE2B 15616fb4aad2f3efc16634e5712b84b2410d3b5e7274e9f4587365ea616e7ad9d5b18d1814bcb8a04d1ac384750942c4822681d7159d2ed1b8fa94695719544c SHA512 672c74387bd1f1ee9a4e751609f822b735add6d64cb6ce855ffbc75cb8c98b807f915e895c019835be84af5f528db349f5c456f8b87a6b545c4bd44523a7fee6 +DIST intel-oneapi-mkl-core-2026.1-2026.1.0-236_amd64.deb 126239806 BLAKE2B 24067e27fe2b84b9c01445ebb5c97ece00b89f5f050ed88c3c7d7876f02d9b8e53a8d0f102dfc3727d8f89c6618bebd7e610a5c7d21463a253c44d007375c04a SHA512 dae5a0d2321bdc8441786a7f974d372d1a33d8679fc77a007d4f638b16e945bfa42068bc8a88cc6da66c4bef82eae8e6c399630d225a017af76a1abf8349a478 DIST intel-oneapi-mkl-core-devel-2025.3-2025.3.1-8_amd64.deb 106340390 BLAKE2B 33ee1d621660633721caa309430af6de929cc8e90e8ab2e48cface1f57dc7b0d3a0a265977db2922100d03299cb6ba0e278ec9c44fbaee18cd16ae421fad0d2c SHA512 cb775cc2f9a70aca4c54f761086aa64d55622745c4da8d652cb870bfed832e613ff40b83f23be797725c78b7640392f5820bf1b56a51df21ffcc568cb68a8e2f DIST intel-oneapi-mkl-core-devel-2026.0-2026.0.0-908_amd64.deb 122268962 BLAKE2B 0fa87ee983d3ec32b74f9f1f73a66d5b5ee6f4b746da4a6472440cb19694d020ae8c796e7b1b6c27872dadd780c289a6b9454324310c84a161eded3e9d92bb21 SHA512 1a650c9a0645704a914a17a021e2a927a1b832ba12c7398bbbb1f44d86960872a549bdc9ff243de9814a6e61223cb38cfbce82f114192f5f9c9ebf97d9b70b13 +DIST intel-oneapi-mkl-core-devel-2026.1-2026.1.0-236_amd64.deb 122373106 BLAKE2B 61752df98e8d6cbd92a188405ab2dd3882394bced533eba52d18a02e66e12a5738d3b8179661e75d90e0b93ec86ea39f766f09d8f53d5c2e07dd7bfeeb6283ca SHA512 cf19d09ee95082bb99f7fc0020b270565be925abac28aebb37bc2705a0d75557323cab7e72dd21bb6e296bcda76e4a5eddc9781716a23ee8164f7dee3af3b932 diff --git a/sci-libs/mkl/mkl-2026.1.0.236.ebuild b/sci-libs/mkl/mkl-2026.1.0.236.ebuild new file mode 100644 index 000000000000..3abec0981c71 --- /dev/null +++ b/sci-libs/mkl/mkl-2026.1.0.236.ebuild @@ -0,0 +1,173 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit unpacker + +# You can find the version suffix in: +# https://apt.repos.intel.com/oneapi/dists/all/main/binary-amd64/Packages.bz2 + +PN_VER=$(ver_cut 1-2) +MY_PV=$(ver_cut 1-3)-$(ver_cut 4) +DESCRIPTION="Intel Math Kernel Library" +HOMEPAGE="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl.html" +# Upstream packages are a mess -- and most of them are literally empty. +SRC_URI=" + https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-core-${PN_VER}-${MY_PV}_amd64.deb + https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-core-devel-${PN_VER}-${MY_PV}_amd64.deb + https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-mkl-classic-include-${PN_VER}-${MY_PV}_amd64.deb +" +S="${WORKDIR}" + +LICENSE="ISSL" +SLOT="0/3" +KEYWORDS="~amd64" +IUSE="eselect-ldso examples gnu-openmp llvm-openmp static-libs tbb" +RESTRICT="strip" + +RDEPEND=" + eselect-ldso? ( + app-eselect/eselect-blas + app-eselect/eselect-lapack + ) + gnu-openmp? ( sys-devel/gcc:*[openmp] ) + llvm-openmp? ( llvm-runtimes/openmp ) + tbb? ( dev-cpp/tbb ) +" +# bug #801460 +BDEPEND=" + app-arch/xz-utils[extra-filters(+)] + eselect-ldso? ( + app-eselect/eselect-blas + app-eselect/eselect-lapack + ) +" + +QA_PREBUILT="*" +QA_TEXTRELS="*" +QA_SONAME="*" + +src_install() { + local libdir=$(get_libdir) + local libroot=opt/intel/oneapi/mkl/${PN_VER}/lib + + if ! use static-libs; then + rm -v "${libroot}"/{*.a,pkgconfig/*-static-*.pc} || die + fi + if ! use examples; then + rm -rv "opt/intel/oneapi/mkl/${PN_VER}"/share/{mkl/benchmarks,doc/mkl/examples} || die + fi + if ! use gnu-openmp; then + rm -v "${libroot}"/{*_gnu_thread.*,pkgconfig/*-gomp.pc} || die + fi + if use llvm-openmp; then + # Replace Intel OpenMP with LLVM OpenMP. We could just install + # "openmp.pc" for that, but we don't want random packages + # to start depending on it. + sed -e '/Requires: openmp/d' \ + -e '/Libs:/s:$: -lomp:' \ + -i "${libroot}"/pkgconfig/*iomp.pc || die + # Install a "libiomp5.so" symlink to make the magical lookup + # in mkl_rt.so happy too. + ln -s "../../../../../../usr/$(get_libdir)/libomp.so" \ + "${libroot}"/libiomp5.so || die + else + rm -v "${libroot}"/{*_intel_thread.*,pkgconfig/*-iomp.pc} || die + fi + if ! use tbb; then + rm -v "${libroot}"/{*_tbb_thread.*,pkgconfig/*-tbb.pc} || die + fi + + # Symlink pkgconfig and cmake files + pushd "${libroot}/pkgconfig" >/dev/null || die + for file in *.pc; do + dosym "../../../${libroot}/pkgconfig/${file}" \ + "/usr/${libdir}/pkgconfig/${file}" + done + popd >/dev/null || die + pushd "${libroot}/cmake/mkl" >/dev/null || die + for file in *.cmake; do + dosym "../../../../${libroot}/cmake/mkl/${file}" \ + "/usr/${libdir}/cmake/mkl/${file}" + done + popd >/dev/null || die + + # Move everything over to the image directory + mv "${S}/"* "${ED}" || die + + # Create convenience symlink that does not include the version number + dosym "${PN_VER}" /opt/intel/oneapi/mkl/latest + + if use eselect-ldso; then + local lib=../../../../${libroot}/libmkl_rt.so + dodir "/usr/${libdir}"/{blas,lapack}/mkl + dosym "${lib}" "/usr/${libdir}/blas/mkl/libblas.so" + dosym "${lib}" "/usr/${libdir}/blas/mkl/libblas.so.3" + dosym "${lib}" "/usr/${libdir}/blas/mkl/libcblas.so" + dosym "${lib}" "/usr/${libdir}/blas/mkl/libcblas.so.3" + dosym "${lib}" "/usr/${libdir}/lapack/mkl/liblapack.so" + dosym "${lib}" "/usr/${libdir}/lapack/mkl/liblapack.so.3" + dosym "${lib}" "/usr/${libdir}/lapack/mkl/liblapacke.so" + dosym "${lib}" "/usr/${libdir}/lapack/mkl/liblapacke.so.3" + fi + + # https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2025-1/dynamic-select-the-interface-and-threading-layer.html + local default_threading_layer + if use llvm-openmp; then + default_threading_layer=INTEL + elif use gnu-openmp; then + default_threading_layer=GNU + elif use tbb; then + default_threading_layer=TBB + else + default_threading_layer=SEQUENTIAL + fi + + newenvd - "70intel-mkl" <<-_EOF_ + MKLROOT="${EPREFIX}/opt/intel/oneapi/mkl/${PN_VER}" + PATH="${EPREFIX}/opt/intel/oneapi/mkl/${PN_VER}/bin" + # we need to duplicate it in ROOTPATH for Portage to respect... + ROOTPATH="${EPREFIX}/opt/intel/oneapi/mkl/${PN_VER}/bin" + LDPATH="${EPREFIX}/opt/intel/oneapi/mkl/${PN_VER}/lib" + # respect USE flags for defaults + MKL_THREADING_LAYER=${default_threading_layer} + _EOF_ +} + +pkg_postinst() { + use eselect-ldso || return + + local libdir=$(get_libdir) me="mkl" + + # check blas + eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me} + local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2) + if [[ ${current_blas} == "${me}" || -z ${current_blas} ]]; then + eselect blas set ${libdir} ${me} + elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." + else + elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." + elog "To use blas [${me}] implementation, you have to issue (as root):" + elog "\t eselect blas set ${libdir} ${me}" + fi + + # check lapack + eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me} + local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2) + if [[ ${current_lapack} == "${me}" || -z ${current_lapack} ]]; then + eselect lapack set ${libdir} ${me} + elog "Current eselect: LAPACK ($libdir) -> [${current_blas}]." + else + elog "Current eselect: LAPACK ($libdir) -> [${current_blas}]." + elog "To use lapack [${me}] implementation, you have to issue (as root):" + elog "\t eselect lapack set ${libdir} ${me}" + fi +} + +pkg_postrm() { + use eselect-ldso || return + + eselect blas validate + eselect lapack validate +} |
