diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-11-08 17:13:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-11-08 17:13:04 +0000 |
commit | 96e018177b962ef1970d3b51c968be8c1442c22d (patch) | |
tree | d93d9f00eb11f8e158afaa143e049618eb2d32ee /games-puzzle/gemhun | |
parent | add amd64 flag (diff) | |
download | historical-96e018177b962ef1970d3b51c968be8c1442c22d.tar.gz historical-96e018177b962ef1970d3b51c968be8c1442c22d.tar.bz2 historical-96e018177b962ef1970d3b51c968be8c1442c22d.zip |
initial ebuild #31571
Diffstat (limited to 'games-puzzle/gemhun')
-rw-r--r-- | games-puzzle/gemhun/ChangeLog | 9 | ||||
-rw-r--r-- | games-puzzle/gemhun/files/20031016-gentoo-paths.patch | 11 | ||||
-rw-r--r-- | games-puzzle/gemhun/files/digest-gemhun-20031016 | 2 | ||||
-rw-r--r-- | games-puzzle/gemhun/gemhun-20031016.ebuild | 42 |
4 files changed, 64 insertions, 0 deletions
diff --git a/games-puzzle/gemhun/ChangeLog b/games-puzzle/gemhun/ChangeLog new file mode 100644 index 000000000000..cb18e5d6f833 --- /dev/null +++ b/games-puzzle/gemhun/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for games-puzzle/gemhun +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gemhun/ChangeLog,v 1.1 2003/11/08 17:13:04 vapier Exp $ + +*gemhun-20031016 (08 Nov 2003) + + 08 Nov 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Matija Suklje (hook) <matija.suklje@rutka.net>, + Mr. Bones., and myself #31571. diff --git a/games-puzzle/gemhun/files/20031016-gentoo-paths.patch b/games-puzzle/gemhun/files/20031016-gentoo-paths.patch new file mode 100644 index 000000000000..7c535b283af0 --- /dev/null +++ b/games-puzzle/gemhun/files/20031016-gentoo-paths.patch @@ -0,0 +1,11 @@ +--- src/main.cpp.orig 2003-11-08 12:05:44.053967560 -0500 ++++ src/main.cpp 2003-11-08 12:06:20.311455584 -0500 +@@ -116,7 +116,7 @@ + if ( chdir( "data" ) != 0 ) // this works in source-tree + if ( chdir ( "../../data" ) != 0 ) // this works in source-tree + if ( chdir ( "../data" ) != 0 ) // this works in release +- chdir ( "../../GemHunters-data" ) ; // last resort :) ++ chdir ( GENTOO_DATADIR ) ; // last resort :) + + file_cache . Init () ; + diff --git a/games-puzzle/gemhun/files/digest-gemhun-20031016 b/games-puzzle/gemhun/files/digest-gemhun-20031016 new file mode 100644 index 000000000000..0bd79fe1f934 --- /dev/null +++ b/games-puzzle/gemhun/files/digest-gemhun-20031016 @@ -0,0 +1,2 @@ +MD5 6513e95c2f89669a29c0bdfd0fd6fede GemHunters-src-20031016.tar.gz 4393549 +MD5 5188accdbf23641c6ee874a2a924caa3 GemHunters-data-20031016.tar.gz 8246049 diff --git a/games-puzzle/gemhun/gemhun-20031016.ebuild b/games-puzzle/gemhun/gemhun-20031016.ebuild new file mode 100644 index 000000000000..3fa9f1b662a7 --- /dev/null +++ b/games-puzzle/gemhun/gemhun-20031016.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gemhun/gemhun-20031016.ebuild,v 1.1 2003/11/08 17:13:04 vapier Exp $ + +inherit games + +DESCRIPTION="A puzzle game about grouping gems of a chosen amount together" +HOMEPAGE="http://gemhun.sourceforge.net/" +SRC_URI="mirror://sourceforge/gemhun/GemHunters-src-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ppc" + +DEPEND="dev-games/kyra + >=media-libs/sdl-mixer-1.2.1 + virtual/x11" + +S=${WORKDIR}/GemHunters + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-gentoo-paths.patch + append-flags -DGENTOO_DATADIR="'\"${GAMES_DATADIR}/${PN}/\"'" + sed -i "s:-O3:${CFLAGS}:" src/makefile.unix +} + +src_compile() { + export SDL_VIDEODRIVER="dummy" + emake || die "emake failed" +} + +src_install() { + dogamesbin unix/*/gemhun + local datadir=${GAMES_DATADIR}/${PN} + dodir ${datadir} + cp -r data/* ${D}/${datadir}/ + find ${D}/${datadir} -name makefile -exec rm '{}' \; + dodoc changelog readme todo + prepgamesdirs +} |