You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/intel-common/intel-common-13.0.0.079.ebuild,v 1.1 2012/09/16 19:10:55 jlec Exp $
|
||
|
|
||
|
EAPI=4
|
||
|
|
||
|
INTEL_DPN=parallel_studio_xe
|
||
|
INTEL_DID=2749
|
||
|
INTEL_DPV=2013
|
||
|
INTEL_SUBDIR=composerxe
|
||
|
|
||
|
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"
|
||
|
|
||
|
CHECKREQS_DISK_BUILD=325M
|
||
|
|
||
|
pkg_setup() {
|
||
|
einfo ${INTEL_SDP_EDIR}
|
||
|
INTEL_BIN_RPMS="openmp openmp-devel"
|
||
|
INTEL_DAT_RPMS="compilerpro-common"
|
||
|
if use compiler; then
|
||
|
INTEL_BIN_RPMS+=" compilerpro-devel sourcechecker-devel"
|
||
|
INTEL_DAT_RPMS+=" compilerpro-vars sourcechecker-common"
|
||
|
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
|
||
|
MANPATH=${INTEL_SDP_EDIR}/man/en_US
|
||
|
INTEL_LICENSE_FILE=${INTEL_SDP_EDIR}/licenses
|
||
|
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}
|
||
|
dodir ${INTEL_SDP_EDIR}/licenses
|
||
|
}
|