Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 347751
Collapse All | Expand All

(-)/usr/portage/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild (-49 / +39 lines)
Lines 1-62 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.30.2-r1.ebuild,v 1.8 2010/10/17 15:45:35 armin76 Exp $
3
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-2.30.1.ebuild,v 1.1 2010/06/13 21:47:18 pacho Exp $
4
4
5
EAPI="2"
5
EAPI="3"
6
GCONF_DEBUG="no"
6
GCONF_DEBUG="no"
7
WANT_AUTOMAKE="1.11"
7
WANT_AUTOMAKE="1.11"
8
8
9
# make sure games is inherited first so that the gnome2
9
# make sure games is inherited first so that the gnome2
10
# functions will be called if they are not overridden
10
# functions will be called if they are not overridden
11
inherit games games-ggz gnome2 python virtualx
11
inherit games games-ggz eutils gnome2 python virtualx
12
12
13
DESCRIPTION="Collection of games for the GNOME desktop"
13
DESCRIPTION="Collection of games for the GNOME desktop"
14
HOMEPAGE="http://live.gnome.org/GnomeGames/"
14
HOMEPAGE="http://live.gnome.org/GnomeGames/"
15
15
16
LICENSE="GPL-2 FDL-1.1"
16
LICENSE="GPL-2 GPL-3 FDL-1.1"
17
SLOT="0"
17
SLOT="0"
18
KEYWORDS="alpha ~amd64 ~arm ia64 ppc ppc64 sh sparc ~x86 ~x86-fbsd"
18
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
19
IUSE="artworkextra +clutter guile opengl +sound test"
19
IUSE="artworkextra +clutter guile +introspection opengl +sound test"
20
20
21
# USE=clutter also enables introspection because gnome-games is the only known
21
RDEPEND="
22
# consumer of introspection on libgames-support etc. If something else pops up,
23
# we'll have to enable it unconditionally because we have no sane way of
24
# representing inter-use-flag dependencies
25
COMMON_DEPEND="
26
	>=dev-games/libggz-0.0.14
22
	>=dev-games/libggz-0.0.14
27
	>=dev-games/ggz-client-libs-0.0.14
23
	>=dev-games/ggz-client-libs-0.0.14
28
	>=dev-libs/dbus-glib-0.75
24
	>=dev-libs/dbus-glib-0.75
29
	>=dev-libs/glib-2.6.3
25
	>=dev-libs/glib-2.25.7
30
	>=dev-libs/libxml2-2.4.0
26
	>=dev-libs/libxml2-2.4.0
31
	>=dev-python/gconf-python-2.17.3
27
	>=dev-python/gconf-python-2.17.3
32
	>=dev-python/pygobject-2
28
	>=dev-python/pygobject-2
33
	>=dev-python/pygtk-2.14
29
	>=dev-python/pygtk-2.14
34
	>=dev-python/pycairo-1
30
	>=dev-python/pycairo-1
35
	>=gnome-base/gconf-2
31
	>=gnome-base/gconf-2.31.1[introspection?]
36
	>=gnome-base/librsvg-2.14
32
	>=gnome-base/librsvg-2.14
37
	>=x11-libs/cairo-1
33
	>=x11-libs/cairo-1
38
	>=x11-libs/gtk+-2.16
34
	>=x11-libs/gtk+-2.16:2[introspection?]
39
	x11-libs/libSM
35
	x11-libs/libSM
40
36
41
	artworkextra? ( gnome-extra/gnome-games-extra-data )
37
	sound? ( media-libs/libcanberra[gtk] )
42
	clutter? (
43
		>=dev-libs/gobject-introspection-0.6.3
44
		>=media-libs/clutter-1.0.0:1.0
45
		>=media-libs/clutter-gtk-0.10.2:1.0 )
46
	guile? ( >=dev-scheme/guile-1.6.5[deprecated,regex] )
38
	guile? ( >=dev-scheme/guile-1.6.5[deprecated,regex] )
39
	artworkextra? ( gnome-extra/gnome-games-extra-data )
47
	opengl? (
40
	opengl? (
48
		dev-python/pygtkglext
41
		dev-python/pygtkglext
49
		>=dev-python/pyopengl-3 )
42
		>=dev-python/pyopengl-3 )
50
	sound? ( media-libs/libcanberra[gtk] )
43
	clutter? ( >=media-libs/clutter-1.0[gtk,introspection?]
44
		>=media-libs/clutter-gtk-0.10[introspection?] )
45
	introspection? ( >=dev-libs/gobject-introspection-0.6.3 )
51
	!games-board/glchess"
46
	!games-board/glchess"
52
RDEPEND="${COMMON_DEPEND}
47
53
	clutter? (
48
DEPEND="${RDEPEND}
54
		dev-libs/seed
49
	sys-apps/lsb-release
55
		x11-libs/gtk+[introspection]
56
		>=media-libs/clutter-1.0.0:1.0[introspection]
57
		>=media-libs/clutter-gtk-0.10.2:1.0[introspection] )"
58
DEPEND="${COMMON_DEPEND}
59
	>=sys-devel/autoconf-2.53
60
	>=dev-util/pkgconfig-0.15
50
	>=dev-util/pkgconfig-0.15
61
	>=dev-util/intltool-0.40.4
51
	>=dev-util/intltool-0.40.4
62
	>=sys-devel/gettext-0.10.40
52
	>=sys-devel/gettext-0.10.40
Lines 65-73 Link Here
65
	>=app-text/gnome-doc-utils-0.10
55
	>=app-text/gnome-doc-utils-0.10
66
	test? ( >=dev-libs/check-0.9.4 )"
56
	test? ( >=dev-libs/check-0.9.4 )"
67
57
68
# Others are installed below; multiples in this package.
69
DOCS="AUTHORS HACKING MAINTAINERS TODO"
70
71
# dang make-check fails on docs with -j > 1.  Restrict them for the moment until
58
# dang make-check fails on docs with -j > 1.  Restrict them for the moment until
72
# it can be chased down.
59
# it can be chased down.
73
RESTRICT="test"
60
RESTRICT="test"
Lines 80-106 Link Here
80
	# create the games user / group
67
	# create the games user / group
81
	games_pkg_setup
68
	games_pkg_setup
82
69
70
	# kde card format needs carddecks from kdegames
71
	# the same for pysol
83
	G2CONF="${G2CONF}
72
	G2CONF="${G2CONF}
84
		$(use_enable clutter introspection)
85
		$(use_enable sound)
73
		$(use_enable sound)
86
		--disable-card-themes-installer
74
		$(use_enable introspection)
87
		--disable-aisleriot-clutter
88
		--with-scores-group=${GAMES_GROUP}
75
		--with-scores-group=${GAMES_GROUP}
89
		--with-platform=gnome
76
		--with-platform=gnome
90
		--with-card-theme-formats=all
77
		--with-card-theme-formats="svg,fixed"
91
		--with-smclient
78
		--with-smclient
79
		--with-gtk=2.0
92
		--enable-omitgames=none" # This line should be last for _omitgame
80
		--enable-omitgames=none" # This line should be last for _omitgame
93
81
82
	# Needs seed, always disable till we can have that
83
	_omitgame swell-foop
84
	_omitgame lightsoff
85
94
	if ! use clutter; then
86
	if ! use clutter; then
95
		ewarn "USE=-clutter means no quadrapassel, lightsoff, swell-foop, gnibbles"
87
		ewarn "USE='-clutter' implies that quadrapassel and gnibbles won't be installed"
96
		_omitgame quadrapassel
88
		_omitgame quadrapassel
97
		_omitgame lightsoff
98
		_omitgame swell-foop
99
		_omitgame gnibbles
89
		_omitgame gnibbles
100
	fi
90
	fi
101
91
102
	if ! use guile; then
92
	if ! use guile; then
103
		ewarn "USE=-guile implies that Aisleriot won't be installed"
93
		ewarn "USE='-guile' implies that Aisleriot won't be installed"
104
		_omitgame aisleriot
94
		_omitgame aisleriot
105
	fi
95
	fi
106
96
Lines 108-113 Link Here
108
		ewarn "USE=-opengl implies that glchess won't be installed"
98
		ewarn "USE=-opengl implies that glchess won't be installed"
109
		_omitgame glchess
99
		_omitgame glchess
110
	fi
100
	fi
101
102
	# Others are installed below; multiples in this package.
103
	DOCS="AUTHORS HACKING MAINTAINERS TODO"
111
}
104
}
112
105
113
src_prepare() {
106
src_prepare() {
Lines 139-149 Link Here
139
	gnome2_pkg_preinst
132
	gnome2_pkg_preinst
140
	# Avoid overwriting previous .scores files
133
	# Avoid overwriting previous .scores files
141
	local basefile
134
	local basefile
142
	for scorefile in "${D}"/var/lib/games/*.scores; do
135
	for scorefile in "${ED}"/var/lib/games/*.scores; do
143
		basefile=$(basename $scorefile)
136
		basefile=$(basename $scorefile)
144
		if [ -s "${ROOT}/var/lib/games/${basefile}" ]; then
137
		if [ -s "${EROOT}/var/lib/games/${basefile}" ]; then
145
			cp "${ROOT}/var/lib/games/${basefile}" \
138
			cp "${EROOT}/var/lib/games/${basefile}" \
146
			"${D}/var/lib/games/${basefile}"
139
			"${ED}/var/lib/games/${basefile}"
147
		fi
140
		fi
148
	done
141
	done
149
}
142
}
Lines 153-167 Link Here
153
	games-ggz_update_modules
146
	games-ggz_update_modules
154
	gnome2_pkg_postinst
147
	gnome2_pkg_postinst
155
	python_need_rebuild
148
	python_need_rebuild
156
	python_mod_optimize $(python_get_sitedir)/gnome_sudoku
149
	python_mod_optimize gnome_sudoku
157
	if use opengl; then
150
	use opengl && python_mod_optimize glchess
158
		python_mod_optimize $(python_get_sitedir)/glchess
159
	fi
160
}
151
}
161
152
162
pkg_postrm() {
153
pkg_postrm() {
163
	games-ggz_update_modules
154
	games-ggz_update_modules
164
	gnome2_pkg_postrm
155
	gnome2_pkg_postrm
165
	python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/{gnome_sudoku,glchess}
156
	python_mod_cleanup gnome_sudoku glchess
166
	python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/glchess
167
}
157
}

Return to bug 347751