From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0ECE0138331 for ; Tue, 3 Apr 2018 16:45:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0254E0CCD; Tue, 3 Apr 2018 16:45:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0239E0B61 for ; Tue, 3 Apr 2018 16:45:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A963335D12 for ; Tue, 3 Apr 2018 16:45:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C3CAF277 for ; Tue, 3 Apr 2018 16:44:58 +0000 (UTC) From: "Matthias Maier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthias Maier" Message-ID: <1522773890.3b7aff577379a8fdd3898e6e78248559ceceaa23.tamiko@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/mkl/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/mkl/mkl-18.0.2.199.ebuild X-VCS-Directories: sci-libs/mkl/ X-VCS-Committer: tamiko X-VCS-Committer-Name: Matthias Maier X-VCS-Revision: 3b7aff577379a8fdd3898e6e78248559ceceaa23 X-VCS-Branch: master Date: Tue, 3 Apr 2018 16:44:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a2bfe288-2ead-4d54-88ef-48dd7dc6ad12 X-Archives-Hash: 204ee54d1c21195c406b66733ffb0450 commit: 3b7aff577379a8fdd3898e6e78248559ceceaa23 Author: Matthias Maier gentoo org> AuthorDate: Tue Apr 3 14:48:56 2018 +0000 Commit: Matthias Maier gentoo org> CommitDate: Tue Apr 3 16:44:50 2018 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3b7aff57 sci-libs/mkl: version bump to 18.0.2.199 Package-Manager: Portage-2.3.28, Repoman-2.3.9 sci-libs/mkl/mkl-18.0.2.199.ebuild | 108 +++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/sci-libs/mkl/mkl-18.0.2.199.ebuild b/sci-libs/mkl/mkl-18.0.2.199.ebuild new file mode 100644 index 000000000..ad98b798f --- /dev/null +++ b/sci-libs/mkl/mkl-18.0.2.199.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +INTEL_DIST_SKU=3235 +INTEL_DIST_PV=2018_update2_professional_edition + +inherit alternatives-2 intel-sdp-r1 numeric-int64-multibuild + +DESCRIPTION="Intel Math Kernel Library: linear algebra, fft, math functions" +HOMEPAGE="http://software.intel.com/en-us/articles/intel-mkl/" + +IUSE="doc int64" +KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux" + +DEPEND="" +RDEPEND="~dev-libs/intel-common-${PV}[compiler]" + +CHECKREQS_DISK_BUILD=3500M + +INTEL_DIST_DAT_RPMS=( + "mkl-cluster-c-2018.2-199-2018.2-199.noarch.rpm" + "mkl-cluster-common-2018.2-199-2018.2-199.noarch.rpm" + "mkl-cluster-f-2018.2-199-2018.2-199.noarch.rpm" + "mkl-common-2018.2-199-2018.2-199.noarch.rpm" + "mkl-common-c-2018.2-199-2018.2-199.noarch.rpm" + "mkl-common-c-ps-2018.2-199-2018.2-199.noarch.rpm" + "mkl-common-f-2018.2-199-2018.2-199.noarch.rpm" + "mkl-common-ps-2018.2-199-2018.2-199.noarch.rpm" + "mkl-f95-common-2018.2-199-2018.2-199.noarch.rpm") +INTEL_DIST_AMD64_RPMS=( + "mkl-cluster-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-cluster-rt-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-c-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-f-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-ps-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-rt-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-f95-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-c-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-f-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-f-rt-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-rt-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-pgi-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-pgi-c-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-pgi-f-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-pgi-rt-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-tbb-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-tbb-rt-2018.2-199-2018.2-199.x86_64.rpm") +INTEL_DIST_X86_RPMS=( + "mkl-core-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-c-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-f-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-ps-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-core-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-f95-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-c-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-f-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-f-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-gnu-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-tbb-32bit-2018.2-199-2018.2-199.x86_64.rpm" + "mkl-tbb-rt-32bit-2018.2-199-2018.2-199.x86_64.rpm") + +pkg_setup() { + if use doc; then + INTEL_DIST_DAT_RPMS+=( + "mkl-doc-2018-2018.2-199.noarch.rpm" + "mkl-doc-ps-2018-2018.2-199.noarch.rpm") + fi +} + +_mkl_add_alternative_provider() { + local prov=$1; shift + local alt + for alt in $*; do + NUMERIC_MODULE_NAME=${prov} \ + numeric-int64-multibuild_install_alternative ${alt} ${prov} + done +} + +src_install() { + intel-sdp-r1_src_install + + sed -i -e "s##$(isdp_get-sdp-edir)/linux#" \ + "${ED}"/opt/intel/compilers_and_libraries_2018.2.199/linux/mkl/bin/pkgconfig/* \ + || die "sed failed" + + mkdir -p "${ED}"/usr/$(get_libdir)/pkgconfig/ || die "mkdir failed" + cp "${ED}"/opt/intel/compilers_and_libraries_2018.2.199/linux/mkl/bin/pkgconfig/* \ + "${ED}"/usr/$(get_libdir)/pkgconfig/ || die "cp failed" + + if use int64; then + _mkl_add_alternative_provider mkl-dynamic-ilp64-seq blas lapack cblas lapacke scalapack + _mkl_add_alternative_provider mkl-dynamic-ilp64-iomp blas lapack cblas lapacke scalapack + else + _mkl_add_alternative_provider mkl-dynamic-lp64-seq blas lapack cblas lapacke scalapack + _mkl_add_alternative_provider mkl-dynamic-lp64-iomp blas lapack cblas lapacke scalapack + fi + + local ldpath="LDPATH=" + use abi_x86_64 && ldpath+=":$(isdp_get-sdp-edir)/linux/mkl/lib/$(isdp_convert2intel-arch abi_x86_64)" + use abi_x86_32 && ldpath+=":$(isdp_get-sdp-edir)/linux/mkl/lib/$(isdp_convert2intel-arch abi_x86_32)" + echo "${ldpath}" > "${T}"/35mkl || die + doenvd "${T}"/35mkl +}