/[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.14 Revision 1.15
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.14 2013/07/29 09:50:09 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/intel-sdp.eclass,v 1.15 2013/09/29 18:00:30 ottxor 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>
362 INTEL_RPMS+=( intel-${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.noarch.rpm ) 362 INTEL_RPMS+=( intel-${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.noarch.rpm )
363 else 363 else
364 INTEL_RPMS_FULL+=( ${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.noarch.rpm ) 364 INTEL_RPMS_FULL+=( ${p}-${_INTEL_PV4}-${_INTEL_PV1}.${_INTEL_PV2}-${_INTEL_PV3}.noarch.rpm )
365 fi 365 fi
366 done 366 done
367
368 case "${EAPI:-0}" in
369 0|1|2|3) intel-sdp_pkg_pretend ;;
370 esac
371} 367}
372 368
373# @FUNCTION: intel-sdp_src_unpack 369# @FUNCTION: intel-sdp_src_unpack
374# @DESCRIPTION: 370# @DESCRIPTION:
375# Unpacking necessary rpms from tarball, extract them and rearrange the output. 371# Unpacking necessary rpms from tarball, extract them and rearrange the output.
470 l="$(ls -1 ${EROOT%/}/opt/intel/.${r}_*.log | head -n 1)" 466 l="$(ls -1 ${EROOT%/}/opt/intel/.${r}_*.log | head -n 1)"
471 echo >> ${INTEL_SDP_DB} \ 467 echo >> ${INTEL_SDP_DB} \
472 "<:${r%-${_INTEL_PV4}*}-${_INTEL_PV4}:${r}:${INTEL_SDP_EDIR}:${l}:>" 468 "<:${r%-${_INTEL_PV4}*}-${_INTEL_PV4}:${r}:${INTEL_SDP_EDIR}:${l}:>"
473 done 469 done
474 _isdp_run-test 470 _isdp_run-test
471
472 if [[ ${PN} = icc ]] && has_version ">=dev-util/ccache-3.1.9-r2" ; then
473 #add ccache links as icc might get installed after ccache
474 "${EROOT}"/usr/bin/ccache-config --install-links
475 fi
475} 476}
476 477
477# @FUNCTION: intel-sdp_pkg_postrm 478# @FUNCTION: intel-sdp_pkg_postrm
478# @DESCRIPTION: 479# @DESCRIPTION:
479# Sanitize intel database 480# Sanitize intel database
485 sed -i \ 486 sed -i \
486 -e "/${r}/d" \ 487 -e "/${r}/d" \
487 ${INTEL_SDP_DB} 488 ${INTEL_SDP_DB}
488 done 489 done
489 fi 490 fi
490}
491 491
492 if [[ ${PN} = icc ]] && has_version ">=dev-util/ccache-3.1.9-r2" && [[ -z ${REPLACED_BY_VERSION} ]]; then
493 # --remove-links would remove all links, --install-links updates them
494 "${EROOT}"/usr/bin/ccache-config --install-links
495 fi
496}
497
492EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst pkg_postrm 498EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst pkg_postrm pkg_pretend
493case "${EAPI:-0}" in 499case "${EAPI:-0}" in
494 0|1|2|3) ;; 500 0|1|2|3)die "EAPI=${EAPI} is not supported anymore" ;;
495 4|5) EXPORT_FUNCTIONS pkg_pretend ;; 501 4|5) ;;
496 *) die "EAPI=${EAPI} is not supported" ;; 502 *) die "EAPI=${EAPI} is not supported" ;;
497esac 503esac

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20