From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QMwDs-00043z-3V for garchives@archives.gentoo.org; Thu, 19 May 2011 05:56:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8894C1C0A5; Thu, 19 May 2011 05:56:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 55A1F1C0A5 for ; Thu, 19 May 2011 05:56:28 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BD4ED1B4015 for ; Thu, 19 May 2011 05:56:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E836A80504 for ; Thu, 19 May 2011 05:56:26 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: Subject: [gentoo-commits] proj/sci:master commit in: eclass/ X-VCS-Repository: proj/sci X-VCS-Files: eclass/intel-sdp.eclass X-VCS-Directories: eclass/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: e9839c4df0ffa4bed9c1e7764b1d682be5eecf2e Date: Thu, 19 May 2011 05:56:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 5814714c59a98e62e12e7a925bbe5f3f commit: e9839c4df0ffa4bed9c1e7764b1d682be5eecf2e Author: Justin Lecher gentoo org> AuthorDate: Thu May 19 05:44:40 2011 +0000 Commit: Justin Lecher gentoo org> CommitDate: Thu May 19 05:44:40 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3De9839c4d fix intel-sdp.eclass for prefix --- eclass/intel-sdp.eclass | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass index 0234520..be74bd1 100644 --- a/eclass/intel-sdp.eclass +++ b/eclass/intel-sdp.eclass @@ -52,7 +52,7 @@ RDEPEND=3D"" DEPEND=3D">=3Dapp-arch/rpm2targz-9.0.0.3g" INTEL_SDP_YEAR=3D${INTEL_DPV%_update*} INTEL_SDP_DIR=3D"opt/intel/${INTEL_SUBDIR}-${INTEL_SDP_YEAR:-${INTEL_PV1= }}.${INTEL_PV3}.${INTEL_PV4}" -INTEL_SDP_EDIR=3D"${EROOT#/}/${INTEL_SDP_DIR}" +INTEL_SDP_EDIR=3D"${EROOT%/}/${INTEL_SDP_DIR}" =20 S=3D"${WORKDIR}" =20 @@ -132,15 +132,16 @@ intel-sdp_src_install() { find opt -name \*sh -type f -exec sed -i \ -e "s:<.*DIR>:${INTEL_SDP_EDIR}:g" \ '{}' \; + mkdir -p "${ED:-${D}}"/ || die mv opt "${ED:-${D}}"/ || die "moving files failed" } =20 intel-sdp_pkg_postinst() { # add product registry to intel "database" local l r - INTEL_SDP_DB=3D"${EROOT#/}"/opt/intel/intel-sdp-products.db + INTEL_SDP_DB=3D"${EROOT%/}"/opt/intel/intel-sdp-products.db for r in ${INTEL_RPMS}; do - l=3D"$(ls -1 ${EROOT#/}/opt/intel/.${r}_*.log | head -n 1)" + l=3D"$(ls -1 ${EROOT%/}/opt/intel/.${r}_*.log | head -n 1)" echo >> ${INTEL_SDP_DB} \ "<:${r%-${INTEL_PV4}*}-${INTEL_PV4}:${r}:${INTEL_SDP_EDIR}:${l}:>" done