blob: 4c7b3bfc38dbddc1af62569b34d88dcce9c80de4 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/gnome-hearts/gnome-hearts-0.3.ebuild,v 1.5 2010/05/22 16:07:46 pacho Exp $
EAPI=2
GCONF_DEBUG=no
PYTHON_DEPEND="2"
inherit autotools eutils python gnome2 games
DESCRIPTION="A clone of classic hearts card game"
HOMEPAGE="http://www.gnome-hearts.org"
SRC_URI="http://www.jejik.com/files/${PN}/${P}.tar.gz"
LICENSE="GPL-2 FDL-1.2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="nls"
RDEPEND="x11-libs/gtk+:2
>=gnome-base/libglade-2
>=gnome-base/libgnomeui-2"
DEPEND="${RDEPEND}
app-text/rarian
dev-util/intltool
dev-util/pkgconfig"
DOCS="AUTHORS ChangeLog NEWS README TODO"
pkg_setup() {
python_set_active_version 2
games_pkg_setup
}
src_prepare() {
# make src_test work
echo gnome-hearts.desktop.in >> po/POTFILES.skip
gnome2_src_prepare
epatch "${FILESDIR}"/${P}-python.patch
intltoolize --force --copy --automake || die
eautoreconf
}
src_configure() {
gnome2_src_configure \
--bindir="${GAMES_BINDIR}" \
$(use_enable nls)
}
src_install() {
gnome2_src_install
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_pkg_preinst
}
pkg_postinst() {
games_pkg_postinst
gnome2_pkg_postinst
}
|