summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 06:36:01 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 06:36:01 +0000
commit1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd (patch)
treeca8136a0afa54ff74d56a3c97d2a42e671627c44 /games-puzzle/xbomb/xbomb-2.1-r1.ebuild
parentgames-puzzle (diff)
downloadhistorical-1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd.tar.gz
historical-1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd.tar.bz2
historical-1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd.zip
games-puzzle !@
Diffstat (limited to 'games-puzzle/xbomb/xbomb-2.1-r1.ebuild')
-rw-r--r--games-puzzle/xbomb/xbomb-2.1-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/games-puzzle/xbomb/xbomb-2.1-r1.ebuild b/games-puzzle/xbomb/xbomb-2.1-r1.ebuild
new file mode 100644
index 000000000000..c234f13ed565
--- /dev/null
+++ b/games-puzzle/xbomb/xbomb-2.1-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/xbomb/xbomb-2.1-r1.ebuild,v 1.1 2003/09/10 06:36:00 vapier Exp $
+
+inherit games
+
+DESCRIPTION="Minesweeper clone with hexagonal, rectangular and triangular grid"
+SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/games/strategy/${P}.tgz"
+HOMEPAGE="http://www.gedanken.demon.co.uk/xbomb/"
+
+LICENSE="GPL-2"
+KEYWORDS="x86"
+SLOT="0"
+
+DEPEND="virtual/x11
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ patch -p0 < ${FILESDIR}/${P}.diff || die
+ sed -i \
+ -e "/^CFLAGS/ { s:=.*:=${CFLAGS}: }" \
+ -e "s:/usr/bin:${GAMES_BINDIR}:" ${S}/Makefile || \
+ die "sed Makefile failed"
+ sed -i \
+ -e "s:/var/tmp:/var/games:g" ${S}/hiscore.c || \
+ die "sed hiscore.c failed"
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ einstall DESTDIR=${D} || die
+ dodoc README LSM || die
+ keepdir /var/games || die
+ touch ${D}/var/games/xbomb{3,4,6}.hi || die "touch failed"
+ fperms 664 /var/games/xbomb{3,4,6}.hi || die
+
+ prepall
+ prepgamesdirs
+}