summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike/hengband/hengband-1.6.2.ebuild')
-rw-r--r--games-roguelike/hengband/hengband-1.6.2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/games-roguelike/hengband/hengband-1.6.2.ebuild b/games-roguelike/hengband/hengband-1.6.2.ebuild
new file mode 100644
index 000000000000..48ebc2462038
--- /dev/null
+++ b/games-roguelike/hengband/hengband-1.6.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2005 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.ebuild,v 1.1 2005/07/10 01:14:57 mr_bones_ Exp $
+
+inherit 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"
+
+KEYWORDS="ppc x86"
+LICENSE="Moria"
+SLOT="0"
+IUSE="cjk X"
+
+DEPEND=">=sys-libs/ncurses-5
+ X? ( virtual/x11 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ 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"
+}
+
+src_compile() {
+ egamesconf \
+ --with-setgid=${GAMES_GROUP} \
+ `use_enable cjk japanese` \
+ `use_with X x` \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ if use cjk ; 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}
+}