blob: 6d3bd1b9b6131f804eb133172f327c6aa4b6f805 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/frozen-bubble/frozen-bubble-2.2.0.ebuild,v 1.10 2009/09/06 21:25:59 mr_bones_ Exp $
EAPI=2
inherit eutils gnome2-utils perl-module games
DESCRIPTION="A Puzzle Bubble clone written in perl (now with network support)"
HOMEPAGE="http://www.frozen-bubble.org/"
SRC_URI="http://www.frozen-bubble.org/data/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
# there seems to be color issues on big endian hosts
KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86"
IUSE=""
RDEPEND=">=dev-lang/perl-5.6.1
>=media-libs/sdl-mixer-1.2.3[mikmod,vorbis]
media-libs/sdl-pango
media-libs/sdl-image[gif,png]
dev-perl/sdl-perl
dev-perl/Locale-gettext"
DEPEND="${RDEPEND}
sys-devel/autoconf"
src_prepare() {
sed -i \
-e '/^PREFIX /s:=.*:=/usr:' \
-e "/^BINDIR /s:=.*:=${GAMES_BINDIR}:" \
-e "/^DATADIR /s:=.*:=${GAMES_DATADIR}:" \
-e "/^LIBDIR /s:=.*:=$(games_get_libdir):" \
-e '/^LOCALEDIR /s:=.*:=/usr/share/locale:' \
-e "/^MANDIR /s:=.*:=/usr/share/man:" \
settings.mk || die "sed failed"
}
src_install() {
local res
emake DESTDIR="${D}" INSTALLDIRS=vendor install || die "make install failed"
dodoc AUTHORS NEWS README TIPS
for res in 16x16 32x32 48x48 64x64 ; do
insinto /usr/share/icons/hicolor/${res}/apps
newins icons/frozen-bubble-icon-${res}.png ${PN}.png
done
make_desktop_entry ${PN} Frozen-Bubble
fixlocalpod
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|