1 |
commit: 5f2007a84f201a87b349dd9fe24cd84a060e41b0 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 3 02:54:56 2018 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 3 03:52:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=5f2007a8 |
7 |
|
8 |
dev-libs/intel-common: version bump to 18.0.2.199 |
9 |
|
10 |
Package-Manager: Portage-2.3.28, Repoman-2.3.9 |
11 |
|
12 |
.../intel-common/intel-common-18.0.2.199.ebuild | 95 ++++++++++++++++++++++ |
13 |
1 file changed, 95 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/intel-common/intel-common-18.0.2.199.ebuild b/dev-libs/intel-common/intel-common-18.0.2.199.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000..652d3d82c |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/intel-common/intel-common-18.0.2.199.ebuild |
20 |
@@ -0,0 +1,95 @@ |
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 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 l10n_ja" |
35 |
+KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux" |
36 |
+ |
37 |
+CHECKREQS_DISK_BUILD=750M |
38 |
+ |
39 |
+INTEL_DIST_BIN_RPMS=() |
40 |
+INTEL_DIST_DAT_RPMS=( |
41 |
+ "c-comp-common-18.0.2-199-18.0.2-199.noarch.rpm" |
42 |
+ "comp-l-all-common-18.0.2-199-18.0.2-199.noarch.rpm" |
43 |
+ "comp-l-all-vars-18.0.2-199-18.0.2-199.noarch.rpm" |
44 |
+ "comp-nomcu-vars-18.0.2-199-18.0.2-199.noarch.rpm") |
45 |
+INTEL_DIST_X86_RPMS=( |
46 |
+ "comp-32bit-18.0.2-199-18.0.2-199.x86_64.rpm" |
47 |
+ "comp-ps-32bit-18.0.2-199-18.0.2-199.x86_64.rpm" |
48 |
+ "comp-ps-ss-bec-32bit-18.0.2-199-18.0.2-199.x86_64.rpm") |
49 |
+INTEL_DIST_AMD64_RPMS=( |
50 |
+ "comp-18.0.2-199-18.0.2-199.x86_64.rpm" |
51 |
+ "comp-ps-18.0.2-199-18.0.2-199.x86_64.rpm" |
52 |
+ "comp-ps-ss-18.0.2-199-18.0.2-199.x86_64.rpm" |
53 |
+ "comp-ps-ss-bec-18.0.2-199-18.0.2-199.x86_64.rpm") |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ if use doc; then |
57 |
+ INTEL_DIST_DAT_RPMS+=( "comp-doc-18.0-18.0.2-199.noarch.rpm" ) |
58 |
+ fi |
59 |
+ |
60 |
+ if use mpi; then |
61 |
+ INTEL_DIST_AMD64_RPMS+=( "mpi-rt-2018.2-199-2018.2-199.x86_64.rpm" ) |
62 |
+ |
63 |
+ if use doc; then |
64 |
+ INTEL_DIST_DAT_RPMS+=( "mpi-doc-2018-2018.2-199.x86_64.rpm" ) |
65 |
+ fi |
66 |
+ fi |
67 |
+ |
68 |
+ if use openmp; then |
69 |
+ INTEL_DIST_DAT_RPMS+=( "openmp-common-18.0.2-199-18.0.2-199.noarch.rpm" ) |
70 |
+ INTEL_DIST_AMD64_RPMS+=( "openmp-18.0.2-199-18.0.2-199.x86_64.rpm" ) |
71 |
+ INTEL_DIST_X86_RPMS+=( "openmp-32bit-18.0.2-199-18.0.2-199.x86_64.rpm" ) |
72 |
+ |
73 |
+ if use compiler; then |
74 |
+ INTEL_DIST_DAT_RPMS+=( |
75 |
+ "openmp-common-icc-18.0.2-199-18.0.2-199.noarch.rpm" |
76 |
+ "openmp-common-ifort-18.0.2-199-18.0.2-199.noarch.rpm") |
77 |
+ INTEL_DIST_AMD64_RPMS+=( |
78 |
+ "openmp-ifort-18.0.2-199-18.0.2-199.x86_64.rpm") |
79 |
+ INTEL_DIST_X86_RPMS+=( |
80 |
+ "openmp-ifort-32bit-18.0.2-199-18.0.2-199.x86_64.rpm") |
81 |
+ fi |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ intel-sdp-r1_src_install |
87 |
+ local path rootpath ldpath arch fenv=35intelsdp |
88 |
+ cat > ${fenv} <<-EOF |
89 |
+ NLSPATH=$(isdp_get-sdp-edir)/linux/compiler/lib/$(isdp_get-native-abi-arch)/locale/en_US/%N |
90 |
+ INTEL_LICENSE_FILE=${EPREFIX%/}/opt/intel/licenses:$(isdp_get-sdp-edir)/licenses |
91 |
+ EOF |
92 |
+ for arch in $(isdp_get-sdp-installed-arches); do |
93 |
+ path="${path}:$(isdp_get-sdp-edir)/linux/bin/${arch}" |
94 |
+ rootpath="${rootpath}:$(isdp_get-sdp-edir)/linux/bin/${arch}" |
95 |
+ ldpath="${ldpath}:$(isdp_get-sdp-edir)/linux/compiler/lib/${arch}" |
96 |
+ done |
97 |
+ if use mpi && use amd64; then |
98 |
+ path="${path}:$(isdp_get-sdp-edir)/linux/mpi/intel64/bin/" |
99 |
+ rootpath="${rootpath}:$(isdp_get-sdp-edir)/linux/mpi/intel64/bin/" |
100 |
+ ldpath="${ldpath}:$(isdp_get-sdp-edir)/linux/mpi/intel64/lib/" |
101 |
+ fi |
102 |
+ cat >> ${fenv} <<-EOF |
103 |
+ PATH=${path#:} |
104 |
+ ROOTPATH=${rootpath#:} |
105 |
+ LDPATH=${ldpath#:} |
106 |
+ EOF |
107 |
+ |
108 |
+ doenvd ${fenv} |
109 |
+ |
110 |
+ cat >> "${T}"/40-${PN} <<- EOF |
111 |
+ SEARCH_DIRS_MASK=$(isdp_get-sdp-edir) |
112 |
+ EOF |
113 |
+ insinto /etc/revdep-rebuild/ |
114 |
+ doins "${T}"/40-${PN} |
115 |
+} |