/[gentoo-x86]/games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild
Gentoo

Contents of /games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Jan 2 21:52:24 2011 UTC (9 years, 10 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
games-action/armagetronad is gone

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild,v 1.9 2010/11/20 10:47:58 mr_bones_ Exp $
4
5 EAPI=2
6 inherit autotools eutils gnome2-utils games
7
8 DESCRIPTION="3d tron lightcycles, just like the movie"
9 HOMEPAGE="http://armagetronad.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.bz2
11 !dedicated? (
12 http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
13 http://armagetron.sourceforge.net/addons/moviepack.zip
14 )"
15
16 LICENSE="GPL-3"
17 SLOT="0"
18 KEYWORDS="amd64 ppc x86"
19 IUSE="dedicated"
20
21 RDEPEND="dev-libs/libxml2
22 !dedicated? (
23 virtual/opengl
24 virtual/glu
25 media-libs/libsdl[X,audio,opengl,video]
26 media-libs/sdl-image[jpeg,png]
27 >=media-libs/jpeg-6b
28 >=media-libs/libpng-1.2.40
29 )"
30 DEPEND="${RDEPEND}
31 !dedicated? ( app-arch/unzip )"
32
33 src_prepare() {
34 sed -i \
35 -e 's/png_check_sig/png_sig_cmp/' \
36 configure.ac || die
37
38 sed -i \
39 -e '/^SUBDIRS/s/desktop//' \
40 Makefile.am || die
41
42 eautoreconf
43 }
44
45 src_configure() {
46 local myconf
47 use dedicated && myconf="--disable-glout"
48
49 egamesconf \
50 --enable-initscripts=/usr/share/doc/${PF}/examples \
51 --disable-uninstall \
52 ${myconf}
53 }
54
55 src_install() {
56 emake DESTDIR="${D}" armadocdir="/usr/share/doc/${PF}" install || die
57 dodoc AUTHORS ChangeLog NEWS README*
58
59 if ! use dedicated; then
60 local hidir="/usr/share/icons/hicolor"
61 insinto ${hidir}/48x48/apps
62 doins desktop/icons/large/${PN}.png || die
63 insinto ${hidir}/32x32/apps
64 doins desktop/icons/medium/${PN}.png || die
65 insinto ${hidir}/16x16/apps
66 doins desktop/icons/small/${PN}.png || die
67
68 make_desktop_entry armagetronad "Armagetron Advanced"
69
70 insinto "${GAMES_DATADIR}"/${PN}
71 doins -r ../moviepack ../moviesounds || die
72 fi
73
74 prepgamesdirs
75 }
76
77 pkg_preinst() {
78 games_pkg_preinst
79 gnome2_icon_savelist
80 }
81
82 pkg_postinst() {
83 games_pkg_postinst
84 gnome2_icon_cache_update
85 }
86
87 pkg_postrm() {
88 gnome2_icon_cache_update
89 }

  ViewVC Help
Powered by ViewVC 1.1.20