1 |
commit: f9a41b0a421f823439d9c68daa24e1a7f21db8a7 |
2 |
Author: Mario Kicherer <dev <AT> kicherer <DOT> org> |
3 |
AuthorDate: Wed Jun 4 10:23:16 2014 +0000 |
4 |
Commit: Mario Kicherer <dev <AT> kicherer <DOT> org> |
5 |
CommitDate: Wed Jun 4 10:23:16 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=f9a41b0a |
7 |
|
8 |
[games-engines/fife] non-maintainer bump 0.3.5 |
9 |
|
10 |
--- |
11 |
games-engines/fife/fife-0.3.5.ebuild | 69 ++++++++++++++++++++++ |
12 |
.../fife/files/fife-0.3.5-unbundle-libpng.patch | 24 ++++++++ |
13 |
2 files changed, 93 insertions(+) |
14 |
|
15 |
diff --git a/games-engines/fife/fife-0.3.5.ebuild b/games-engines/fife/fife-0.3.5.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..e19ac28 |
18 |
--- /dev/null |
19 |
+++ b/games-engines/fife/fife-0.3.5.ebuild |
20 |
@@ -0,0 +1,69 @@ |
21 |
+# Copyright 1999-2014 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Header: $ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+PYTHON_DEPEND="2:2.7" |
28 |
+RESTRICT_PYTHON_ABIS="3.*" |
29 |
+ |
30 |
+inherit eutils python scons-utils |
31 |
+ |
32 |
+DESCRIPTION="Flexible Isometric Free Engine, 2D" |
33 |
+HOMEPAGE="http://fifengine.de" |
34 |
+SRC_URI="http://downloads.sourceforge.net/project/${PN}/active/src/${PN}_${PV}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+ |
38 |
+KEYWORDS="" |
39 |
+SLOT="0" |
40 |
+IUSE="debug profile qt4" |
41 |
+ |
42 |
+RDEPEND=">=dev-libs/boost-1.33.1 |
43 |
+ dev-python/pyyaml |
44 |
+ >=media-libs/libsdl-1.2.8 |
45 |
+ media-libs/sdl2-ttf |
46 |
+ >media-libs/sdl-image-1.2.9[png] |
47 |
+ media-libs/libvorbis |
48 |
+ media-libs/libogg |
49 |
+ media-libs/openal |
50 |
+ >=sys-libs/zlib-1.2 |
51 |
+ x11-libs/libXcursor |
52 |
+ x11-libs/libXext |
53 |
+ dev-games/guichan[sdl,opengl] |
54 |
+ virtual/opengl |
55 |
+ virtual/glu |
56 |
+ qt4? ( dev-qt/qtgui:4 )" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ >=dev-lang/swig-1.3.40" |
59 |
+ |
60 |
+S=${WORKDIR}/${PN}_${PV} |
61 |
+ |
62 |
+# just setting RESTRICT_PYTHON_ABI is not enough to install only for python2 |
63 |
+pkg_setup() { |
64 |
+ python_set_active_version 2 |
65 |
+ python_pkg_setup |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ rm -r ext #delete bundled libs |
70 |
+ epatch "${FILESDIR}/${P}-unbundle-libpng.patch" |
71 |
+} |
72 |
+ |
73 |
+# Compile is only succesfull with one thread |
74 |
+#SCONSOPTS="-j1" |
75 |
+ |
76 |
+src_compile() { |
77 |
+ escons \ |
78 |
+ --python-prefix="${D}/$(python_get_sitedir)" \ |
79 |
+ --prefix="${D}/usr" \ |
80 |
+ $(use_scons debug) \ |
81 |
+ $(use_scons debug log log) \ |
82 |
+ $(use_scons profile) \ |
83 |
+ || die "scons failed" |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ escons install-python --python-prefix="${D}/$(python_get_sitedir)" \ |
88 |
+ --prefix="${D}/usr" || die "install failed" |
89 |
+} |
90 |
|
91 |
diff --git a/games-engines/fife/files/fife-0.3.5-unbundle-libpng.patch b/games-engines/fife/files/fife-0.3.5-unbundle-libpng.patch |
92 |
new file mode 100644 |
93 |
index 0000000..580edfa |
94 |
--- /dev/null |
95 |
+++ b/games-engines/fife/files/fife-0.3.5-unbundle-libpng.patch |
96 |
@@ -0,0 +1,24 @@ |
97 |
+Index: image.h |
98 |
+=================================================================== |
99 |
+--- a/engine/core/video/image.h (revision 3239) |
100 |
++++ b/engine/core/video/image.h (working copy) |
101 |
+@@ -27,7 +27,6 @@ |
102 |
+ |
103 |
+ // 3rd party library includes |
104 |
+ #include <SDL.h> |
105 |
+-#include <png.h> |
106 |
+ |
107 |
+ // FIFE includes |
108 |
+ // These includes are split up in two parts, separated by one empty line |
109 |
+Index: image.cpp |
110 |
+=================================================================== |
111 |
+--- a/engine/core/video/image.cpp (revision 3239) |
112 |
++++ b/engine/core/video/image.cpp (working copy) |
113 |
+@@ -25,6 +25,7 @@ |
114 |
+ |
115 |
+ // 3rd party library includes |
116 |
+ #include <SDL.h> |
117 |
++#include <png.h> |
118 |
+ |
119 |
+ // FIFE includes |
120 |
+ // These includes are split up in two parts, separated by one empty line |