/[gentoo-x86]/eclass/intel-sdp.eclass
Gentoo

Diff of /eclass/intel-sdp.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 Revision 1.12
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/intel-sdp.eclass,v 1.11 2013/02/14 16:29:00 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/intel-sdp.eclass,v 1.12 2013/07/19 13:05:23 jlec Exp $
4 4
5# @ECLASS: intel-sdp.eclass 5# @ECLASS: intel-sdp.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Justin Lecher <jlec@gentoo.org> 7# Justin Lecher <jlec@gentoo.org>
8# Sci Team <sci@gentoo.org> 8# Sci Team <sci@gentoo.org>
39# 39#
40# e.g. 2011_sp1_update2 40# e.g. 2011_sp1_update2
41# 41#
42# Must be defined before inheriting the eclass 42# Must be defined before inheriting the eclass
43 43
44# @ECLASS-VARIABLE: INTEL_TARX
45# @DEFAULT_UNSET
46# @DESCRIPTION:
47# The package extention.
48# To find out its value, see the links to download in
49# https://registrationcenter.intel.com/RegCenter/MyProducts.aspx
50#
51# e.g. tar.gz
52#
53# Must be defined before inheriting the eclass
54: ${INTEL_TARX:=tgz}
55
44# @ECLASS-VARIABLE: INTEL_SUBDIR 56# @ECLASS-VARIABLE: INTEL_SUBDIR
45# @DEFAULT_UNSET 57# @DEFAULT_UNSET
46# @DESCRIPTION: 58# @DESCRIPTION:
47# The package sub-directory where it will end-up in /opt/intel 59# The package sub-directory where it will end-up in /opt/intel
48# To find out its value, you have to do a raw install from the Intel tar ball 60# To find out its value, you have to do a raw install from the Intel tar ball
93_INTEL_PV3=$(get_version_component_range 3) 105_INTEL_PV3=$(get_version_component_range 3)
94_INTEL_PV4=$(get_version_component_range 4) 106_INTEL_PV4=$(get_version_component_range 4)
95_INTEL_URI="http://registrationcenter-download.intel.com/irc_nas/${INTEL_DID}/${INTEL_DPN}" 107_INTEL_URI="http://registrationcenter-download.intel.com/irc_nas/${INTEL_DID}/${INTEL_DPN}"
96 108
97SRC_URI=" 109SRC_URI="
98 amd64? ( multilib? ( ${_INTEL_URI}_${INTEL_DPV}.tgz ) ) 110 amd64? ( multilib? ( ${_INTEL_URI}_${INTEL_DPV}.${INTEL_TARX} ) )
99 amd64? ( !multilib? ( ${_INTEL_URI}_${INTEL_DPV}_intel64.tgz ) ) 111 amd64? ( !multilib? ( ${_INTEL_URI}_${INTEL_DPV}_intel64.${INTEL_TARX} ) )
100 x86? ( ${_INTEL_URI}_${INTEL_DPV}_ia32.tgz )" 112 x86? ( ${_INTEL_URI}_${INTEL_DPV}_ia32.${INTEL_TARX} )"
101 113
102LICENSE="Intel-SDP" 114LICENSE="Intel-SDP"
103# Future work, #394411 115# Future work, #394411
104#SLOT="${_INTEL_PV1}.${_INTEL_PV2}" 116#SLOT="${_INTEL_PV1}.${_INTEL_PV2}"
105SLOT="0" 117SLOT="0"
339 351
340 for t in ${A}; do 352 for t in ${A}; do
341 for r in ${INTEL_RPMS}; do 353 for r in ${INTEL_RPMS}; do
342 for subdir in ${INTEL_RPMS_DIRS}; do 354 for subdir in ${INTEL_RPMS_DIRS}; do
343 rpmdir=${t%%.*}/${subdir} 355 rpmdir=${t%%.*}/${subdir}
356 debug-print "Adding ${rpmdir}/${r} to decompression list"
344 list+=( ${rpmdir}/${r}) 357 list+=( ${rpmdir}/${r})
345 done 358 done
346 done 359 done
347 tar xf "${DISTDIR}"/${t} ${list[@]} 2> /dev/null || die 360 tar xvf "${DISTDIR}"/${t} ${list[@]} &> "${T}"/rpm-extraction.log || die
348 for r in ${list[@]}; do 361 for r in ${list[@]}; do
349 rb=$(basename ${r}) 362 rb=$(basename ${r})
350 l=.${rb}_$(date +'%d%m%y_%H%M%S').log 363 l=.${rb}_$(date +'%d%m%y_%H%M%S').log
351 einfo "Unpacking ${rb}" 364 einfo "Unpacking ${rb}"
352 rpm2tar -O ${r} | tar xvf - | sed -e \ 365 rpm2tar -O ${r} | tar xvf - | sed -e \

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20