aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-07-24 11:16:06 +0200
committerJustin Lecher <jlec@gentoo.org>2013-07-24 11:16:06 +0200
commit45abf7a4c3d70af48bfb531b0cd82d87ec069027 (patch)
treebd27759592eef63b4dae14e373fb1869d940d691 /eclass
parentdev-lang/vtune: Version BUmp and fix missing libs, #472572 (diff)
downloadsci-45abf7a4c3d70af48bfb531b0cd82d87ec069027.tar.gz
sci-45abf7a4c3d70af48bfb531b0cd82d87ec069027.tar.bz2
sci-45abf7a4c3d70af48bfb531b0cd82d87ec069027.zip
Add INTEL_SINGLE_ARCH
Set this if only the multilib is provided by upstream Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/intel-sdp.eclass17
1 files changed, 13 insertions, 4 deletions
diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass
index cd1212259..f5f01d8d8 100644
--- a/eclass/intel-sdp.eclass
+++ b/eclass/intel-sdp.eclass
@@ -102,6 +102,11 @@
#
# e.g. CLI_install/rpm/intel-vtune-amplifier-xe-cli-common
+# @ECLASS-VARIABLE: INTEL_SINGLE_ARCH
+# @DESCRIPTION:
+# Unset, if only the multilib package will be provided by intel
+: ${INTEL_SINGLE_ARCH:=true}
+
# @ECLASS-VARIABLE: INTEL_SDP_DB
# @DESCRIPTION:
# Full path to intel registry db
@@ -115,10 +120,14 @@ _INTEL_PV3=$(get_version_component_range 3)
_INTEL_PV4=$(get_version_component_range 4)
_INTEL_URI="http://registrationcenter-download.intel.com/irc_nas/${INTEL_DID}/${INTEL_DPN}"
-SRC_URI="
- amd64? ( multilib? ( ${_INTEL_URI}_${INTEL_DPV}.${INTEL_TARX} ) )
- amd64? ( !multilib? ( ${_INTEL_URI}_${INTEL_DPV}_intel64.${INTEL_TARX} ) )
- x86? ( ${_INTEL_URI}_${INTEL_DPV}_ia32.${INTEL_TARX} )"
+if [ ${INTEL_SINGLE_ARCH} == true ]; then
+ SRC_URI="
+ amd64? ( multilib? ( ${_INTEL_URI}_${INTEL_DPV}.${INTEL_TARX} ) )
+ amd64? ( !multilib? ( ${_INTEL_URI}_${INTEL_DPV}_intel64.${INTEL_TARX} ) )
+ x86? ( ${_INTEL_URI}_${INTEL_DPV}_ia32.${INTEL_TARX} )"
+else
+ SRC_URI="${_INTEL_URI}_${INTEL_DPV}.${INTEL_TARX}"
+fi
LICENSE="Intel-SDP"
# Future work, #394411