summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2007-11-01 04:26:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2007-11-01 04:26:49 +0000
commit9e5c395902193819aaa4481990024dfe2288906b (patch)
tree2ec104f455761b0ca7ab967fe1ae55ab0e479b65 /games-puzzle
parentamd64 stable, bug 197716 (diff)
downloadgentoo-2-9e5c395902193819aaa4481990024dfe2288906b.tar.gz
gentoo-2-9e5c395902193819aaa4481990024dfe2288906b.tar.bz2
gentoo-2-9e5c395902193819aaa4481990024dfe2288906b.zip
version bump
(Portage version: 2.1.3.16)
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/pingus/ChangeLog8
-rw-r--r--games-puzzle/pingus/files/digest-pingus-0.7.23
-rw-r--r--games-puzzle/pingus/files/pingus-0.7.2-paths.patch34
-rw-r--r--games-puzzle/pingus/pingus-0.7.2.ebuild50
4 files changed, 94 insertions, 1 deletions
diff --git a/games-puzzle/pingus/ChangeLog b/games-puzzle/pingus/ChangeLog
index 4512303aacca..9f1ad3be43cd 100644
--- a/games-puzzle/pingus/ChangeLog
+++ b/games-puzzle/pingus/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/pingus
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pingus/ChangeLog,v 1.15 2007/10/01 00:21:22 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pingus/ChangeLog,v 1.16 2007/11/01 04:26:48 mr_bones_ Exp $
+
+*pingus-0.7.2 (01 Nov 2007)
+
+ 01 Nov 2007; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/pingus-0.7.2-paths.patch, +pingus-0.7.2.ebuild:
+ version bump
01 Oct 2007; Michael Sterrett <mr_bones_@gentoo.org>
-files/pingus-0.6.0-build.patch, -files/pingus-0.6.0-gcc.patch,
diff --git a/games-puzzle/pingus/files/digest-pingus-0.7.2 b/games-puzzle/pingus/files/digest-pingus-0.7.2
new file mode 100644
index 000000000000..acbd305d7bdd
--- /dev/null
+++ b/games-puzzle/pingus/files/digest-pingus-0.7.2
@@ -0,0 +1,3 @@
+MD5 88756802d483f922d0910a14cd26a951 pingus-0.7.2.tar.bz2 11055748
+RMD160 669cd03504b33a67e87528ff65c3d736e904d8db pingus-0.7.2.tar.bz2 11055748
+SHA256 8d24fbab29ca9401ae1a6a34f7a52eda5de0a9320940e771c6f04f991f5d0052 pingus-0.7.2.tar.bz2 11055748
diff --git a/games-puzzle/pingus/files/pingus-0.7.2-paths.patch b/games-puzzle/pingus/files/pingus-0.7.2-paths.patch
new file mode 100644
index 000000000000..00d974f92bb3
--- /dev/null
+++ b/games-puzzle/pingus/files/pingus-0.7.2-paths.patch
@@ -0,0 +1,34 @@
+--- install.sh
++++ install.sh
+@@ -14,8 +14,8 @@
+ exit 1
+ fi
+
+- BINDIR="$1/bin/"
+- DATADIR="$1/share/pingus/"
++ BINDIR="${1}GENTOO_BINDIR"
++ DATADIR="${1}GENTOO_DATADIR"
+
+ echo "Installing Pingus in: $1"
+
+--- SConstruct
++++ SConstruct
+@@ -406,7 +406,6 @@
+
+ config_h = open('config.h', 'w')
+ config_h.write('#define VERSION "0.7.2"\n')
+- config_h.write('#define ENABLE_BINRELOC 1\n')
+ config_h.write('#define ICONV_CONST %s\n' % iconv_const)
+ for (v,k) in config_h_defines:
+ config_h.write('#define %s %s\n' % (v, k))
+--- src/pingus_main.cpp
++++ src/pingus_main.cpp
+@@ -583,7 +583,7 @@
+ path_manager.add_path("data"); // assume game is run from source dir, without any magic
+ free(exe_path);
+ #else
+- path_manager.add_path("data"); // assume game is run from source dir
++ path_manager.add_path("GENTOO_DATADIR/data");
+ #endif
+
+ if (!path_manager.find_path("data/core.res"))
diff --git a/games-puzzle/pingus/pingus-0.7.2.ebuild b/games-puzzle/pingus/pingus-0.7.2.ebuild
new file mode 100644
index 000000000000..645f62c03410
--- /dev/null
+++ b/games-puzzle/pingus/pingus-0.7.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pingus/pingus-0.7.2.ebuild,v 1.1 2007/11/01 04:26:48 mr_bones_ Exp $
+
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="free Lemmings clone"
+HOMEPAGE="http://pingus.seul.org/"
+SRC_URI="http://pingus.seul.org/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/libpng
+ dev-libs/boost"
+DEPEND="${RDEPEND}
+ >=dev-util/scons-0.97"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-paths.patch
+ sed -i \
+ -e "s:GENTOO_BINDIR:${GAMES_BINDIR}:" \
+ -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
+ install.sh src/pingus_main.cpp \
+ || die "sed failed"
+}
+
+src_compile() {
+ scons configure \
+ CXX="$(tc-getCXX)" \
+ CCFLAGS="${CXXFLAGS}" \
+ LINKFLAGS="${LDFLAGS}" \
+ || die "scons configure failed"
+ scons || die "scons failed"
+}
+
+src_install() {
+ ./install.sh "${D}" || die "install.sh failed"
+ newicon data/images/pingus/player0/boarder.png ${PN}.png
+ make_desktop_entry ${PN} Pingus
+ dodoc AUTHORS NEWS README TODO
+ prepgamesdirs
+}