# HG changeset patch # User Binki # Date 2009-04-20 18:51:57 # Node ID 527151ba4d59c6c2a91bf05924d20c0b804e16fb # Parent de2fd3302f31c2eb38f6409ede061e29eb21b65b preliminary supertux live ebuild diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest --- a/games-arcade/supertux/Manifest +++ b/games-arcade/supertux/Manifest @@ -1,6 +1,3 @@ -AUX supertux-0.1.3-gcc41.patch 459 RMD160 561fc1e8c69d0dde9124634304893e908485f014 SHA1 08531abf264730a53d3a6f73ecb75bb79d3e475a SHA256 b4b6c6bc888dccece3db323abeb182091e686c96dd959fce545030a887c88ff9 -AUX supertux-0.1.3-ndebug.patch 689 RMD160 00e43b5af0be063ea4d052113c5798725e6a2122 SHA1 5c015600ab09db3228d4c6a9b2fa4261731d2e91 SHA256 544c24a2496ed0988e4be121eb1b8de173e24e5b15edadb8d76160c5c4cea45e -DIST supertux-0.1.3.tar.bz2 6715265 RMD160 54568fa1e99865d18cb042be81a97fd43f56766c SHA1 ad783011fbf15a8a56ca8680769a8c2a15abc515 SHA256 0092588351776626955339caaa62d12ce5954bb80c5f6952f60a122f53c2ad97 -EBUILD supertux-0.1.3.ebuild 1026 RMD160 17d1178fe1c75cb9c046d6c7393f1048fa350b9b SHA1 cb2f93393b897e52d6aa7bf51edfd93f1a55a84b SHA256 98d94a1dc7ba8b41947e559554be363236e6ede5b3f406291d517fb0475c69e6 +EBUILD supertux-9999.ebuild 1229 RMD160 0095ad1d8da22884fc41eaa9cbbb4fddf4a1cca9 SHA1 0b678122fcfc083045ba1f66515d81a3833a07c5 SHA256 031748b9ce9d3c3bbda4235199e7304a4459f8b1e2e96251a0f66ea894449aa0 MISC ChangeLog 4232 RMD160 ce6c073a860e5c99e0b3edd0af182a7d05f5d7fc SHA1 9c3490031a8b0a085774f5491c96c18f3f4f31df SHA256 86e2a8867229328fc8c25b83bf9a3a66a3bc30e1c54b968160099228f501db7b MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 diff --git a/games-arcade/supertux/files/supertux-0.1.3-gcc41.patch b/games-arcade/supertux/files/supertux-0.1.3-gcc41.patch deleted file mode 100644 --- a/games-arcade/supertux/files/supertux-0.1.3-gcc41.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uNr supertux-0.1.3.orig/src/menu.h supertux-0.1.3/src/menu.h ---- supertux-0.1.3.orig/src/menu.h 2005-06-21 23:16:07.000000000 +0200 -+++ supertux-0.1.3/src/menu.h 2006-03-19 15:49:55.277266712 +0100 -@@ -207,7 +207,7 @@ - - bool isToggled(int id); - -- void Menu::get_controlfield_key_into_input(MenuItem *item); -+ void get_controlfield_key_into_input(MenuItem *item); - - void draw (); - void draw_item(int index, int menu_width, int menu_height); diff --git a/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch b/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch deleted file mode 100644 --- a/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: supertux-0.1.3/src/tile.cpp -=================================================================== ---- supertux-0.1.3.orig/src/tile.cpp -+++ supertux-0.1.3/src/tile.cpp -@@ -99,7 +99,11 @@ void TileManager::load_tileset(std::stri - tile->anim_speed = 25; - - LispReader reader(lisp_cdr(element)); -+ #ifdef NDEBUG -+ void(reader.read_int("id", &tile->id)); -+ #else - assert(reader.read_int("id", &tile->id)); -+ #endif - reader.read_bool("solid", &tile->solid); - reader.read_bool("brick", &tile->brick); - reader.read_bool("ice", &tile->ice); diff --git a/games-arcade/supertux/supertux-0.1.3.ebuild b/games-arcade/supertux/supertux-9999.ebuild rename from games-arcade/supertux/supertux-0.1.3.ebuild rename to games-arcade/supertux/supertux-9999.ebuild --- a/games-arcade/supertux/supertux-0.1.3.ebuild +++ b/games-arcade/supertux/supertux-9999.ebuild @@ -3,37 +3,51 @@ # $Header: /var/cvsroot/gentoo-x86/games-arcade/supertux/supertux-0.1.3.ebuild,v 1.14 2009/02/23 01:02:56 mr_bones_ Exp $ EAPI=2 -inherit eutils games +inherit subversion cmake-utils eutils games DESCRIPTION="A game similar to Super Mario Bros." HOMEPAGE="http://super-tux.sourceforge.net" -SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" +SRC_URI="" + +ESVN_REPO_URI="http://supertux.lethargik.org/svn/supertux/trunk/supertux" +ESVN_PROJECT="${PN}" LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 ppc ~ppc64 sparc x86 ~x86-fbsd" -IUSE="opengl" +KEYWORDS="" +IUSE="debug opengl curl" -DEPEND="media-libs/libsdl[joystick] +RDEPEND="media-libs/libsdl[joystick] media-libs/sdl-image[png,jpeg] - media-libs/sdl-mixer[mikmod,vorbis] - x11-libs/libXt" + media-libs/libvorbis + dev-games/physfs + media-libs/openal + x11-libs/libXt + opengl? ( virtual/opengl ) + curl? ( net-misc/curl )" +DEPEND="${RDEPEND} + dev-util/cmake + dev-util/subversion" -PATCHES=( "${FILESDIR}"/${P}-gcc41.patch "${FILESDIR}"/${P}-ndebug.patch ) +src_unpack() { + subversion_src_unpack +} src_configure() { - egamesconf \ - --disable-dependency-tracking \ - --disable-debug \ - $(use_enable opengl) \ - || die + local mycmakeargs="$(cmake-utils_use_enable opengl OPENGL) + -DWERROR=OFF + $(cmake-utils_use_enable debug SQDBG) + $(cmake-utils_use debug DEBUG)" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile } src_install() { - emake DESTDIR="${D}" \ - desktopdir=/usr/share/applications \ - icondir=/usr/share/pixmaps \ - install || die "emake install failed" - dodoc AUTHORS ChangeLog LEVELDESIGN README TODO + cmake-utils_src_install + dodoc AUTHORS ChangeLog LEVELDESIGN README TODO WHATSNEW.txt data/credits.txt prepgamesdirs }