diff --git a/games-arcade/supertux/supertux-0.1.3.ebuild b/games-arcade/supertux/supertux-9999.ebuild copy from games-arcade/supertux/supertux-0.1.3.ebuild copy 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 }