diff options
-rw-r--r-- | games-action/armagetronad/ChangeLog | 10 | ||||
-rw-r--r-- | games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild | 91 |
2 files changed, 99 insertions, 2 deletions
diff --git a/games-action/armagetronad/ChangeLog b/games-action/armagetronad/ChangeLog index fb2b75e8ca57..b76994148ca4 100644 --- a/games-action/armagetronad/ChangeLog +++ b/games-action/armagetronad/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-action/armagetronad -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/ChangeLog,v 1.14 2009/06/08 17:07:30 mr_bones_ Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/ChangeLog,v 1.15 2010/03/19 18:40:42 ssuominen Exp $ + +*armagetronad-0.2.8.3.1 (19 Mar 2010) + + 19 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> + +armagetronad-0.2.8.3.1.ebuild: + Version bump. 08 Jun 2009; Michael Sterrett <mr_bones_@gentoo.org> +files/armagetronad-0.2.7.1-build.patch, armagetronad-0.2.7.1-r1.ebuild: 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 +} |