/[gentoo-x86]/games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild
Gentoo

Contents of /games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Oct 17 03:24:49 2012 UTC (2 years ago) by phajdan.jr
Branch: MAIN
Changes since 1.4: +2 -2 lines
x86 stable wrt bug #435878

(Portage version: 2.1.11.9/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/dunelegacy/dunelegacy-0.96.2.ebuild,v 1.4 2012/10/14 20:05:31 maekke Exp $
4
5 EAPI=4
6 inherit autotools eutils gnome2-utils games
7
8 DESCRIPTION="Updated clone of Westood Studios' Dune2"
9 HOMEPAGE="http://dunelegacy.sourceforge.net"
10 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~arm x86"
15 IUSE="+alsa pulseaudio"
16
17 RDEPEND="media-libs/libsdl[X,alsa?,audio,pulseaudio?,video]
18 media-libs/sdl-mixer[midi,mp3,vorbis]"
19 DEPEND="${RDEPEND}
20 virtual/pkgconfig"
21
22 # exits on start without libsdl[alsa] or libsdl[pulseaudio]
23 REQUIRED_USE="|| ( alsa pulseaudio )"
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${P}-build.patch
27 eautoreconf
28 }
29
30 src_install() {
31 default
32
33 doicon -s scalable ${PN}.svg
34 doicon -s 48 ${PN}.png
35 make_desktop_entry ${PN} "Dune Legacy"
36
37 prepgamesdirs
38 }
39
40 pkg_preinst() {
41 games_pkg_preinst
42 gnome2_icon_savelist
43 }
44
45 pkg_postinst() {
46 games_pkg_postinst
47 gnome2_icon_cache_update
48 }
49
50 pkg_postrm() {
51 gnome2_icon_cache_update
52 }

  ViewVC Help
Powered by ViewVC 1.1.20