| Summary: | tuxdash-0.8.ebuild (New) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Gerrit <diewelt> |
| Component: | New packages | Assignee: | 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
Created attachment 34032 [details]
tuxdash-0.8.ebuild (new)
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 } 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 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 } Created attachment 39769 [details, diff]
Source code patch for the binary path
Created attachment 39770 [details, diff]
Config file patch
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.
games-arcade/tuxdash added to portage. Thanks for the bug report. |