games-action/armagetronad: version bump
authorMichael Sterrett <mr_bones_@gentoo.org>
Wed, 13 Apr 2016 04:18:34 +0000 (00:18 -0400)
committerMichael Sterrett <mr_bones_@gentoo.org>
Wed, 13 Apr 2016 04:18:34 +0000 (00:18 -0400)
Package-Manager: portage-2.2.26

games-action/armagetronad/Manifest
games-action/armagetronad/armagetronad-0.2.8.3.3.ebuild [new file with mode: 0644]

index 30678d89d9b07b8891da3eaa0482c25b499c2aa7..39565fbf3307a1d94e3c78baaa858688ee823a4e 100644 (file)
@@ -1 +1,2 @@
 DIST armagetronad-0.2.8.3.2.src.tar.bz2 1841407 SHA256 f444e481de94e6c0e3933c709d46effd2adfe823f5ef44768adcc8003b8ba7c5 SHA512 ffe16d55d4ea3c9e3f4f8828a9ffb09274b20a33c6d5c91cccbe846fa93f7d1d78e565db3c9403debf9f7bfde76322477a84349d85b475ed20c184da281107a4 WHIRLPOOL f04902c7bf3b13ec35497202a658ef96846b59d4245c72a17793b186d06a8f2d2dc1960b563b785cfb46aa9e2252a8ba22436df44e4ccfa2e8c872b4eb51eb4a
+DIST armagetronad-0.2.8.3.3.src.tar.bz2 1857868 SHA256 ddf2d781b134392e9667f17e0319ae2117c20e6eb7738e3cacd701f3608ea5e8 SHA512 05dd7db10efdac0e681133d07384b0e3c2edea328433f1d906e36b5f70960bf502df8d496967981b6bd67e1a119af9a5bbd71b0c824f790921deb3165165dc3f WHIRLPOOL 731b3e8d8647948e016e4dbfa3733f666838d0b4e47f997e149b947741d3b566d9aa1492dc570064e0005c92b0c04f4c74ad4a0278ff7018b028d9c431af135d
diff --git a/games-action/armagetronad/armagetronad-0.2.8.3.3.ebuild b/games-action/armagetronad/armagetronad-0.2.8.3.3.ebuild
new file mode 100644 (file)
index 0000000..c292cc1
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils gnome2-utils games
+
+DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
+HOMEPAGE="http://armagetronad.org/"
+SRC_URI="https://launchpad.net/armagetronad/${PV:0:5}/${PV:0:7}.x/+download/armagetronad-${PV}.src.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated sound"
+
+RDEPEND="
+       dev-libs/libxml2
+       !dedicated? (
+               media-libs/libpng:0
+               media-libs/sdl-image[jpeg,png]
+               virtual/glu
+               virtual/opengl
+               media-libs/libsdl[X,opengl,video]
+               sound? (
+                       media-libs/libsdl[sound]
+                       media-libs/sdl-mixer
+               )
+       )"
+DEPEND=${RDEPEND}
+
+src_prepare() {
+       sed -i -e 's#aa_docdir=.*$#aa_docdir=${docdir}#' configure || die
+}
+
+src_configure() {
+       # --enable-games just messes up paths
+       egamesconf \
+               --docdir=/usr/share/doc/${PF} \
+               $(use_enable dedicated) \
+               $(use_enable sound music) \
+               --disable-sysinstall \
+               --disable-useradd \
+               --disable-uninstall \
+               --disable-games
+}
+
+src_install() {
+       emake -j1 DESTDIR="${D}" install
+       einstalldocs
+
+       # misplaced desktop-file/icons
+       rm -rf "${ED%/}${GAMES_DATADIR}"/armagetronad/desktop
+       doicon -s 48 desktop/icons/large/armagetronad.png
+       make_desktop_entry ${PN}
+
+       prepgamesdirs
+}
+
+pkg_preinst() {
+       games_pkg_preinst
+       gnome2_icon_savelist
+}
+
+pkg_postinst() {
+       games_pkg_postinst
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}