summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-10-15 04:04:30 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-10-15 04:04:30 +0000
commit4e05f2f5bb11e276424965a3706953a449fbc70e (patch)
treef9adc17a3e0dcc82977900e5bd9883da30b48da3 /games-roguelike/angband
parent- update the package.mask for hardened (diff)
downloadgentoo-2-4e05f2f5bb11e276424965a3706953a449fbc70e.tar.gz
gentoo-2-4e05f2f5bb11e276424965a3706953a449fbc70e.tar.bz2
gentoo-2-4e05f2f5bb11e276424965a3706953a449fbc70e.zip
version bump
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'games-roguelike/angband')
-rw-r--r--games-roguelike/angband/ChangeLog10
-rw-r--r--games-roguelike/angband/angband-3.0.9e.ebuild54
-rw-r--r--games-roguelike/angband/files/angband-3.0.9e-gentoo.patch81
3 files changed, 143 insertions, 2 deletions
diff --git a/games-roguelike/angband/ChangeLog b/games-roguelike/angband/ChangeLog
index 2ae210853d9a..514b7f6d7f75 100644
--- a/games-roguelike/angband/ChangeLog
+++ b/games-roguelike/angband/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-roguelike/angband
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.25 2008/08/29 21:09:10 tupone Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.26 2009/10/15 04:04:29 mr_bones_ Exp $
+
+*angband-3.0.9e (15 Oct 2009)
+
+ 15 Oct 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +angband-3.0.9e.ebuild, +files/angband-3.0.9e-gentoo.patch:
+ version bump
*angband-3.0.9b (29 Aug 2008)
diff --git a/games-roguelike/angband/angband-3.0.9e.ebuild b/games-roguelike/angband/angband-3.0.9e.ebuild
new file mode 100644
index 000000000000..abf2795f28b2
--- /dev/null
+++ b/games-roguelike/angband/angband-3.0.9e.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/angband-3.0.9e.ebuild,v 1.1 2009/10/15 04:04:29 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils flag-o-matic games
+
+DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R.Tolkien"
+HOMEPAGE="http://rephial.org/"
+SRC_URI="http://rephial.org/downloads/3.0/${P}.tar.gz"
+
+LICENSE="Moria"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="X gtk ncurses sdl"
+
+DEPEND="gtk? ( >=gnome-base/libglade-2.6 )
+ X? ( x11-libs/libSM
+ x11-libs/libX11 )
+ sdl? ( media-libs/sdl-ttf
+ media-libs/sdl-image )"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+ local myConf;
+ if ! use ncurses && ( use gtk || use X || use sdl); then
+ myConf=--disable-curses
+ fi
+ append-ldflags -Wl,-z,now
+ egamesconf \
+ --disable-dependency-tracking \
+ --bindir="${GAMES_BINDIR}" \
+ --with-setgid="${GAMES_GROUP}" \
+ --with-libpath="${GAMES_DATADIR}"/${PN} \
+ $myConf \
+ $(use_enable gtk) \
+ $(use_enable X x11) \
+ $(use_enable sdl)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto "${GAMES_DATADIR}"/${PN}/xtra
+ doins lib/xtra/angband.glade || die "doins angband.glade failed"
+ dodoc changes.txt faq.txt readme.txt thanks.txt
+ rm -rf "${D}/${GAMES_PREFIX}"/{lib,include}
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ chmod -R g+w "${ROOT}${GAMES_DATADIR}"/angband/{apex,data,save,user}
+}
diff --git a/games-roguelike/angband/files/angband-3.0.9e-gentoo.patch b/games-roguelike/angband/files/angband-3.0.9e-gentoo.patch
new file mode 100644
index 000000000000..0aaf38dcf63d
--- /dev/null
+++ b/games-roguelike/angband/files/angband-3.0.9e-gentoo.patch
@@ -0,0 +1,81 @@
+--- lib/apex/Makefile.old 2007-08-24 04:41:58.000000000 +0200
++++ lib/apex/Makefile 2007-08-24 04:43:01.000000000 +0200
+@@ -10,10 +10,10 @@
+
+ install-posthook:
+ if [ "x$(SETEGID)" != "x" ]; then \
+- printf "%10s %-20s\n" TOUCH ${DATA_PATH}/apex/scores.raw; \
++ printf "%10s %-20s\n" TOUCH ${DESTDIR}${DATA_PATH}/apex/scores.raw; \
+ if [ "x$(DRY)" = "x" ]; then \
+- touch ${DATA_PATH}/apex/scores.raw; \
+- chown -R root:${SETEGID} ${DATA_PATH}/apex; \
+- chmod -R g+w ${DATA_PATH}/apex; \
++ touch ${DESTDIR}${DATA_PATH}/apex/scores.raw; \
++ chown -R root:${SETEGID} ${DESTDIR}${DATA_PATH}/apex; \
++ chmod -R g+w ${DESTDIR}${DATA_PATH}/apex; \
+ fi; \
+ fi;
+--- lib/bone/Makefile.old 2007-08-24 04:49:01.000000000 +0200
++++ lib/bone/Makefile 2007-08-24 04:49:29.000000000 +0200
+@@ -9,7 +9,7 @@
+ install-posthook:
+ if [ "x$(SETEGID)" != "x" ]; then \
+ if [ "x$(DRY)" = "x" ]; then \
+- chown root:${SETEGID} ${DATA_PATH}/bone; \
+- chmod 070 ${DATA_PATH}/bone; \
++ chown root:${SETEGID} ${DESTDIR}${DATA_PATH}/bone; \
++ chmod 070 ${DESTDIR}${DATA_PATH}/bone; \
+ fi; \
+ fi
+--- lib/data/Makefile.old 2007-08-24 04:52:30.000000000 +0200
++++ lib/data/Makefile 2007-08-24 04:53:41.000000000 +0200
+@@ -15,21 +15,21 @@
+ if [ "x$(SETEGID)" != "x" ]; then \
+ printf "%10s %s*.raw\n" TOUCH ${DATA_PATH}/data/; \
+ if [ "x$(DRY)" = "x" ]; then \
+- touch ${DATA_PATH}/data/artifact.raw; \
+- touch ${DATA_PATH}/data/cost_adj.raw; \
+- touch ${DATA_PATH}/data/ego_item.raw; \
+- touch ${DATA_PATH}/data/flavor.raw; \
+- touch ${DATA_PATH}/data/limits.raw; \
+- touch ${DATA_PATH}/data/monster.raw; \
+- touch ${DATA_PATH}/data/object.raw; \
+- touch ${DATA_PATH}/data/p_class.raw; \
+- touch ${DATA_PATH}/data/p_hist.raw; \
+- touch ${DATA_PATH}/data/p_race.raw; \
+- touch ${DATA_PATH}/data/prices.raw; \
+- touch ${DATA_PATH}/data/shop_own.raw; \
+- touch ${DATA_PATH}/data/terrain.raw; \
+- touch ${DATA_PATH}/data/vault.raw; \
+- chown -R root:${SETEGID} ${DATA_PATH}/data; \
+- chmod -R g+w ${DATA_PATH}/data; \
++ touch ${DESTDIR}${DATA_PATH}/data/artifact.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/cost_adj.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/ego_item.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/flavor.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/limits.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/monster.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/object.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/p_class.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/p_hist.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/p_race.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/prices.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/shop_own.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/terrain.raw; \
++ touch ${DESTDIR}${DATA_PATH}/data/vault.raw; \
++ chown -R root:${SETEGID} ${DESTDIR}${DATA_PATH}/data; \
++ chmod -R g+w ${DESTDIR}${DATA_PATH}/data; \
+ fi; \
+ fi
+--- lib/save/Makefile.old 2007-08-24 04:55:50.000000000 +0200
++++ lib/save/Makefile 2007-08-24 04:56:13.000000000 +0200
+@@ -8,7 +8,7 @@
+ install-posthook:
+ if [ "x$(SETEGID)" != "x" ]; then \
+ if [ "x$(DRY)" = "x" ]; then \
+- chown root:${SETEGID} ${DATA_PATH}/save; \
+- chmod 070 ${DATA_PATH}/save; \
++ chown root:${SETEGID} ${DESTDIR}${DATA_PATH}/save; \
++ chmod 070 ${DESTDIR}${DATA_PATH}/save; \
+ fi; \
+ fi