summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-12-10 19:24:25 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-12-10 19:26:26 +0100
commitf344d9ecc4b6fae88fc5795aebdbf57c5563d080 (patch)
treeaa8224e942b40feb37e6fdec710abcb8da52c33e /sci-libs
parentdev-perl/WWW-Form-UrlEncoded-XS: Stabilize 0.260.0 arm, #885325 (diff)
downloadgentoo-f344d9ecc4b6fae88fc5795aebdbf57c5563d080.tar.gz
gentoo-f344d9ecc4b6fae88fc5795aebdbf57c5563d080.tar.bz2
gentoo-f344d9ecc4b6fae88fc5795aebdbf57c5563d080.zip
sci-libs/mkl: add convenience symlink without version number
and drop the symlinks into /usr/include, these create file conflicts. Applications should be able to find the headers because we set the MKLROOT variable anyway. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/mkl/mkl-2022.2.1.16993-r1.ebuild (renamed from sci-libs/mkl/mkl-2022.2.1.16993.ebuild)32
1 files changed, 4 insertions, 28 deletions
diff --git a/sci-libs/mkl/mkl-2022.2.1.16993.ebuild b/sci-libs/mkl/mkl-2022.2.1.16993-r1.ebuild
index 5f88f1e40685..63e646576e0a 100644
--- a/sci-libs/mkl/mkl-2022.2.1.16993.ebuild
+++ b/sci-libs/mkl/mkl-2022.2.1.16993-r1.ebuild
@@ -27,6 +27,7 @@ RESTRICT="strip"
RDEPEND="
app-eselect/eselect-blas
app-eselect/eselect-lapack
+ sys-cluster/mpich
sys-libs/libomp
"
# bug #801460
@@ -55,34 +56,6 @@ src_install() {
done
popd || die
- # Symlink files in include directory
- pushd "opt/intel/oneapi/mkl/$(ver_cut 1-3)/include" || die
- for file in *.h; do
- dosym "../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/${file}" "/usr/include/${file}"
- done
- for file in *.f90; do
- dosym "../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/${file}" "/usr/include/${file}"
- done
- for file in *.fi; do
- dosym "../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/${file}" "/usr/include/${file}"
- done
- popd || die
- pushd "opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/fftw" || die
- for file in *; do
- dosym "../../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/fftw/${file}" "/usr/include/fftw/${file}"
- done
- popd || die
- pushd "opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/intel64" || die
- for file in *; do
- dosym "../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/intel64/${file}" "/usr/include/${file}"
- done
- popd || die
- pushd "opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/oneapi" || die
- for file in *; do
- dosym "../../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/include/oneapi/${file}" "/usr/include/oneapi/${file}"
- done
- popd || die
-
# Symlink files in locale directory
pushd "opt/intel/oneapi/mkl/$(ver_cut 1-3)/lib/intel64/locale/en_US" || die
for file in *; do
@@ -93,6 +66,9 @@ src_install() {
# Move everything over to the image directory
mv "${S}/"* "${ED}" || die
+ # Create convenience symlink that does not include the version number
+ dosym "$(ver_cut 1-3)" /opt/intel/oneapi/mkl/latest
+
dodir /usr/$(get_libdir)/blas/mkl
dosym ../../../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/lib/intel64/libmkl_rt.so usr/$(get_libdir)/blas/mkl/libblas.so
dosym ../../../../opt/intel/oneapi/mkl/$(ver_cut 1-3)/lib/intel64/libmkl_rt.so usr/$(get_libdir)/blas/mkl/libblas.so.3