public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/ikelos:master commit in: games-action/lugaru/, games-action/lugaru/files/
@ 2013-06-15 14:50 Mike Auty
  0 siblings, 0 replies; only message in thread
From: Mike Auty @ 2013-06-15 14:50 UTC (permalink / raw
  To: gentoo-commits

commit:     6ebe32f9631f577b697b5f189a19309e422ec47f
Author:     Mike Auty <ikelos <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 15 14:50:10 2013 +0000
Commit:     Mike Auty <ikelos <AT> gentoo <DOT> org>
CommitDate: Sat Jun 15 14:50:10 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/ikelos.git;a=commit;h=6ebe32f9

Add in lugaru live ebuild with more appropriate data directory patch.

---
 games-action/lugaru/Manifest                    |  2 ++
 games-action/lugaru/files/lugaru-data-dir.patch | 21 +++++++++++++
 games-action/lugaru/lugaru-9999.ebuild          | 41 +++++++++++++++++++++++++
 3 files changed, 64 insertions(+)

diff --git a/games-action/lugaru/Manifest b/games-action/lugaru/Manifest
new file mode 100644
index 0000000..1135ae4
--- /dev/null
+++ b/games-action/lugaru/Manifest
@@ -0,0 +1,2 @@
+AUX lugaru-data-dir.patch 834 SHA256 365115868ba9522503c7e830f29596640c74f62a9051b5989bcebaf8e3b69528 SHA512 61fcc93b0fa3c3111a3c31608f4cf530b018b6a962fbc402428ecdc4bb64a4ea2c6848d023b0224039fcc508b426bdef31de0fe6840477147fdb2aa0f12503d9 WHIRLPOOL f9fbc7898db6b473e3fede73570abd97a3d8a246ddae0f56ae0dc52b8f676d5a3e4ab8e8891d513336419c6d83313eb57abe8e418cf8b64e7bfad7f28aced7e9
+EBUILD lugaru-9999.ebuild 904 SHA256 e5661cd0a561752965cccee274c9d461d8b6ac4f2098d72f1cc160d8b37d1b9f SHA512 995b02e4ebe269e892182d4fa0cce309ebbb1b7249e92b3ef64dc2099ecb5cc0e89915be2b5b1f405b6e7222152192358fa270f91648e544092ceab1ecd430ed WHIRLPOOL 61169d4c7a2b2d822fad5671c8e0d653f8ef67b8c3b7f7055a30118f62bdbc6cfe10aa7217e753cd3026eb723be14b9deb5ef0d3d1f4e06b52c49817fb5304f6

diff --git a/games-action/lugaru/files/lugaru-data-dir.patch b/games-action/lugaru/files/lugaru-data-dir.patch
new file mode 100644
index 0000000..7a4cc80
--- /dev/null
+++ b/games-action/lugaru/files/lugaru-data-dir.patch
@@ -0,0 +1,21 @@
+diff -r e435472cb42f Source/MacCompatibility.cpp
+--- a/Source/MacCompatibility.cpp	Fri May 20 10:07:56 2011 +0200
++++ b/Source/MacCompatibility.cpp	Sat Jun 15 15:39:19 2013 +0100
+@@ -271,7 +271,16 @@
+     if ( (rc == 0) || ((rc == -1) && (iswriting)) ) // found or create?
+         strcpy(buf, prefpathfile);
+     else if ((rc < 0) && (!iswriting))  /* not writing? Try game dir... */
+-        rc = locateCorrectCase(buf, iswriting);
++    {
++        const char *GAMEDIR = "/usr/share/games/lugaru";
++        len = strlen(GAMEDIR) + strlen(buf) + 2;
++        char *gamedirfile = (char *) alloca(len);
++        snprintf(gamedirfile, len, "%s/%s", GAMEDIR, buf); 
++
++        rc = locateCorrectCase(gamedirfile, iswriting);
++        if (rc == 0)
++            strcpy(buf, gamedirfile);
++    }
+ 
+     return(rc);
+ } /* locateCorrectFile */

diff --git a/games-action/lugaru/lugaru-9999.ebuild b/games-action/lugaru/lugaru-9999.ebuild
new file mode 100644
index 0000000..879ec3a
--- /dev/null
+++ b/games-action/lugaru/lugaru-9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit games cmake-utils mercurial eutils
+
+DESCRIPTION="A cross platform 3d action adventure"
+HOMEPAGE="http://www.wolfire.com/lugaru"
+SRC_URI=""
+EHG_REPO_URI="https://code.google.com/p/${PN}/"
+
+LICENSE="GPL-2 free-noncomm"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="media-libs/libjpeg-turbo
+	media-libs/libogg
+	media-libs/libpng
+	media-libs/libsdl
+	media-libs/libvorbis
+	media-libs/openal
+	virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+	epatch "${FILESDIR}/${PN}-data-dir.patch"
+	true # sed -i "s|:Data:|/${GAMES_DATADIR}/${PN}:Data:|g" Source/*.* || die
+}
+
+src_install() {
+	insinto "${GAMES_DATADIR}"/${PN}
+	doins -r Data || die
+	dogamesbin ../${P}_build/${PN} || die
+	make_desktop_entry ${PN} "Lugaru: The Rabbit's Foot"
+	prepgamesdirs
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-15 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 14:50 [gentoo-commits] dev/ikelos:master commit in: games-action/lugaru/, games-action/lugaru/files/ Mike Auty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox