From 4990ec0034eae25d4adca67e0b8a264fd015cab1 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Fri, 30 Mar 2012 01:59:57 +0200 Subject: [PATCH] [games-util/springlobby] update ebuild, drop old --- games-util/springlobby/Manifest | 4 +- .../springlobby/springlobby-0.137.ebuild | 61 --------------- .../springlobby/springlobby-0.144-r2.ebuild | 77 +++++++++++++++++++ 3 files changed, 79 insertions(+), 63 deletions(-) delete mode 100644 games-util/springlobby/springlobby-0.137.ebuild create mode 100644 games-util/springlobby/springlobby-0.144-r2.ebuild diff --git a/games-util/springlobby/Manifest b/games-util/springlobby/Manifest index 3ed654541..e603e7dcc 100644 --- a/games-util/springlobby/Manifest +++ b/games-util/springlobby/Manifest @@ -1,2 +1,2 @@ -DIST springlobby-0.137.tar.bz2 1795158 RMD160 6533d7bff97b31e0c8082a6874cd525e6f330b29 SHA1 a080877405ef28839dcc00a3469182d529e389bd SHA256 867b428f041a1da70a9975076933fdfdd28f2e048b25d418f64fa911ad260117 -EBUILD springlobby-0.137.ebuild 1748 RMD160 133f70008408d7fe6a6b869543ac3006d6bc46a5 SHA1 157e50763c6ab38b22e0f1a87898cd390debe701 SHA256 9e4b10b3f0d33f6df0b775920bd5999cca522321e5240cb0d59b2e503a56dc39 +DIST springlobby-0.144.tar.bz2 1797507 RMD160 4408b359c91a1ee1e8e3513b47cfe56ed219f3a7 SHA1 ae448840b5d9a3fec97cb000043e6e968e2ee56f SHA256 d013df9aec0cd3c841ecc59b5fba21101f65372278db40c8bf571f91691d5ea2 +EBUILD springlobby-0.144-r2.ebuild 1735 RMD160 91be3a6051c922aabad315992ebea7ce324dbcf2 SHA1 9bc1587e788eeba4572ee0b49d4cb72605021549 SHA256 3a35d4f131897647925e06d818ecd3dbfdbfc7aee448dd1273534c537877baf3 diff --git a/games-util/springlobby/springlobby-0.137.ebuild b/games-util/springlobby/springlobby-0.137.ebuild deleted file mode 100644 index 020cb452c..000000000 --- a/games-util/springlobby/springlobby-0.137.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# 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/" - CFLAGS="$CFLAGS $(pkg-config --cflags libtorrent-rasterbar)" - CXXFLAGS="$CXXFLAGS $(pkg-config --cflags libtorrent-rasterbar)" - LDFLAGS="$LDFLAGS,$(pkg-config --libs libtorrent-rasterbar)" - 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-0.144-r2.ebuild b/games-util/springlobby/springlobby-0.144-r2.ebuild new file mode 100644 index 000000000..8ffdb422c --- /dev/null +++ b/games-util/springlobby/springlobby-0.144-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 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" +IUSE="+torrent +sound debug libnotify gstreamer" + +RDEPEND=" + games-engines/spring + >=dev-libs/boost-1.35 + x11-libs/wxGTK:2.8[X] + net-misc/curl + libnotify? ( x11-libs/libnotify ) + sound? ( + media-libs/openal + media-libs/libvorbis + media-libs/flac + media-sound/mpg123 + ) + gstreamer? ( media-libs/gstreamer ) + torrent? ( >=net-libs/rb_libtorrent-0.14 ) +" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + >=dev-util/cmake-2.6.0 +" + +src_configure() { + local mycmakeargs=() + + if use torrent ; then + CFLAGS="$CFLAGS $(pkg-config --cflags libtorrent-rasterbar)" + CXXFLAGS="$CXXFLAGS $(pkg-config --cflags libtorrent-rasterbar)" + LDFLAGS="$LDFLAGS,$(pkg-config --libs libtorrent-rasterbar)" + else + mycmakeargs+=( "-DOPTION_TORRENT_SYSTEM=OFF" ) + fi + 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 + + doicon "${D}usr/games/share/icons/hicolor/scalable/apps/springlobby.svg" || die + rm "${D}/usr/share/games/pixmaps/" -fr || die + domenu "${D}usr/games/share/applications/springlobby.desktop" || die + rm "${D}/usr/games/share/applications/" -fr || die +}