# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-arcade/ultrastar-deluxe/ultrastar-deluxe-1.1.0.ebuild,v 1.1 2008/07/04 08:41:32 frostwork Exp $ inherit eutils games flag-o-matic subversion ESVN_REPO_URI="https://ultrastardx.svn.sourceforge.net/svnroot/ultrastardx/trunk" DESCRIPTION="A free and open source karaoke game" HOMEPAGE="http://ultrastardx.sourceforge.net/" #SRC_URI="http://switch.dl.sourceforge.net/sourceforge/ultrastardx/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="libprojectM" RDEPEND="dev-lang/fpc media-libs/sdl-image media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-ttf libprojectM? ( media-libs/libprojectm ) >=media-libs/portaudio-19_pre20071207 media-video/ffmpeg virtual/opengl virtual/glu" pkg_setup() { games_pkg_setup } src_unpack() { subversion_src_unpack } src_compile() { egamesconf \ $(use_with libprojectM) \ || die "Configure failed!" emake || die "emake failed" } src_install() { dogamesbin game/ultrastardx local datadir="${GAMES_DATADIR}"/${PN} dodir ${datadir} insinto "${GAMES_DATADIR}"/${PN} doins -r plugins artwork game/languages game/resources game/sounds game/themes game/visuals || die dodir "${GAMES_DATADIR}"/${PN}/songs doicon game/artwork/usdx_icon_512.png make_desktop_entry ${PN} ${PN} dodoc README* prepgamesdirs } pkg_postinst() { games_pkg_postinst }