summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2006-07-30 21:17:25 +0000
committerAlfredo Tupone <tupone@gentoo.org>2006-07-30 21:17:25 +0000
commitc476f6e17ab39224d74515e8556bae046647c7d1 (patch)
tree7d49d4b8e3db5d37c27912bb29285e0a085f6d23 /games-roguelike/hengband/hengband-1.6.2-r1.ebuild
parentStable on SPARC wrt security bug #141842. (diff)
downloadhistorical-c476f6e17ab39224d74515e8556bae046647c7d1.tar.gz
historical-c476f6e17ab39224d74515e8556bae046647c7d1.tar.bz2
historical-c476f6e17ab39224d74515e8556bae046647c7d1.zip
Fixing bug #113295 - typos and missing faq
Package-Manager: portage-2.1-r1
Diffstat (limited to 'games-roguelike/hengband/hengband-1.6.2-r1.ebuild')
-rw-r--r--games-roguelike/hengband/hengband-1.6.2-r1.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/games-roguelike/hengband/hengband-1.6.2-r1.ebuild b/games-roguelike/hengband/hengband-1.6.2-r1.ebuild
new file mode 100644
index 000000000000..f68297ab863a
--- /dev/null
+++ b/games-roguelike/hengband/hengband-1.6.2-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/hengband/hengband-1.6.2-r1.ebuild,v 1.1 2006/07/30 21:17:25 tupone Exp $
+
+inherit toolchain-funcs eutils games
+
+DESCRIPTION="An Angband variant, with a Japanese/fantasy theme"
+HOMEPAGE="http://hengband.sourceforge.jp/en/"
+SRC_URI="mirror://sourceforge.jp/hengband/10331/${P}.tar.bz2
+ mirror://gentoo/${P}-mispellings.patch.gz"
+
+KEYWORDS="ppc x86 ~x86-fbsd"
+LICENSE="Moria"
+SLOT="0"
+IUSE="X linguas_ja"
+
+RDEPEND=">=sys-libs/ncurses-5
+ X? ( || ( x11-libs/libX11 virtual/x11 ) )"
+DEPEND="${RDEPEND}
+ X? ( || ( x11-libs/libXt virtual/x11 ) )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # Removing Xaw dependency as is not used
+ sed -i \
+ -e '/Xaw/d' src/main-xaw.c \
+ || die "sed main-xaw failed"
+ sed -i \
+ -e 's|root\.|root:|' lib/*/Makefile.in \
+ || die "sed Makefile.in failed"
+ sed -i \
+ -e 's:/games/:/:g' configure \
+ || die "sed configure failed"
+ epatch "../${P}"-mispellings.patch \
+ "${FILESDIR}/${P}"-added_faq.patch
+}
+
+src_compile() {
+ local myconf
+ use linguas_ja || myconf="--disable-japanese"
+
+ tc-export CC
+ egamesconf \
+ --with-setgid=${GAMES_GROUP} \
+ `use_with X x` \
+ ${myconf} \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ if use linguas_ja ; then
+ dodoc readme.txt autopick.txt readme_eng.txt autopick_eng.txt
+ else
+ newdoc readme_eng.txt readme.txt
+ newdoc autopick_eng.txt autopick.txt
+ fi
+ prepgamesdirs
+ # FIXME: we need to patch around this BS
+ fperms g+w ${GAMES_DATADIR}/${PN}/lib/{apex,data,save,user}
+}