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: Tue, 03 Apr 2018 16:45:03
Message-Id: 1522773890.3b7aff577379a8fdd3898e6e78248559ceceaa23.tamiko@gentoo
1 commit: 3b7aff577379a8fdd3898e6e78248559ceceaa23
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 3 14:48:56 2018 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 3 16:44:50 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3b7aff57
7
8 sci-libs/mkl: version bump to 18.0.2.199
9
10 Package-Manager: Portage-2.3.28, Repoman-2.3.9
11
12 sci-libs/mkl/mkl-18.0.2.199.ebuild | 108 +++++++++++++++++++++++++++++++++++++
13 1 file changed, 108 insertions(+)
14
15 diff --git a/sci-libs/mkl/mkl-18.0.2.199.ebuild b/sci-libs/mkl/mkl-18.0.2.199.ebuild
16 new file mode 100644
17 index 000000000..ad98b798f
18 --- /dev/null
19 +++ b/sci-libs/mkl/mkl-18.0.2.199.ebuild
20 @@ -0,0 +1,108 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +INTEL_DIST_SKU=3235
27 +INTEL_DIST_PV=2018_update2_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-2018.2-199-2018.2-199.noarch.rpm"
44 + "mkl-cluster-common-2018.2-199-2018.2-199.noarch.rpm"
45 + "mkl-cluster-f-2018.2-199-2018.2-199.noarch.rpm"
46 + "mkl-common-2018.2-199-2018.2-199.noarch.rpm"
47 + "mkl-common-c-2018.2-199-2018.2-199.noarch.rpm"
48 + "mkl-common-c-ps-2018.2-199-2018.2-199.noarch.rpm"
49 + "mkl-common-f-2018.2-199-2018.2-199.noarch.rpm"
50 + "mkl-common-ps-2018.2-199-2018.2-199.noarch.rpm"
51 + "mkl-f95-common-2018.2-199-2018.2-199.noarch.rpm")
52 +INTEL_DIST_AMD64_RPMS=(
53 + "mkl-cluster-2018.2-199-2018.2-199.x86_64.rpm"
54 + "mkl-cluster-rt-2018.2-199-2018.2-199.x86_64.rpm"
55 + "mkl-core-2018.2-199-2018.2-199.x86_64.rpm"
56 + "mkl-core-c-2018.2-199-2018.2-199.x86_64.rpm"
57 + "mkl-core-f-2018.2-199-2018.2-199.x86_64.rpm"
58 + "mkl-core-ps-2018.2-199-2018.2-199.x86_64.rpm"
59 + "mkl-core-rt-2018.2-199-2018.2-199.x86_64.rpm"
60 + "mkl-f95-2018.2-199-2018.2-199.x86_64.rpm"
61 + "mkl-gnu-2018.2-199-2018.2-199.x86_64.rpm"
62 + "mkl-gnu-c-2018.2-199-2018.2-199.x86_64.rpm"
63 + "mkl-gnu-f-2018.2-199-2018.2-199.x86_64.rpm"
64 + "mkl-gnu-f-rt-2018.2-199-2018.2-199.x86_64.rpm"
65 + "mkl-gnu-rt-2018.2-199-2018.2-199.x86_64.rpm"
66 + "mkl-pgi-2018.2-199-2018.2-199.x86_64.rpm"
67 + "mkl-pgi-c-2018.2-199-2018.2-199.x86_64.rpm"
68 + "mkl-pgi-f-2018.2-199-2018.2-199.x86_64.rpm"
69 + "mkl-pgi-rt-2018.2-199-2018.2-199.x86_64.rpm"
70 + "mkl-tbb-2018.2-199-2018.2-199.x86_64.rpm"
71 + "mkl-tbb-rt-2018.2-199-2018.2-199.x86_64.rpm")
72 +INTEL_DIST_X86_RPMS=(
73 + "mkl-core-32bit-2018.2-199-2018.2-199.x86_64.rpm"
74 + "mkl-core-c-32bit-2018.2-199-2018.2-199.x86_64.rpm"
75 + "mkl-core-f-32bit-2018.2-199-2018.2-199.x86_64.rpm"
76 + "mkl-core-ps-32bit-2018.2-199-2018.2-199.x86_64.rpm"
77 + "mkl-core-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm"
78 + "mkl-f95-32bit-2018.2-199-2018.2-199.x86_64.rpm"
79 + "mkl-gnu-32bit-2018.2-199-2018.2-199.x86_64.rpm"
80 + "mkl-gnu-c-32bit-2018.2-199-2018.2-199.x86_64.rpm"
81 + "mkl-gnu-f-32bit-2018.2-199-2018.2-199.x86_64.rpm"
82 + "mkl-gnu-f-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm"
83 + "mkl-gnu-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm"
84 + "mkl-tbb-32bit-2018.2-199-2018.2-199.x86_64.rpm"
85 + "mkl-tbb-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm")
86 +
87 +pkg_setup() {
88 + if use doc; then
89 + INTEL_DIST_DAT_RPMS+=(
90 + "mkl-doc-2018-2018.2-199.noarch.rpm"
91 + "mkl-doc-ps-2018-2018.2-199.noarch.rpm")
92 + fi
93 +}
94 +
95 +_mkl_add_alternative_provider() {
96 + local prov=$1; shift
97 + local alt
98 + for alt in $*; do
99 + NUMERIC_MODULE_NAME=${prov} \
100 + numeric-int64-multibuild_install_alternative ${alt} ${prov}
101 + done
102 +}
103 +
104 +src_install() {
105 + intel-sdp-r1_src_install
106 +
107 + sed -i -e "s#<INSTALLDIR>#$(isdp_get-sdp-edir)/linux#" \
108 + "${ED}"/opt/intel/compilers_and_libraries_2018.2.199/linux/mkl/bin/pkgconfig/* \
109 + || die "sed failed"
110 +
111 + mkdir -p "${ED}"/usr/$(get_libdir)/pkgconfig/ || die "mkdir failed"
112 + cp "${ED}"/opt/intel/compilers_and_libraries_2018.2.199/linux/mkl/bin/pkgconfig/* \
113 + "${ED}"/usr/$(get_libdir)/pkgconfig/ || die "cp failed"
114 +
115 + if use int64; then
116 + _mkl_add_alternative_provider mkl-dynamic-ilp64-seq blas lapack cblas lapacke scalapack
117 + _mkl_add_alternative_provider mkl-dynamic-ilp64-iomp blas lapack cblas lapacke scalapack
118 + else
119 + _mkl_add_alternative_provider mkl-dynamic-lp64-seq blas lapack cblas lapacke scalapack
120 + _mkl_add_alternative_provider mkl-dynamic-lp64-iomp blas lapack cblas lapacke scalapack
121 + fi
122 +
123 + local ldpath="LDPATH="
124 + use abi_x86_64 && ldpath+=":$(isdp_get-sdp-edir)/linux/mkl/lib/$(isdp_convert2intel-arch abi_x86_64)"
125 + use abi_x86_32 && ldpath+=":$(isdp_get-sdp-edir)/linux/mkl/lib/$(isdp_convert2intel-arch abi_x86_32)"
126 + echo "${ldpath}" > "${T}"/35mkl || die
127 + doenvd "${T}"/35mkl
128 +}