Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331385 - games-rpg/egoboo-2.8.0 version bump
Summary: games-rpg/egoboo-2.8.0 version bump
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Games
URL: http://egoboo.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-06 06:17 UTC by Matija "hook" Šuklje
Modified: 2011-02-18 18:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matija "hook" Šuklje 2010-08-06 06:17:35 UTC
2.8.0 is out and at the  first glance doesn't look like there's any new dependancies.
Comment 1 Tupone Alfredo gentoo-dev 2010-11-29 15:09:05 UTC
It does not work here. Maybe better to wait for 2.8.1 sources

My attempt to an ebuild is:
---------
egoboo-2.8.0.ebuild ->
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/egoboo/egoboo-2.7.4.ebuild,v 1.8 2010/08/12 03:36:03 josejx Exp $

EAPI=2
inherit toolchain-funcs eutils games

DESCRIPTION="A 3d dungeon crawling adventure in the spirit of NetHack"
HOMEPAGE="http://egoboo.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""

DEPEND="virtual/opengl
        virtual/glu
        media-libs/libsdl[video]
        media-libs/sdl-image
        media-libs/sdl-mixer[vorbis]
        media-libs/sdl-ttf
        net-libs/enet:0"

S="${WORKDIR}/Egoboo "${PV}

src_prepare() {
        edos2unix game/Makefile
        epatch "${FILESDIR}"/${P}-gentoo.patch
        cp "${FILESDIR}"/${P} "${WORKDIR}"/${PN}
        sed -i \
                -e "s:@CFLAGS@:${CFLAGS}:g" \
                -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}/:g" \
                -e "s:@GENTOO_SYSCONFDIR@:${GAMES_SYSCONFDIR}/${PN}/:g" \
                -e "s:@GENTOO_LIBDIR@:$(games_get_libdir):g" \
                game/Makefile game/platform/file_linux.c ../${PN} \
                || die "sed failed"
}

src_compile() {
        emake -C game all PROJ_NAME=${PN} \
                CC="$(tc-getCC)" \
                || die "emake failed"
}

src_install() {
        exeinto "$(games_get_libdir)"
        doexe game/${PN} || die "doexe failed"

        dogamesbin ../${PN}

        insinto "${GAMES_DATADIR}"/${PN}
        doins -r basicdat modules players setup.txt controls.txt \
                || die "doins failed"
        insinto "${GAMES_SYSCONFDIR}"/${PN}

       dodoc Changelog.txt doc/* || die "dodoc failed"

       newicon basicdat/icon.bmp ${PN}.bmp
       make_desktop_entry ${PN} Egoboo /usr/share/pixmaps/${PN}.bmp

        prepgamesdirs
}

----------
files/egoboo-2.8.0 ->

if ! [[ -e ~/.egoboo-2.x/controls.txt ]] ; then
        mkdir ~/.egoboo-2.x
        cp @GENTOO_DATADIR@controls.txt ~/.egoboo-2.x/
fi
exec @GENTOO_LIBDIR@/egoboo

--------------
files/egoboo-2.8.0-gentoo.patch ->
--- game/Makefile.old   2010-11-27 17:51:11.000000000 +0100
+++ game/Makefile       2010-11-27 17:53:09.000000000 +0100
@@ -33,14 +33,10 @@
 # the compiler options

 CC      := gcc
-INC     := -I. -I.. -I../enet/include ${SDLCONF_I} -I./extensions -I./file_formats -I./platform
-LDFLAGS := ${SDLCONF_L} -L../enet/lib -lSDL_ttf -lSDL_mixer -lGL -lGLU -lSDL_image -lphysfs -lenet
+INC     := -I. -I.. -DENET11 ${SDLCONF_I} -I./extensions -I./file_formats -I./platform
+LDLIBS  := ${SDLCONF_L} -lSDL_ttf -lSDL_mixer -lGL -lGLU -lSDL_image -lphysfs -lenet

 # use different options if the environmental variable PREFIX is defined
-ifdef ($(PREFIX),"")
-       OPT := -Os -Wall
+       OPT := @CFLAGS@
-else
-       OPT := -Os -Wall -DPREFIX=\"${PREFIX}\" -D_NIX_PREFIX
-endif

 CFLAGS  := ${OPT} ${INC}
@@ -53,7 +53,7 @@
 all: ${EGO_BIN}

 ${EGO_BIN}: ${EGO_OBJ}
-       ${CC} -o $@ $^ ${LDFLAGS} ${CFLAGS}
+       ${CC} -o $@ $^ $(LDFLAGS) ${LDLIBS}

 clean:
        rm -f ${ENET_OBJ} ${EGO_OBJ} ${EGO_BIN}
--- game/platform/file_linux.c.old      2010-11-27 18:32:00.000000000 +0100
+++ game/platform/file_linux.c  2010-11-27 18:37:40.000000000 +0100
@@ -81,7 +81,7 @@
     // these are read-only directories
-    strncpy( linux_configPath, "/etc/egoboo-2.x/",         SDL_arraysize( linux_configPath ) );
+    strncpy( linux_configPath, "@GENTOO_SYSCONFDIR@",      SDL_arraysize( linux_configPath ) );
     strncpy( linux_binaryPath, "/games/",                  SDL_arraysize( linux_binaryPath ) );
-    strncpy( linux_dataPath,   "/share/games/egoboo-2.x/", SDL_arraysize( linux_dataPath ) );
+    strncpy( linux_dataPath,   "@GENTOO_DATADIR@",         SDL_arraysize( linux_dataPath ) );
 #endif

     // the log file cannot be started until there is a user data path to dump the file into
--- setup.txt.old       2010-11-28 10:05:27.000000000 +0100
+++ setup.txt   2010-11-28 10:05:47.000000000 +0100
@@ -9,7 +9,7 @@
 [PARTICLE_REFLECTION] : "TRUE"
 [MAX_NUMBER_VERTICES] : "100"
 [COLOR_DEPTH] : "24"
-[Z_DEPTH] : "32"
+[Z_DEPTH] : "24"
 [FULLSCREEN] : "FALSE"
 [Z_REFLECTION] : "TRUE"
 [SCREENSIZE_X] : "800"
Comment 2 Simeon Maryasin 2011-02-18 18:28:13 UTC
There is 2.8.2 out already. Please reopen..
Comment 3 Simeon Maryasin 2011-02-18 18:31:39 UTC
oops, i meant 2.8.1