diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 06:36:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 06:36:01 +0000 |
commit | 2f7b073c1bc54c873666c4522cd6cd49ac1d59df (patch) | |
tree | 072f3e7b49f6b078b595b1483277009b1f03d0f6 /games-puzzle/xbomb/xbomb-2.1-r1.ebuild | |
parent | games-puzzle (diff) | |
download | gentoo-2-2f7b073c1bc54c873666c4522cd6cd49ac1d59df.tar.gz gentoo-2-2f7b073c1bc54c873666c4522cd6cd49ac1d59df.tar.bz2 gentoo-2-2f7b073c1bc54c873666c4522cd6cd49ac1d59df.zip |
games-puzzle !@
Diffstat (limited to 'games-puzzle/xbomb/xbomb-2.1-r1.ebuild')
-rw-r--r-- | games-puzzle/xbomb/xbomb-2.1-r1.ebuild | 43 |
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 +} |