1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 # do not use autotools related stuff in stable ebuilds
5 # unless you like random breakage: 469796, 469798, 424041
8 inherit eutils gnome2-utils games # STABLE ARCH
9 #inherit autotools eutils gnome2-utils games # UNSTABLE ARCH
11 DESCRIPTION="Updated clone of Westood Studios' Dune2"
12 HOMEPAGE="http://dunelegacy.sourceforge.net"
13 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
14 SRC_URI="${SRC_URI} https://dev.gentoo.org/~hasufell/distfiles/${P}-no-autoreconf.patch.xz" # STABLE ARCH
18 KEYWORDS="~amd64 ~arm ~x86"
19 IUSE="+alsa pulseaudio"
21 RDEPEND="media-libs/libsdl[X,alsa?,sound,pulseaudio?,video]
22 media-libs/sdl-mixer[midi,mp3,vorbis]"
26 # exits on start without libsdl[alsa] or libsdl[pulseaudio]
27 REQUIRED_USE="|| ( alsa pulseaudio )"
30 epatch "${DISTDIR}"/${P}-no-autoreconf.patch.xz # STABLE ARCH
31 # epatch "${FILESDIR}"/${P}-build.patch # UNSTABLE ARCH
32 # eautoreconf # UNSTABLE ARCH
38 doicon -s scalable ${PN}.svg
39 doicon -s 48 ${PN}.png
40 make_desktop_entry ${PN} "Dune Legacy"
52 gnome2_icon_cache_update
56 gnome2_icon_cache_update