1 |
commit: 95256b1cc2e15e79b4a18c4058735f47e1a1956e |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 4 11:43:33 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 4 11:43:33 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=95256b1c |
7 |
|
8 |
media-gfx/u3d: Add fix for gcc-4.7 |
9 |
|
10 |
Package-Manager: portage-2.2.0_alpha165 |
11 |
|
12 |
--- |
13 |
media-gfx/u3d/ChangeLog | 8 ++++++++ |
14 |
media-gfx/u3d/files/u3d-1.4.3-gcc4.7.patch | 16 ++++++++++++++++ |
15 |
media-gfx/u3d/u3d-1.4.3.ebuild | 9 +++++++-- |
16 |
3 files changed, 31 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/media-gfx/u3d/ChangeLog b/media-gfx/u3d/ChangeLog |
19 |
new file mode 100644 |
20 |
index 0000000..89dc40a |
21 |
--- /dev/null |
22 |
+++ b/media-gfx/u3d/ChangeLog |
23 |
@@ -0,0 +1,8 @@ |
24 |
+# ChangeLog for media-gfx/u3d |
25 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# $Header: $ |
27 |
+ |
28 |
+ 04 Mar 2013; Justin Lecher <jlec@g.o> u3d-1.4.3.ebuild, |
29 |
+ +files/u3d-1.4.3-gcc4.7.patch: |
30 |
+ Add fix for gcc-4.7 |
31 |
+ |
32 |
|
33 |
diff --git a/media-gfx/u3d/files/u3d-1.4.3-gcc4.7.patch b/media-gfx/u3d/files/u3d-1.4.3-gcc4.7.patch |
34 |
new file mode 100644 |
35 |
index 0000000..c991186 |
36 |
--- /dev/null |
37 |
+++ b/media-gfx/u3d/files/u3d-1.4.3-gcc4.7.patch |
38 |
@@ -0,0 +1,16 @@ |
39 |
+ RTL/Component/Include/IFXAttributes.h | 2 ++ |
40 |
+ 1 file changed, 2 insertions(+) |
41 |
+ |
42 |
+diff --git a/RTL/Component/Include/IFXAttributes.h b/RTL/Component/Include/IFXAttributes.h |
43 |
+index c6832c1..8d071c8 100644 |
44 |
+--- a/RTL/Component/Include/IFXAttributes.h |
45 |
++++ b/RTL/Component/Include/IFXAttributes.h |
46 |
+@@ -22,6 +22,8 @@ |
47 |
+ Declaration of IFXAttributes template |
48 |
+ */ |
49 |
+ |
50 |
++#include <string.h> |
51 |
++ |
52 |
+ #ifndef __IFXATTRIBUTES_H__ |
53 |
+ #define __IFXATTRIBUTES_H__ |
54 |
+ |
55 |
|
56 |
diff --git a/media-gfx/u3d/u3d-1.4.3.ebuild b/media-gfx/u3d/u3d-1.4.3.ebuild |
57 |
index 3323215..1953817 100644 |
58 |
--- a/media-gfx/u3d/u3d-1.4.3.ebuild |
59 |
+++ b/media-gfx/u3d/u3d-1.4.3.ebuild |
60 |
@@ -1,8 +1,8 @@ |
61 |
-# Copyright 1999-2011 Gentoo Foundation |
62 |
+# Copyright 1999-2013 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
# $Header: $ |
65 |
|
66 |
-EAPI=4 |
67 |
+EAPI=5 |
68 |
|
69 |
inherit cmake-utils multilib |
70 |
|
71 |
@@ -24,6 +24,10 @@ RDEPEND="${DEPEND}" |
72 |
|
73 |
MYCMAKEARGS="-DU3D_SHARED=ON -DBUILD_SHARED_LIBS=ON" |
74 |
|
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}"/${P}-gcc4.7.patch |
77 |
+) |
78 |
+ |
79 |
src_prepare() { |
80 |
sed \ |
81 |
-e "s:LIB_DESTINATION u3d:LIB_DESTINATION $(get_libdir):g" \ |
82 |
@@ -33,4 +37,5 @@ src_prepare() { |
83 |
-e "s:SAMPLE_DESTINATION u3d/samples:SAMPLE_DESTINATION share/${PN}/samples:g" \ |
84 |
-e "s:DOC_DESTINATION u3d/docs:DOC_DESTINATION share/docs/${P}:g" \ |
85 |
-i CMakeLists.txt |
86 |
+ base_src_prepare |
87 |
} |