summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-19 18:40:42 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-19 18:40:42 +0000
commit07ad0ea93273fcf27f6ba8de89639a8ef91b69cc (patch)
tree355e6a00b70f90193b013c03ec18a78ee062b6d3 /games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild
parentFix compilation on older Mac OS X systems by disabling new locking methods th... (diff)
downloadhistorical-07ad0ea93273fcf27f6ba8de89639a8ef91b69cc.tar.gz
historical-07ad0ea93273fcf27f6ba8de89639a8ef91b69cc.tar.bz2
historical-07ad0ea93273fcf27f6ba8de89639a8ef91b69cc.zip
Version bump.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild')
-rw-r--r--games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild91
1 files changed, 91 insertions, 0 deletions
diff --git a/games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild b/games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild
new file mode 100644
index 000000000000..934c012cde12
--- /dev/null
+++ b/games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild,v 1.1 2010/03/19 18:40:42 ssuominen Exp $
+
+EAPI=2
+inherit autotools eutils gnome2-utils games
+
+DESCRIPTION="3d tron lightcycles, just like the movie"
+HOMEPAGE="http://armagetronad.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.bz2
+ !dedicated? (
+ http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
+ http://armagetron.sourceforge.net/addons/moviepack.zip
+ )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="dedicated"
+
+RDEPEND="dev-libs/libxml2
+ !dedicated? (
+ sys-libs/zlib
+ virtual/opengl
+ virtual/glu
+ media-libs/libsdl[X,audio,video]
+ media-libs/sdl-image[jpeg,png]
+ >=media-libs/jpeg-6b
+ >=media-libs/libpng-1.2.40
+ )"
+DEPEND="${RDEPEND}
+ !dedicated? ( app-arch/unzip )"
+
+src_prepare() {
+ sed -i \
+ -e 's/png_check_sig/png_sig_cmp/' \
+ configure.ac || die
+
+ sed -i \
+ -e '/^SUBDIRS/s/desktop//' \
+ Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use dedicated && myconf="--disable-glout"
+
+ egamesconf \
+ --enable-initscripts=/usr/share/doc/${PF}/examples \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" armadocdir="/usr/share/doc/${PF}" install || die
+ dodoc AUTHORS ChangeLog NEWS README*
+
+ rm -f "${D}/${GAMES_BINDIR}"/${PN}{,-dedicated}-uninstall
+
+ if ! use dedicated; then
+ local hidir="/usr/share/icons/hicolor"
+ insinto ${hidir}/48x48/apps
+ doins desktop/icons/large/${PN}.png || die
+ insinto ${hidir}/32x32/apps
+ doins desktop/icons/medium/${PN}.png || die
+ insinto ${hidir}/16x16/apps
+ doins desktop/icons/small/${PN}.png || die
+
+ make_desktop_entry armagetronad "Armagetron Advanced"
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r ../moviepack ../moviesounds || die
+ fi
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}