# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit cmake-utils eutils flag-o-matic games DESCRIPTION="lobby client for spring rts engine" HOMEPAGE="http://springlobby.info" SRC_URI="http://www.springlobby.info/tarballs/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="nomirror" IUSE="+torrent +sound debug libnotify" RDEPEND=" >=x11-libs/wxGTK-2.8[X] net-misc/curl libnotify? ( x11-libs/libnotify ) sound? ( media-libs/openal ) torrent? ( >=net-libs/rb_libtorrent-0.14 ) " DEPEND="${RDEPEND} >=dev-util/cmake-2.6.0 " src_configure() { if ! use torrent ; then mycmakeargs="${mycmakeargs} -DOPTION_TORRENT_SYSTEM=OFF" fi if ! use sound ; then mycmakeargs="${mycmakeargs} -DOPTION_SOUND=OFF" fi mycmakeargs="${mycmakeargs} -DAUX_VERSION=(Gentoo,$ARCH) -DCMAKE_INSTALL_PREFIX=/usr/games/" cmake-utils_src_configure } src_compile () { cmake-utils_src_compile } src_install() { cmake-utils_src_install prepgamesdirs # bad dodir /usr/share/games/icons/hicolor/scalable/apps/ mv ${D}/usr/games/share/icons/hicolor/scalable/apps/springlobby.svg ${D}/usr/share/games/icons/hicolor/scalable/apps/springlobby.svg rm ${D}/usr/share/games/pixmaps/ -fr dodir /usr/share/games/applications/ mv ${D}/usr/games/share/applications/springlobby.desktop ${D}/usr/share/games/applications/springlobby.desktop rm ${D}/usr/games/share/applications/ -fr dodir /etc/env.d/ echo 'XDG_DATA_DIRS="/usr/share/games"' >> ${D}/etc/env.d/99games }