summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-08-24 15:55:41 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-08-24 15:55:41 +0000
commit75993a47e30d9a9a449771380edd85c7f13fe4cb (patch)
tree3147e688216a571a103a9f22943ffa95672af375
parentalpha/ia64 stable wrt security #189172 (diff)
downloadgentoo-2-75993a47e30d9a9a449771380edd85c7f13fe4cb.tar.gz
gentoo-2-75993a47e30d9a9a449771380edd85c7f13fe4cb.tar.bz2
gentoo-2-75993a47e30d9a9a449771380edd85c7f13fe4cb.zip
Version bump to 3.0.9 bug #177186
(Portage version: 2.1.2.11)
-rw-r--r--games-roguelike/angband/ChangeLog9
-rw-r--r--games-roguelike/angband/angband-3.0.9.ebuild58
-rw-r--r--games-roguelike/angband/files/angband-3.0.9-gentoo.patch81
-rw-r--r--games-roguelike/angband/files/digest-angband-3.0.93
4 files changed, 150 insertions, 1 deletions
diff --git a/games-roguelike/angband/ChangeLog b/games-roguelike/angband/ChangeLog
index b56b5c495cdb..c1fdf4757b22 100644
--- a/games-roguelike/angband/ChangeLog
+++ b/games-roguelike/angband/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-roguelike/angband
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.22 2007/03/12 16:43:41 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.23 2007/08/24 15:55:41 tupone Exp $
+
+*angband-3.0.9 (24 Aug 2007)
+
+ 24 Aug 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/angband-3.0.9-gentoo.patch, +angband-3.0.9.ebuild:
+ Version bump to 3.0.9 bug #177186 by Nathan Russel
+ Add ncurses and sdl use flags
12 Mar 2007; Gustavo Zacarias <gustavoz@gentoo.org> angband-3.0.6.ebuild:
Stable on sparc wrt #168294
diff --git a/games-roguelike/angband/angband-3.0.9.ebuild b/games-roguelike/angband/angband-3.0.9.ebuild
new file mode 100644
index 000000000000..d0cdf74c3f7a
--- /dev/null
+++ b/games-roguelike/angband/angband-3.0.9.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/angband-3.0.9.ebuild,v 1.1 2007/08/24 15:55:41 tupone Exp $
+
+inherit 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}-src.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 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_compile() {
+ local myConf;
+ if ! use ncurses && ( use gtk || use X || use sdl); then
+ myConf=--disable-curses
+ fi
+ 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) \
+ || die "egamesconf failed"
+ append-ldflags -Wl,-z,now
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make 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
+ 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.9-gentoo.patch b/games-roguelike/angband/files/angband-3.0.9-gentoo.patch
new file mode 100644
index 000000000000..0aaf38dcf63d
--- /dev/null
+++ b/games-roguelike/angband/files/angband-3.0.9-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
diff --git a/games-roguelike/angband/files/digest-angband-3.0.9 b/games-roguelike/angband/files/digest-angband-3.0.9
new file mode 100644
index 000000000000..129b3ffc005b
--- /dev/null
+++ b/games-roguelike/angband/files/digest-angband-3.0.9
@@ -0,0 +1,3 @@
+MD5 a72ff9b7f8d13b8101b5c19f0ad33a5a angband-3.0.9-src.tar.gz 2334497
+RMD160 495ee3b51c6944b1b04993a140d13e11b0cb57cc angband-3.0.9-src.tar.gz 2334497
+SHA256 3f94092ab20169e8e51574dd57357761f163e2df925a606af6109bbd351fe75f angband-3.0.9-src.tar.gz 2334497