forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
INTEL_DPN=parallel_studio_xe | ||
INTEL_DID=8470 | ||
INTEL_DPV=2015_update6 | ||
INTEL_SUBDIR=composerxe | ||
INTEL_SINGLE_ARCH=false | ||
|
||
inherit intel-sdp | ||
|
||
DESCRIPTION="Common libraries and utilities needed for Intel compilers and libraries" | ||
HOMEPAGE="http://software.intel.com/en-us/articles/intel-compilers/" | ||
|
||
IUSE="+compiler" | ||
KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux" | ||
|
||
CHECKREQS_DISK_BUILD=375M | ||
|
||
pkg_setup() { | ||
einfo ${INTEL_SDP_EDIR} | ||
INTEL_BIN_RPMS="openmp openmp-devel" | ||
INTEL_DAT_RPMS="compilerpro-common compilerpro-common-pset" | ||
if use compiler; then | ||
INTEL_BIN_RPMS+=" compilerpro-devel sourcechecker-devel" | ||
INTEL_DAT_RPMS+=" compilerpro-vars sourcechecker-common ccompxe compxe fcompxe" | ||
fi | ||
intel-sdp_pkg_setup | ||
} | ||
|
||
src_install() { | ||
intel-sdp_src_install | ||
local path rootpath ldpath arch fenv=35intelsdp | ||
cat > ${fenv} <<-EOF | ||
NLSPATH=${INTEL_SDP_EDIR}/lib/locale/en_US/%N | ||
INTEL_LICENSE_FILE="${INTEL_SDP_EDIR}"/licenses:"${EPREFIX}/opt/intel/license" | ||
EOF | ||
for arch in ${INTEL_ARCH}; do | ||
path=${path}:${INTEL_SDP_EDIR}/bin/${arch}:${INTEL_SDP_EDIR}/mpirt/bin/${arch} | ||
rootpath=${rootpath}:${INTEL_SDP_EDIR}/bin/${arch}:${INTEL_SDP_EDIR}/mpirt/bin/${arch} | ||
ldpath=${ldpath}:${INTEL_SDP_EDIR}/compiler/lib/${arch}:${INTEL_SDP_EDIR}/mpirt/lib/${arch} | ||
done | ||
cat >> ${fenv} <<-EOF | ||
PATH=${path#:} | ||
ROOTPATH=${rootpath#:} | ||
LDPATH=${ldpath#:} | ||
EOF | ||
|
||
doenvd ${fenv} | ||
|
||
cat >> "${T}"/40-${PN} <<- EOF | ||
SEARCH_DIRS_MASK="${INTEL_SDP_EDIR}" | ||
EOF | ||
insinto /etc/revdep-rebuild/ | ||
doins "${T}"/40-${PN} | ||
} |