Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 54983

Summary: tuxdash-0.8.ebuild (New)
Product: Gentoo Linux Reporter: Gerrit <diewelt>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: enhancement CC: diewelt
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://www.tuxdash.de/index.php?language=EN
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: tuxdash-0.8.ebuild (new)
Source code patch for the binary path
Config file patch
Fixed Ebuild

Description Gerrit 2004-06-24 02:09:56 UTC
Hi,

this is an Ebuild for a nice Boulder Dash clone.
See http://www.tuxdash.de/index.php?language=EN for further information.

I suggest games-arcade/tuxdash

gerrit
Comment 1 Gerrit 2004-06-24 02:13:42 UTC
Created attachment 34032 [details]
tuxdash-0.8.ebuild (new)
Comment 2 Gerrit 2004-07-19 08:27:19 UTC
Comment on attachment 34032 [details]
tuxdash-0.8.ebuild (new)

inherit flag-o-matic games

DESCRIPTION="A BoulderDash clone using sdl"
HOMEPAGE="http://www.tuxdash.de/index.php?language=EN"
SRC_URI="http://www.tuxdash.de/ressources/downloads/tuxdash_src_0.8.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="X sdl"
DEPEND="x11 libsdl sdl-ttf"
RDEPEND=${DEPEND}

src_unpack() {
	unpack tuxdash_src_0.8.tar.bz2
}

src_compile() {
	cd ${WORKDIR}/${P}/src
	make
}

src_install() {
	cd ${WORKDIR}/${P}
	echo "cd ${GAMES_DATADIR}/${PN}" > tuxdash
	echo "exec ./TuxDash" >> tuxdash
	dogamesbin tuxdash
	rm tuxdash
	rm -r src
	dodir ${GAMES_DATADIR}/${PN}
	cp -r * ${D}/${GAMES_DATADIR}/${PN}
	prepgamesdirs
}
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-08-31 19:19:31 UTC
Some comments/fixes that need to happen before this goes into portage:

Needs to be patched so the binary can just be installed in GAMES_BINDIR.
Seems to already look in $HOME for config files, etc.

ebuild needs to have header.txt added to the top.

The deps need to be full category/package (see all the other ebuilds in the portage tree).

Needs to use emake.

should be IUSE="" since X and sdl aren't optional.

Needs ${PV} in SRC_URI, not hard-coded version.

Don't remove files in src_install.  Instead, fix things up in src_unpack if needed.

No need to install GPL.

No need to inherit flag-o-matic
Comment 4 Gerrit 2004-09-17 11:13:26 UTC
Comment on attachment 34032 [details]
tuxdash-0.8.ebuild (new)

# Copyright 1999 - 2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit games

DESCRIPTION="A BoulderDash clone using sdl"
HOMEPAGE="http://www.tuxdash.de/index.php?language=EN"
SRC_URI="http://www.tuxdash.de/ressources/downloads/${PN}_src_${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="media-libs/libsdl media-libs/sdl-ttf"
RDEPEND=${DEPEND}

src_unpack() {
	unpack ${PN}_src_${PV}.tar.bz2
	cd ${WORKDIR}/${P}
	rm GPL
	epatch "${FILESDIR}/config.patch"
	cd ${WORKDIR}/${P}/src
	epatch "${FILESDIR}/path.patch"
}

src_compile() {
	cd ${WORKDIR}/${P}/src
	emake || die "emake failed"
}

src_install() {
	cd ${WORKDIR}/${P}
	dogamesbin TuxDash
	dodir ${GAMES_DATADIR}/${PN}
	cp -r themes maps savegames fonts README* config
${D}/${GAMES_DATADIR}/${PN}
	prepgamesdirs
}
Comment 5 Gerrit 2004-09-17 11:15:35 UTC
Created attachment 39769 [details, diff]
Source code patch for the binary path
Comment 6 Gerrit 2004-09-17 11:16:04 UTC
Created attachment 39770 [details, diff]
Config file patch
Comment 7 Gerrit 2004-09-17 11:21:59 UTC
Created attachment 39771 [details]
Fixed Ebuild

Thanks for pointing out that corrections. Sorry for the many mistakes in the
first place. Its my first ebuild.
I hope it's okay this time.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2004-09-25 03:20:09 UTC
games-arcade/tuxdash added to portage.  Thanks for the bug report.