commit: f9a41b0a421f823439d9c68daa24e1a7f21db8a7 Author: Mario Kicherer <dev <AT> kicherer <DOT> org> AuthorDate: Wed Jun 4 10:23:16 2014 +0000 Commit: Mario Kicherer <dev <AT> kicherer <DOT> org> CommitDate: Wed Jun 4 10:23:16 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=f9a41b0a
[games-engines/fife] non-maintainer bump 0.3.5 --- games-engines/fife/fife-0.3.5.ebuild | 69 ++++++++++++++++++++++ .../fife/files/fife-0.3.5-unbundle-libpng.patch | 24 ++++++++ 2 files changed, 93 insertions(+) diff --git a/games-engines/fife/fife-0.3.5.ebuild b/games-engines/fife/fife-0.3.5.ebuild new file mode 100644 index 0000000..e19ac28 --- /dev/null +++ b/games-engines/fife/fife-0.3.5.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_DEPEND="2:2.7" +RESTRICT_PYTHON_ABIS="3.*" + +inherit eutils python scons-utils + +DESCRIPTION="Flexible Isometric Free Engine, 2D" +HOMEPAGE="http://fifengine.de" +SRC_URI="http://downloads.sourceforge.net/project/${PN}/active/src/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" + +KEYWORDS="" +SLOT="0" +IUSE="debug profile qt4" + +RDEPEND=">=dev-libs/boost-1.33.1 + dev-python/pyyaml + >=media-libs/libsdl-1.2.8 + media-libs/sdl2-ttf + >media-libs/sdl-image-1.2.9[png] + media-libs/libvorbis + media-libs/libogg + media-libs/openal + >=sys-libs/zlib-1.2 + x11-libs/libXcursor + x11-libs/libXext + dev-games/guichan[sdl,opengl] + virtual/opengl + virtual/glu + qt4? ( dev-qt/qtgui:4 )" +DEPEND="${RDEPEND} + >=dev-lang/swig-1.3.40" + +S=${WORKDIR}/${PN}_${PV} + +# just setting RESTRICT_PYTHON_ABI is not enough to install only for python2 +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + rm -r ext #delete bundled libs + epatch "${FILESDIR}/${P}-unbundle-libpng.patch" +} + +# Compile is only succesfull with one thread +#SCONSOPTS="-j1" + +src_compile() { + escons \ + --python-prefix="${D}/$(python_get_sitedir)" \ + --prefix="${D}/usr" \ + $(use_scons debug) \ + $(use_scons debug log log) \ + $(use_scons profile) \ + || die "scons failed" +} + +src_install() { + escons install-python --python-prefix="${D}/$(python_get_sitedir)" \ + --prefix="${D}/usr" || die "install failed" +} 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 new file mode 100644 index 0000000..580edfa --- /dev/null +++ b/games-engines/fife/files/fife-0.3.5-unbundle-libpng.patch @@ -0,0 +1,24 @@ +Index: image.h +=================================================================== +--- a/engine/core/video/image.h (revision 3239) ++++ b/engine/core/video/image.h (working copy) +@@ -27,7 +27,6 @@ + + // 3rd party library includes + #include <SDL.h> +-#include <png.h> + + // FIFE includes + // These includes are split up in two parts, separated by one empty line +Index: image.cpp +=================================================================== +--- a/engine/core/video/image.cpp (revision 3239) ++++ b/engine/core/video/image.cpp (working copy) +@@ -25,6 +25,7 @@ + + // 3rd party library includes + #include <SDL.h> ++#include <png.h> + + // FIFE includes + // These includes are split up in two parts, separated by one empty line