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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Aug 29 12:02:27 2014 UTC (6 years, 3 months ago) by nimiux
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for amd64 wrt bug #518270

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D628E536)

1 # Copyright 1999-2014 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.2.ebuild,v 1.3 2014/08/14 16:45:19 phajdan.jr Exp $
4
5 EAPI=5
6
7 inherit eutils gnome2-utils games
8
9 DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
10 HOMEPAGE="http://armagetronad.org/"
11 SRC_URI="http://launchpad.net/armagetronad/${PV:0:5}/${PV}/+download/armagetronad-${PV}.src.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="dedicated sound"
17
18 RDEPEND="
19 dev-libs/libxml2
20 !dedicated? (
21 media-libs/libpng:0
22 media-libs/sdl-image[jpeg,png]
23 virtual/glu
24 virtual/opengl
25 sound? (
26 media-libs/libsdl[X,sound,opengl,video]
27 media-libs/sdl-mixer
28 )
29 !sound? ( media-libs/libsdl[X,opengl,video] )
30 )"
31 DEPEND="${RDEPEND}"
32
33 src_prepare() {
34 sed -i \
35 -e 's/"png_check_sig"/"png_sig_cmp"/' \
36 -e 's#aa_docdir=.*$#aa_docdir=${docdir}#' \
37 configure || die
38 }
39
40 src_configure() {
41 # --enable-games just messes up paths
42 egamesconf \
43 --docdir=/usr/share/doc/${PF} \
44 $(use_enable dedicated) \
45 $(use_enable sound music) \
46 --disable-sysinstall \
47 --disable-useradd \
48 --disable-uninstall \
49 --disable-games
50 }
51
52 src_install() {
53 emake -j1 DESTDIR="${D}" install
54 einstalldocs
55
56 # misplaced desktop-file/icons
57 rm -rf "${ED%/}${GAMES_DATADIR}"/armagetronad/desktop
58 doicon -s 48 desktop/icons/large/armagetronad.png
59 make_desktop_entry ${PN}
60
61 prepgamesdirs
62 }
63
64 pkg_preinst() {
65 games_pkg_preinst
66 gnome2_icon_savelist
67 }
68
69 pkg_postinst() {
70 games_pkg_postinst
71 gnome2_icon_cache_update
72 }
73
74 pkg_postrm() {
75 gnome2_icon_cache_update
76 }

  ViewVC Help
Powered by ViewVC 1.1.20