Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-libs/intel-common/
Date: Tue, 05 May 2020 06:31:17
Message-Id: 1588658679.3574bd0d0f39e3dd4a198fd46f0ff0acb75ce4d3.tamiko@gentoo
1 commit: 3574bd0d0f39e3dd4a198fd46f0ff0acb75ce4d3
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 5 04:06:48 2020 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Tue May 5 06:04:39 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3574bd0d
7
8 dev-libs/intel-common: version bump to 2020 update 1
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 .../intel-common/intel-common-19.1.1.217.ebuild | 102 +++++++++++++++++++++
14 1 file changed, 102 insertions(+)
15
16 diff --git a/dev-libs/intel-common/intel-common-19.1.1.217.ebuild b/dev-libs/intel-common/intel-common-19.1.1.217.ebuild
17 new file mode 100644
18 index 000000000..030b4877c
19 --- /dev/null
20 +++ b/dev-libs/intel-common/intel-common-19.1.1.217.ebuild
21 @@ -0,0 +1,102 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +INTEL_DIST_PV=2020_update1_professional_edition
28 +
29 +inherit intel-sdp-r1
30 +
31 +DESCRIPTION="Common libraries and utilities needed for Intel compilers and libraries"
32 +HOMEPAGE="http://software.intel.com/en-us/articles/intel-compilers/"
33 +
34 +IUSE="+compiler doc +mpi +openmp"
35 +KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
36 +
37 +SLOT="0"
38 +
39 +MY_PV="$(ver_rs 3 '-')" # 19.1.1-217
40 +MY_PV2="$(ver_cut 1-2)" # 19.1
41 +MY_PV3="2019" # 2019
42 +MY_PV4="${MY_PV3}.7-$(ver_cut 4)" # 2019.7-217 sic!
43 +
44 +CHECKREQS_DISK_BUILD=750M
45 +
46 +QA_PREBUILT="*"
47 +
48 +INTEL_DIST_BIN_RPMS=()
49 +INTEL_DIST_DAT_RPMS=(
50 + "c-comp-common-${MY_PV}-${MY_PV}.noarch.rpm"
51 + "comp-l-all-common-${MY_PV}-${MY_PV}.noarch.rpm"
52 + "comp-l-all-vars-${MY_PV}-${MY_PV}.noarch.rpm"
53 + "comp-nomcu-vars-${MY_PV}-${MY_PV}.noarch.rpm")
54 +INTEL_DIST_X86_RPMS=(
55 + "comp-32bit-${MY_PV}-${MY_PV}.x86_64.rpm"
56 + "comp-ps-32bit-${MY_PV}-${MY_PV}.x86_64.rpm"
57 + "comp-ps-ss-bec-32bit-${MY_PV}-${MY_PV}.x86_64.rpm")
58 +INTEL_DIST_AMD64_RPMS=(
59 + "comp-${MY_PV}-${MY_PV}.x86_64.rpm"
60 + "comp-ps-${MY_PV}-${MY_PV}.x86_64.rpm"
61 + "comp-ps-ss-bec-${MY_PV}-${MY_PV}.x86_64.rpm")
62 +
63 +pkg_setup() {
64 + if use doc; then
65 + INTEL_DIST_DAT_RPMS+=( "comp-doc-${MY_PV2}-${MY_PV}.noarch.rpm" )
66 + fi
67 +
68 + if use mpi; then
69 + INTEL_DIST_AMD64_RPMS+=( "mpi-rt-${MY_PV4}-${MY_PV4}.x86_64.rpm" )
70 +
71 + if use doc; then
72 + INTEL_DIST_DAT_RPMS+=( "mpi-doc-${MY_PV3}-${MY_PV4}.x86_64.rpm" )
73 + fi
74 + fi
75 +
76 + if use openmp; then
77 + INTEL_DIST_DAT_RPMS+=( "openmp-common-${MY_PV}-${MY_PV}.noarch.rpm" )
78 + INTEL_DIST_AMD64_RPMS+=( "openmp-${MY_PV}-${MY_PV}.x86_64.rpm" )
79 + INTEL_DIST_X86_RPMS+=( "openmp-32bit-${MY_PV}-${MY_PV}.x86_64.rpm" )
80 +
81 + if use compiler; then
82 + INTEL_DIST_DAT_RPMS+=(
83 + "openmp-common-icc-${MY_PV}-${MY_PV}.noarch.rpm"
84 + "openmp-common-ifort-${MY_PV}-${MY_PV}.noarch.rpm")
85 + INTEL_DIST_AMD64_RPMS+=(
86 + "openmp-ifort-${MY_PV}-${MY_PV}.x86_64.rpm")
87 + INTEL_DIST_X86_RPMS+=(
88 + "openmp-ifort-32bit-${MY_PV}-${MY_PV}.x86_64.rpm")
89 + fi
90 + fi
91 +}
92 +
93 +src_install() {
94 + intel-sdp-r1_src_install
95 + local path rootpath ldpath arch fenv=35intelsdp
96 + cat > ${fenv} <<-EOF
97 + NLSPATH=$(isdp_get-sdp-edir)/linux/compiler/lib/$(isdp_get-native-abi-arch)/locale/en_US/%N
98 + INTEL_LICENSE_FILE=${EPREFIX%/}/opt/intel/licenses:$(isdp_get-sdp-edir)/licenses
99 + EOF
100 + for arch in $(isdp_get-sdp-installed-arches); do
101 + path="${path}:$(isdp_get-sdp-edir)/linux/bin/${arch}"
102 + rootpath="${rootpath}:$(isdp_get-sdp-edir)/linux/bin/${arch}"
103 + ldpath="${ldpath}:$(isdp_get-sdp-edir)/linux/compiler/lib/${arch}"
104 + done
105 + if use mpi && use amd64; then
106 + path="${path}:$(isdp_get-sdp-edir)/linux/mpi/intel64/bin/"
107 + rootpath="${rootpath}:$(isdp_get-sdp-edir)/linux/mpi/intel64/bin/"
108 + ldpath="${ldpath}:$(isdp_get-sdp-edir)/linux/mpi/intel64/lib/"
109 + fi
110 + cat >> ${fenv} <<-EOF
111 + PATH=${path#:}
112 + ROOTPATH=${rootpath#:}
113 + LDPATH=${ldpath#:}
114 + EOF
115 +
116 + doenvd ${fenv}
117 +
118 + cat >> "${T}"/40-${PN} <<- EOF
119 + SEARCH_DIRS_MASK=$(isdp_get-sdp-edir)
120 + EOF
121 + insinto /etc/revdep-rebuild/
122 + doins "${T}"/40-${PN}
123 +}