Lines 16-22
HOMEPAGE="http://live.gnome.org/GnomeGam
Link Here
|
16 |
LICENSE="GPL-2 FDL-1.1" |
16 |
LICENSE="GPL-2 FDL-1.1" |
17 |
SLOT="0" |
17 |
SLOT="0" |
18 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~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 guile opengl test" |
19 |
IUSE="artworkextra guile opengl test +gstreamer" |
20 |
|
20 |
|
21 |
RDEPEND=">=dev-python/pygtk-2.10 |
21 |
RDEPEND=">=dev-python/pygtk-2.10 |
22 |
dev-python/pygobject |
22 |
dev-python/pygobject |
Lines 32-38
RDEPEND=">=dev-python/pygtk-2.10
Link Here
|
32 |
>=gnome-base/gconf-2 |
32 |
>=gnome-base/gconf-2 |
33 |
>=dev-libs/libxml2-2.4.0 |
33 |
>=dev-libs/libxml2-2.4.0 |
34 |
>=gnome-base/librsvg-2.14 |
34 |
>=gnome-base/librsvg-2.14 |
35 |
>=media-libs/gstreamer-0.10.11 |
35 |
gstreamer? ( >=media-libs/gstreamer-0.10.11 ) |
|
|
36 |
!gstreamer? ( |
37 |
media-libs/libsdl |
38 |
media-libs/sdl-mixer[vorbis] |
39 |
) |
36 |
>=gnome-base/libglade-2 |
40 |
>=gnome-base/libglade-2 |
37 |
>=dev-libs/glib-2.6.3 |
41 |
>=dev-libs/glib-2.6.3 |
38 |
>=dev-games/libggz-0.0.14 |
42 |
>=dev-games/libggz-0.0.14 |
Lines 69-74
pkg_setup() {
Link Here
|
69 |
# create the games user / group |
73 |
# create the games user / group |
70 |
games_pkg_setup |
74 |
games_pkg_setup |
71 |
|
75 |
|
|
|
76 |
# Decide the sound backend to use - GStreamer gets preference over SDL |
77 |
if use gstreamer; then |
78 |
G2CONF="${G2CONF} --with-sound=gstreamer" |
79 |
else |
80 |
G2CONF="${G2CONF} --with-sound=sdl_mixer" |
81 |
fi |
82 |
|
72 |
# Needs "seed", which needs gobject-introspection, libffi, etc. |
83 |
# Needs "seed", which needs gobject-introspection, libffi, etc. |
73 |
#$(use_enable clutter) |
84 |
#$(use_enable clutter) |
74 |
#$(use_enable clutter staging) |
85 |
#$(use_enable clutter staging) |
Lines 77-83
pkg_setup() {
Link Here
|
77 |
--with-scores-group=${GAMES_GROUP} |
88 |
--with-scores-group=${GAMES_GROUP} |
78 |
--enable-noregistry=\"${GGZ_MODDIR}\" |
89 |
--enable-noregistry=\"${GGZ_MODDIR}\" |
79 |
--with-platform=gnome |
90 |
--with-platform=gnome |
80 |
--with-sound=gstreamer |
|
|
81 |
--with-card-theme-formats=all |
91 |
--with-card-theme-formats=all |
82 |
--with-smclient |
92 |
--with-smclient |
83 |
--enable-omitgames=none" # This line should be last for _omitgame |
93 |
--enable-omitgames=none" # This line should be last for _omitgame |
Lines 145-150
pkg_postinst() {
Link Here
|
145 |
if use opengl; then |
155 |
if use opengl; then |
146 |
python_mod_optimize $(python_get_sitedir)/glchess |
156 |
python_mod_optimize $(python_get_sitedir)/glchess |
147 |
fi |
157 |
fi |
|
|
158 |
|
159 |
if ! use sdl && ! use gstreamer; then |
160 |
ewarn "gnome-games has been built with out sound support. To enable," |
161 |
ewarn "add gstreamer or sdl to your use flags" |
162 |
fi |
148 |
} |
163 |
} |
149 |
|
164 |
|
150 |
pkg_postrm() { |
165 |
pkg_postrm() { |