aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Brehler <marbre@linux.sungazer.de>2015-02-02 09:09:06 +0100
committerMarius Brehler <marbre@linux.sungazer.de>2015-02-02 09:09:06 +0100
commit171a83acc6180827dcc5912b1d42404a81433c54 (patch)
treedc1bb78285a1f217c38980f194844ac00fb2fc3f /dev-util/amdapp/amdapp-2.8.ebuild
parentRevert "Drop dev-util/amdapp-2.8" (diff)
downloadsci-171a83acc6180827dcc5912b1d42404a81433c54.tar.gz
sci-171a83acc6180827dcc5912b1d42404a81433c54.tar.bz2
sci-171a83acc6180827dcc5912b1d42404a81433c54.zip
dev-util/amdap: Fix 32bit build, add link to download archive
Diffstat (limited to 'dev-util/amdapp/amdapp-2.8.ebuild')
-rw-r--r--dev-util/amdapp/amdapp-2.8.ebuild22
1 files changed, 18 insertions, 4 deletions
diff --git a/dev-util/amdapp/amdapp-2.8.ebuild b/dev-util/amdapp/amdapp-2.8.ebuild
index 53a239ea4..1d921bb53 100644
--- a/dev-util/amdapp/amdapp-2.8.ebuild
+++ b/dev-util/amdapp/amdapp-2.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@@ -9,11 +9,15 @@ inherit multilib
X86_AT="AMD-APP-SDK-v${PV}-lnx32.tgz"
AMD64_AT="AMD-APP-SDK-v${PV}-lnx64.tgz"
-MY_P="AMD-APP-SDK-v2.8-RC-lnx64"
+MY_P_AMD64="AMD-APP-SDK-v${PV}-RC-lnx64"
+MY_P_AMD32="AMD-APP-SDK-v${PV}-RC-lnx32"
+MY_P="AMD-APP-SDK-v${PV}-RC"
DESCRIPTION="AMD Accelerated Parallel Processing (APP) SDK"
HOMEPAGE="http://developer.amd.com/tools/heterogeneous-computing/\
amd-accelerated-parallel-processing-app-sdk"
+CURI="http://developer.amd.com/tools-and-sdks/opencl-zone/\
+amd-accelerated-parallel-processing-app-sdk/download-archive"
SRC_URI="
amd64? ( ${AMD64_AT} )
x86? ( ${X86_AT} )"
@@ -44,12 +48,22 @@ S="${WORKDIR}/${MY_P}"
pkg_nofetch() {
einfo "AMD doesn't provide direct download links. Please download"
- einfo "${ARCHIVE} from ${HOMEPAGE}"
+ einfo "${ARCHIVE} from ${CURI}"
}
src_unpack() {
default
- unpack ./${MY_P}.tgz
+
+ cd "${WORKDIR}" || die
+
+ if use amd64 || use amd64-linux ; then
+ unpack ./${MY_P_AMD64}.tgz
+ mv -f "${MY_P_AMD64}" "${MY_P}" || die
+ else
+ unpack ./${MY_P_X86}.tgz
+ mv -f "${MY_P_X86}" "${MY_P}" || die
+ fi
+
unpack ./icd-registration.tgz
}