summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-11-10 00:47:18 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-11-10 00:47:18 +0000
commit6c2eaa105d99a7a1476857a3e046958caab1bd0c (patch)
tree33e41e86bc5758ff6411f4c236bc208be5404d88 /games-strategy
parentVersion bump, bug #194687. No more ecj forcing, javac seems fine even on amd6... (diff)
downloadgentoo-2-6c2eaa105d99a7a1476857a3e046958caab1bd0c.tar.gz
gentoo-2-6c2eaa105d99a7a1476857a3e046958caab1bd0c.tar.bz2
gentoo-2-6c2eaa105d99a7a1476857a3e046958caab1bd0c.zip
Version bump to 1.74
(Portage version: 2.1.3.16)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/galaxyhack/ChangeLog9
-rw-r--r--games-strategy/galaxyhack/files/digest-galaxyhack-1.746
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch11
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch24
-rw-r--r--games-strategy/galaxyhack/galaxyhack-1.74.ebuild64
5 files changed, 113 insertions, 1 deletions
diff --git a/games-strategy/galaxyhack/ChangeLog b/games-strategy/galaxyhack/ChangeLog
index 342ad4e506c0..439e403b9c1b 100644
--- a/games-strategy/galaxyhack/ChangeLog
+++ b/games-strategy/galaxyhack/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-strategy/galaxyhack
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/galaxyhack/ChangeLog,v 1.4 2007/06/13 23:30:54 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/galaxyhack/ChangeLog,v 1.5 2007/11/10 00:47:17 tupone Exp $
+
+*galaxyhack-1.74 (10 Nov 2007)
+
+ 10 Nov 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/galaxyhack-1.74-boost.patch, +files/galaxyhack-1.74-destdirs.patch,
+ +galaxyhack-1.74.ebuild:
+ Version bump
13 Jun 2007; Tristan Heaven <nyhm@gentoo.org>
+files/galaxyhack-1.69-boost.patch, galaxyhack-1.69.ebuild:
diff --git a/games-strategy/galaxyhack/files/digest-galaxyhack-1.74 b/games-strategy/galaxyhack/files/digest-galaxyhack-1.74
new file mode 100644
index 000000000000..463354de97f9
--- /dev/null
+++ b/games-strategy/galaxyhack/files/digest-galaxyhack-1.74
@@ -0,0 +1,6 @@
+MD5 4eee814b0679fdaad1f47de58d38ab67 galaxyhack-1.74.tar.bz2 9948336
+RMD160 b84de9a93709093d572732018f30cafeb3c7439c galaxyhack-1.74.tar.bz2 9948336
+SHA256 ae6529008fe5be76607ce78833ef3b5d55e10f60a998b5747255b0854037880a galaxyhack-1.74.tar.bz2 9948336
+MD5 3a021fd03b792f9d2ef04715a7b83211 galaxyhack.png 819
+RMD160 8cf27749f4672158d66a39c760bdef21306ecc23 galaxyhack.png 819
+SHA256 248d32aeaa03e4183cf0333bd4da1d32ea11883fcb77efe6ebc6e2be201e9903 galaxyhack.png 819
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch
new file mode 100644
index 000000000000..c7fd49135dee
--- /dev/null
+++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch
@@ -0,0 +1,11 @@
+--- src/SetupBattle.cpp
++++ src/SetupBattle.cpp
+@@ -18,7 +18,7 @@
+ #include "PreBattle.h"
+
+ #include <sstream>
+-#include <boost/filesystem/exception.hpp>
++#include <boost/filesystem.hpp>
+
+ using std::stringstream;
+ using std::getline;
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch
new file mode 100644
index 000000000000..c20529e410fa
--- /dev/null
+++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch
@@ -0,0 +1,24 @@
+--- Makefile.old 2006-07-28 00:02:20.000000000 +0200
++++ Makefile 2006-07-28 00:02:59.000000000 +0200
+@@ -6,8 +6,8 @@
+ # James Gregory and Everton da Silva Marques <evertonsm@yahoo.com.br>
+ #
+
+-INSTALL_DIR=/usr/local/share
+-INSTALL_BIN_DIR=/usr/local/bin
++INSTALL_DIR="${GAMES_DATADIR}"
++INSTALL_BIN_DIR="${GAMES_BINDIR}"
+
+ CXX = g++
+ CXXFLAGS = $(shell sdl-config --cflags) -O3
+--- Main.cpp.old 2006-07-28 00:04:46.000000000 +0200
++++ Main.cpp 2006-07-28 00:08:28.000000000 +0200
+@@ -184,7 +184,7 @@
+ #ifndef WIN32
+ string settingsPath = userHomePath + "settings.dat";
+ if (!DoesFileExist(settingsPath))
+- settingsPath = "settings.dat";
++ settingsPath = "@GAMES_DATADIR@/galaxyhack/settings.dat";
+ #else
+ string settingsPath = "settings.dat";
+ #endif
diff --git a/games-strategy/galaxyhack/galaxyhack-1.74.ebuild b/games-strategy/galaxyhack/galaxyhack-1.74.ebuild
new file mode 100644
index 000000000000..22281dc5fb35
--- /dev/null
+++ b/games-strategy/galaxyhack/galaxyhack-1.74.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/galaxyhack/galaxyhack-1.74.ebuild,v 1.1 2007/11/10 00:47:17 tupone Exp $
+
+inherit eutils games
+
+DESCRIPTION="Multiplayer AI script based strategy game."
+HOMEPAGE="http://galaxyhack.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2 galaxyhack"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ >=dev-libs/boost-1.34"
+
+S=${WORKDIR}/${PN}/src
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ edos2unix Makefile
+ epatch \
+ "${FILESDIR}"/${P}-destdirs.patch \
+ "${FILESDIR}"/${P}-boost.patch
+ sed -i "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \
+ Main.cpp \
+ || die "sed Main.cpp failed"
+ sed -i "/Base data path/s:pwd:${GAMES_DATADIR}/${PN}:" \
+ ../settings.dat \
+ || die "sed settings.dat failed"
+ sed -i \
+ -e "/^CXXFLAGS/s:-O3:${CXXFLAGS}:" \
+ -e '/^LDFLAGS/s:=:+=:' \
+ Makefile \
+ || die "sed Makefile failed"
+}
+
+src_install() {
+ dogamesbin "${PN}" || die "dogamesbin failed"
+ cd ..
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r fleets gamedata graphics music standardpictures \
+ settings.dat || die "doins failed"
+ dodoc readme.txt
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} GalaxyHack
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Settings will default to those found in"
+ elog "${GAMES_DATADIR}/galaxyhack/settings.dat"
+ elog "Per user settings can be specified by creating"
+ elog "~/.galaxyhack/settings.dat"
+ elog "Additional user submitted fleets can be downloaded from"
+ elog "http://galaxyhack.sourceforge.net/viewfleets.php"
+}