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: Sat, 25 May 2019 06:36:20
Message-Id: 1558766162.fa2625ab33b84ab328dfa68a5a30b3071faf6c04.tamiko@gentoo
1 commit: fa2625ab33b84ab328dfa68a5a30b3071faf6c04
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 24 20:23:54 2019 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Sat May 25 06:36:02 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=fa2625ab
7
8 dev-libs/intel-common: 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 .../intel-common/intel-common-19.0.4.243.ebuild | 101 +++++++++++++++++++++
14 1 file changed, 101 insertions(+)
15
16 diff --git a/dev-libs/intel-common/intel-common-19.0.4.243.ebuild b/dev-libs/intel-common/intel-common-19.0.4.243.ebuild
17 new file mode 100644
18 index 000000000..f565b434b
19 --- /dev/null
20 +++ b/dev-libs/intel-common/intel-common-19.0.4.243.ebuild
21 @@ -0,0 +1,101 @@
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 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.0.3-199
40 +MY_PV2=$(ver_cut 1-2) # 19.0
41 +MY_PV3='20'$(ver_cut 1) # 2019
42 +MY_PV4="${MY_PV3}."$(ver_cut 3)'-'$(ver_cut 4) # 2019.3-199
43 +
44 +CHECKREQS_DISK_BUILD=750M
45 +
46 +INTEL_DIST_BIN_RPMS=()
47 +INTEL_DIST_DAT_RPMS=(
48 + "c-comp-common-${MY_PV}-${MY_PV}.noarch.rpm"
49 + "comp-l-all-common-${MY_PV}-${MY_PV}.noarch.rpm"
50 + "comp-l-all-vars-${MY_PV}-${MY_PV}.noarch.rpm"
51 + "comp-nomcu-vars-${MY_PV}-${MY_PV}.noarch.rpm")
52 +INTEL_DIST_X86_RPMS=(
53 + "comp-32bit-${MY_PV}-${MY_PV}.x86_64.rpm"
54 + "comp-ps-32bit-${MY_PV}-${MY_PV}.x86_64.rpm"
55 + "comp-ps-ss-bec-32bit-${MY_PV}-${MY_PV}.x86_64.rpm")
56 +INTEL_DIST_AMD64_RPMS=(
57 + "comp-${MY_PV}-${MY_PV}.x86_64.rpm"
58 + "comp-ps-${MY_PV}-${MY_PV}.x86_64.rpm"
59 + "comp-ps-ss-${MY_PV}-${MY_PV}.x86_64.rpm"
60 + "comp-ps-ss-bec-${MY_PV}-${MY_PV}.x86_64.rpm")
61 +
62 +pkg_setup() {
63 + if use doc; then
64 + INTEL_DIST_DAT_RPMS+=( "comp-doc-${MY_PV2}-${MY_PV}.noarch.rpm" )
65 + fi
66 +
67 + if use mpi; then
68 + INTEL_DIST_AMD64_RPMS+=( "mpi-rt-${MY_PV4}-${MY_PV4}.x86_64.rpm" )
69 +
70 + if use doc; then
71 + INTEL_DIST_DAT_RPMS+=( "mpi-doc-${MY_PV3}-${MY_PV4}.x86_64.rpm" )
72 + fi
73 + fi
74 +
75 + if use openmp; then
76 + INTEL_DIST_DAT_RPMS+=( "openmp-common-${MY_PV}-${MY_PV}.noarch.rpm" )
77 + INTEL_DIST_AMD64_RPMS+=( "openmp-${MY_PV}-${MY_PV}.x86_64.rpm" )
78 + INTEL_DIST_X86_RPMS+=( "openmp-32bit-${MY_PV}-${MY_PV}.x86_64.rpm" )
79 +
80 + if use compiler; then
81 + INTEL_DIST_DAT_RPMS+=(
82 + "openmp-common-icc-${MY_PV}-${MY_PV}.noarch.rpm"
83 + "openmp-common-ifort-${MY_PV}-${MY_PV}.noarch.rpm")
84 + INTEL_DIST_AMD64_RPMS+=(
85 + "openmp-ifort-${MY_PV}-${MY_PV}.x86_64.rpm")
86 + INTEL_DIST_X86_RPMS+=(
87 + "openmp-ifort-32bit-${MY_PV}-${MY_PV}.x86_64.rpm")
88 + fi
89 + fi
90 +}
91 +
92 +src_install() {
93 + intel-sdp-r1_src_install
94 + local path rootpath ldpath arch fenv=35intelsdp
95 + cat > ${fenv} <<-EOF
96 + NLSPATH=$(isdp_get-sdp-edir)/linux/compiler/lib/$(isdp_get-native-abi-arch)/locale/en_US/%N
97 + INTEL_LICENSE_FILE=${EPREFIX%/}/opt/intel/licenses:$(isdp_get-sdp-edir)/licenses
98 + EOF
99 + for arch in $(isdp_get-sdp-installed-arches); do
100 + path="${path}:$(isdp_get-sdp-edir)/linux/bin/${arch}"
101 + rootpath="${rootpath}:$(isdp_get-sdp-edir)/linux/bin/${arch}"
102 + ldpath="${ldpath}:$(isdp_get-sdp-edir)/linux/compiler/lib/${arch}"
103 + done
104 + if use mpi && use amd64; then
105 + path="${path}:$(isdp_get-sdp-edir)/linux/mpi/intel64/bin/"
106 + rootpath="${rootpath}:$(isdp_get-sdp-edir)/linux/mpi/intel64/bin/"
107 + ldpath="${ldpath}:$(isdp_get-sdp-edir)/linux/mpi/intel64/lib/"
108 + fi
109 + cat >> ${fenv} <<-EOF
110 + PATH=${path#:}
111 + ROOTPATH=${rootpath#:}
112 + LDPATH=${ldpath#:}
113 + EOF
114 +
115 + doenvd ${fenv}
116 +
117 + cat >> "${T}"/40-${PN} <<- EOF
118 + SEARCH_DIRS_MASK=$(isdp_get-sdp-edir)
119 + EOF
120 + insinto /etc/revdep-rebuild/
121 + doins "${T}"/40-${PN}
122 +}