Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/mkl/
Date: Sat, 25 May 2019 06:36:22
Message-Id: 1558766168.eb8ecdd3e73fe175eee314ac14a89a15e4241e6a.tamiko@gentoo
1 commit: eb8ecdd3e73fe175eee314ac14a89a15e4241e6a
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 25 06:25:49 2019 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Sat May 25 06:36:08 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=eb8ecdd3
7
8 sci-libs/mkl: version bump to 19.0.4.243
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.12
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 sci-libs/mkl/mkl-19.0.4.243.ebuild | 105 +++++++++++++++++++++++++++++++++++++
14 1 file changed, 105 insertions(+)
15
16 diff --git a/sci-libs/mkl/mkl-19.0.4.243.ebuild b/sci-libs/mkl/mkl-19.0.4.243.ebuild
17 new file mode 100644
18 index 000000000..fcdcc6c9f
19 --- /dev/null
20 +++ b/sci-libs/mkl/mkl-19.0.4.243.ebuild
21 @@ -0,0 +1,105 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +INTEL_DIST_PV=2019_update4_professional_edition
28 +
29 +inherit alternatives-2 intel-sdp-r1 numeric-int64-multibuild
30 +
31 +DESCRIPTION="Intel Math Kernel Library: linear algebra, fft, math functions"
32 +HOMEPAGE="http://software.intel.com/en-us/articles/intel-mkl/"
33 +
34 +IUSE="doc int64"
35 +KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
36 +
37 +DEPEND=""
38 +RDEPEND="~dev-libs/intel-common-${PV}[compiler]"
39 +
40 +CHECKREQS_DISK_BUILD=3500M
41 +
42 +INTEL_DIST_DAT_RPMS=(
43 + "mkl-cluster-c-2019.4-243-2019.4-243.noarch.rpm"
44 + "mkl-cluster-f-2019.4-243-2019.4-243.noarch.rpm"
45 + "mkl-common-2019.4-243-2019.4-243.noarch.rpm"
46 + "mkl-common-c-2019.4-243-2019.4-243.noarch.rpm"
47 + "mkl-common-c-ps-2019.4-243-2019.4-243.noarch.rpm"
48 + "mkl-common-f-2019.4-243-2019.4-243.noarch.rpm"
49 + "mkl-common-ps-2019.4-243-2019.4-243.noarch.rpm"
50 + "mkl-f95-common-2019.4-243-2019.4-243.noarch.rpm")
51 +INTEL_DIST_AMD64_RPMS=(
52 + "mkl-cluster-2019.4-243-2019.4-243.x86_64.rpm"
53 + "mkl-cluster-rt-2019.4-243-2019.4-243.x86_64.rpm"
54 + "mkl-core-2019.4-243-2019.4-243.x86_64.rpm"
55 + "mkl-core-c-2019.4-243-2019.4-243.x86_64.rpm"
56 + "mkl-core-f-2019.4-243-2019.4-243.x86_64.rpm"
57 + "mkl-core-ps-2019.4-243-2019.4-243.x86_64.rpm"
58 + "mkl-core-rt-2019.4-243-2019.4-243.x86_64.rpm"
59 + "mkl-f95-2019.4-243-2019.4-243.x86_64.rpm"
60 + "mkl-gnu-2019.4-243-2019.4-243.x86_64.rpm"
61 + "mkl-gnu-c-2019.4-243-2019.4-243.x86_64.rpm"
62 + "mkl-gnu-f-2019.4-243-2019.4-243.x86_64.rpm"
63 + "mkl-gnu-f-rt-2019.4-243-2019.4-243.x86_64.rpm"
64 + "mkl-gnu-rt-2019.4-243-2019.4-243.x86_64.rpm"
65 + "mkl-pgi-2019.4-243-2019.4-243.x86_64.rpm"
66 + "mkl-pgi-c-2019.4-243-2019.4-243.x86_64.rpm"
67 + "mkl-pgi-rt-2019.4-243-2019.4-243.x86_64.rpm"
68 + "mkl-tbb-2019.4-243-2019.4-243.x86_64.rpm"
69 + "mkl-tbb-rt-2019.4-243-2019.4-243.x86_64.rpm")
70 +INTEL_DIST_X86_RPMS=(
71 + "mkl-core-32bit-2019.4-243-2019.4-243.x86_64.rpm"
72 + "mkl-core-c-32bit-2019.4-243-2019.4-243.x86_64.rpm"
73 + "mkl-core-f-32bit-2019.4-243-2019.4-243.x86_64.rpm"
74 + "mkl-core-ps-32bit-2019.4-243-2019.4-243.x86_64.rpm"
75 + "mkl-core-rt-32bit-2019.4-243-2019.4-243.x86_64.rpm"
76 + "mkl-f95-32bit-2019.4-243-2019.4-243.x86_64.rpm"
77 + "mkl-gnu-32bit-2019.4-243-2019.4-243.x86_64.rpm"
78 + "mkl-gnu-c-32bit-2019.4-243-2019.4-243.x86_64.rpm"
79 + "mkl-gnu-f-32bit-2019.4-243-2019.4-243.x86_64.rpm"
80 + "mkl-gnu-f-rt-32bit-2019.4-243-2019.4-243.x86_64.rpm"
81 + "mkl-gnu-rt-32bit-2019.4-243-2019.4-243.x86_64.rpm"
82 + "mkl-tbb-32bit-2019.4-243-2019.4-243.x86_64.rpm"
83 + "mkl-tbb-rt-32bit-2019.4-243-2019.4-243.x86_64.rpm")
84 +
85 +pkg_setup() {
86 + if use doc; then
87 + INTEL_DIST_DAT_RPMS+=(
88 + "mkl-doc-2019-2019.4-243.noarch.rpm"
89 + "mkl-doc-ps-2019-2019.4-243.noarch.rpm")
90 + fi
91 +}
92 +
93 +_mkl_add_alternative_provider() {
94 + local prov=$1; shift
95 + local alt
96 + for alt in $*; do
97 + NUMERIC_MODULE_NAME=${prov} \
98 + numeric-int64-multibuild_install_alternative ${alt} ${prov}
99 + done
100 +}
101 +
102 +src_install() {
103 + intel-sdp-r1_src_install
104 +
105 + sed -i -e "s#<INSTALLDIR>#$(isdp_get-sdp-edir)/linux#" \
106 + "${ED}"/opt/intel/compilers_and_libraries_2019.4.243/linux/mkl/bin/pkgconfig/* \
107 + || die "sed failed"
108 +
109 + mkdir -p "${ED}"/usr/$(get_libdir)/pkgconfig/ || die "mkdir failed"
110 + cp "${ED}"/opt/intel/compilers_and_libraries_2019.4.243/linux/mkl/bin/pkgconfig/* \
111 + "${ED}"/usr/$(get_libdir)/pkgconfig/ || die "cp failed"
112 +
113 + if use int64; then
114 + _mkl_add_alternative_provider mkl-dynamic-ilp64-seq blas lapack cblas lapacke scalapack
115 + _mkl_add_alternative_provider mkl-dynamic-ilp64-iomp blas lapack cblas lapacke scalapack
116 + else
117 + _mkl_add_alternative_provider mkl-dynamic-lp64-seq blas lapack cblas lapacke scalapack
118 + _mkl_add_alternative_provider mkl-dynamic-lp64-iomp blas lapack cblas lapacke scalapack
119 + fi
120 +
121 + local ldpath="LDPATH="
122 + use abi_x86_64 && ldpath+=":$(isdp_get-sdp-edir)/linux/mkl/lib/$(isdp_convert2intel-arch abi_x86_64)"
123 + use abi_x86_32 && ldpath+=":$(isdp_get-sdp-edir)/linux/mkl/lib/$(isdp_convert2intel-arch abi_x86_32)"
124 + echo "${ldpath}" > "${T}"/35mkl || die
125 + doenvd "${T}"/35mkl
126 +}