1 |
commit: 171a83acc6180827dcc5912b1d42404a81433c54 |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Mon Feb 2 08:09:06 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 2 08:09:06 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=171a83ac |
7 |
|
8 |
dev-util/amdap: Fix 32bit build, add link to download archive |
9 |
|
10 |
--- |
11 |
dev-util/amdapp/ChangeLog | 4 ++++ |
12 |
dev-util/amdapp/amdapp-2.8.ebuild | 22 ++++++++++++++++++---- |
13 |
2 files changed, 22 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/dev-util/amdapp/ChangeLog b/dev-util/amdapp/ChangeLog |
16 |
index 6b46c97..1bf218e 100644 |
17 |
--- a/dev-util/amdapp/ChangeLog |
18 |
+++ b/dev-util/amdapp/ChangeLog |
19 |
@@ -2,6 +2,10 @@ |
20 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
21 |
# $Header: $ |
22 |
|
23 |
+ 02 Feb 2015; Marius Brehler <marbre@××××××××××××××.de> |
24 |
+ amdapp-2.8.ebuild: |
25 |
+ Fix 32bit build, add link to download archive |
26 |
+ |
27 |
*amdapp-2.9 (01 Feb 2015) |
28 |
|
29 |
01 Feb 2015; Marius Brehler <marbre@××××××××××××××.de> |
30 |
|
31 |
diff --git a/dev-util/amdapp/amdapp-2.8.ebuild b/dev-util/amdapp/amdapp-2.8.ebuild |
32 |
index 53a239e..1d921bb 100644 |
33 |
--- a/dev-util/amdapp/amdapp-2.8.ebuild |
34 |
+++ b/dev-util/amdapp/amdapp-2.8.ebuild |
35 |
@@ -1,4 +1,4 @@ |
36 |
-# Copyright 1999-2014 Gentoo Foundation |
37 |
+# Copyright 1999-2015 Gentoo Foundation |
38 |
# Distributed under the terms of the GNU General Public License v2 |
39 |
# $Header: $ |
40 |
|
41 |
@@ -9,11 +9,15 @@ inherit multilib |
42 |
X86_AT="AMD-APP-SDK-v${PV}-lnx32.tgz" |
43 |
AMD64_AT="AMD-APP-SDK-v${PV}-lnx64.tgz" |
44 |
|
45 |
-MY_P="AMD-APP-SDK-v2.8-RC-lnx64" |
46 |
+MY_P_AMD64="AMD-APP-SDK-v${PV}-RC-lnx64" |
47 |
+MY_P_AMD32="AMD-APP-SDK-v${PV}-RC-lnx32" |
48 |
+MY_P="AMD-APP-SDK-v${PV}-RC" |
49 |
|
50 |
DESCRIPTION="AMD Accelerated Parallel Processing (APP) SDK" |
51 |
HOMEPAGE="http://developer.amd.com/tools/heterogeneous-computing/\ |
52 |
amd-accelerated-parallel-processing-app-sdk" |
53 |
+CURI="http://developer.amd.com/tools-and-sdks/opencl-zone/\ |
54 |
+amd-accelerated-parallel-processing-app-sdk/download-archive" |
55 |
SRC_URI=" |
56 |
amd64? ( ${AMD64_AT} ) |
57 |
x86? ( ${X86_AT} )" |
58 |
@@ -44,12 +48,22 @@ S="${WORKDIR}/${MY_P}" |
59 |
|
60 |
pkg_nofetch() { |
61 |
einfo "AMD doesn't provide direct download links. Please download" |
62 |
- einfo "${ARCHIVE} from ${HOMEPAGE}" |
63 |
+ einfo "${ARCHIVE} from ${CURI}" |
64 |
} |
65 |
|
66 |
src_unpack() { |
67 |
default |
68 |
- unpack ./${MY_P}.tgz |
69 |
+ |
70 |
+ cd "${WORKDIR}" || die |
71 |
+ |
72 |
+ if use amd64 || use amd64-linux ; then |
73 |
+ unpack ./${MY_P_AMD64}.tgz |
74 |
+ mv -f "${MY_P_AMD64}" "${MY_P}" || die |
75 |
+ else |
76 |
+ unpack ./${MY_P_X86}.tgz |
77 |
+ mv -f "${MY_P_X86}" "${MY_P}" || die |
78 |
+ fi |
79 |
+ |
80 |
unpack ./icd-registration.tgz |
81 |
} |