From b8b4c048f1022b5854b9fa4042579f770234d93d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 26 Sep 2016 04:12:25 +0300 Subject: springlobby-scm --- games-util/springlobby/springlobby-0.226.ebuild | 82 ------------------------- games-util/springlobby/springlobby-scm.ebuild | 73 ++++++++++++++++++++++ 2 files changed, 73 insertions(+), 82 deletions(-) delete mode 100755 games-util/springlobby/springlobby-0.226.ebuild create mode 100644 games-util/springlobby/springlobby-scm.ebuild (limited to 'games-util') diff --git a/games-util/springlobby/springlobby-0.226.ebuild b/games-util/springlobby/springlobby-0.226.ebuild deleted file mode 100755 index c4b8f77..0000000 --- a/games-util/springlobby/springlobby-0.226.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=3 - -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="+sound debug libnotify gstreamer" - - -RDEPEND=" - >=dev-libs/boost-1.35 - =x11-libs/wxGTK-2.9* - net-misc/curl - libnotify? ( x11-libs/libnotify ) - sound? ( - media-libs/openal - media-libs/libvorbis - media-libs/flac - media-sound/mpg123 - media-libs/alure - ) - gstreamer? ( media-libs/gstreamer ) -" - -DEPEND="${RDEPEND} - >=dev-util/cmake-2.6.0 -" - -src_unpack() { - unpack ${A} - cd ${S} -# epatch "${FILESDIR}/${P}-wx-config.patch" -} - -src_configure() { - local mycmakeargs=($mycmakeargs) - if ! use sound ; then - mycmakeargs+=( - -DOPTION_SOUND=OFF - ) - fi - if use gstreamer ; then - mycmakeargs+=( - -DGSTREAMER=ON - ) - fi - - 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 -} - diff --git a/games-util/springlobby/springlobby-scm.ebuild b/games-util/springlobby/springlobby-scm.ebuild new file mode 100644 index 0000000..137dbcc --- /dev/null +++ b/games-util/springlobby/springlobby-scm.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + + +EAPI="5" +EGIT_REPO_URI="git://github.com/springlobby/springlobby.git" +EGIT_BRANCH="master" + +inherit git-r3 cmake-utils eutils flag-o-matic games + +DESCRIPTION="lobby client for spring rts engine - git version" +HOMEPAGE="http://springlobby.info" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +RESTRICT="nomirror" +IUSE="+sound debug libnotify gstreamer" + +RDEPEND=" + dev-libs/boost + x11-libs/wxGTK:3.0 + net-misc/curl + libnotify? ( x11-libs/libnotify ) + sound? ( + media-libs/openal + media-libs/libvorbis + media-libs/flac + media-sound/mpg123 + media-libs/alure + ) + gstreamer? ( media-libs/gstreamer ) +" + +DEPEND="${RDEPEND} + >=dev-util/cmake-2.6.0 +" +src_unpack() { + git-r3_src_unpack +} + +BUILD_DIR="${WORKDIR}/${P}_build" +src_configure() { + if ! use sound ; then + mycmakeargs="${mycmakeargs} -DOPTION_SOUND=OFF" + fi + if use gstreamer ; then + mycmakeargs="${mycmakeargs} -DGSTREAMER=ON" + 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 +} + -- cgit v1.2.3