diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-05-20 08:24:41 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-05-20 08:24:41 +0000 |
commit | 11988291e056e4d61ddf0b15807854bdd57c9a31 (patch) | |
tree | c7f4f44412027a4f0853d19eff4862761a266eb1 /gnome-extra/gnome-games | |
parent | Stable for ppc64; bug #382499 (diff) | |
download | gentoo-2-11988291e056e4d61ddf0b15807854bdd57c9a31.tar.gz gentoo-2-11988291e056e4d61ddf0b15807854bdd57c9a31.tar.bz2 gentoo-2-11988291e056e4d61ddf0b15807854bdd57c9a31.zip |
Version bump for gnome-3.4; seed-based games were ported to vala.
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra/gnome-games')
-rw-r--r-- | gnome-extra/gnome-games/ChangeLog | 8 | ||||
-rw-r--r-- | gnome-extra/gnome-games/gnome-games-3.4.2.ebuild | 161 |
2 files changed, 168 insertions, 1 deletions
diff --git a/gnome-extra/gnome-games/ChangeLog b/gnome-extra/gnome-games/ChangeLog index 7b422ae10e72..20d8f3988ae6 100644 --- a/gnome-extra/gnome-games/ChangeLog +++ b/gnome-extra/gnome-games/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for gnome-extra/gnome-games # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.317 2012/05/05 06:25:20 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/ChangeLog,v 1.318 2012/05/20 08:24:41 tetromino Exp $ + +*gnome-games-3.4.2 (20 May 2012) + + 20 May 2012; Alexandre Rostovtsev <tetromino@gentoo.org> + +gnome-games-3.4.2.ebuild: + Version bump for gnome-3.4; seed-based games were ported to vala. 05 May 2012; Jeff Horelick <jdhore@gentoo.org> gnome-games-2.28.2.ebuild, gnome-games-2.30.2-r1.ebuild, gnome-games-2.30.2-r2.ebuild, diff --git a/gnome-extra/gnome-games/gnome-games-3.4.2.ebuild b/gnome-extra/gnome-games/gnome-games-3.4.2.ebuild new file mode 100644 index 000000000000..6e690dfaf34d --- /dev/null +++ b/gnome-extra/gnome-games/gnome-games-3.4.2.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gnome-games/gnome-games-3.4.2.ebuild,v 1.1 2012/05/20 08:24:41 tetromino Exp $ + +EAPI="3" +GNOME_TARBALL_SUFFIX="xz" +GCONF_DEBUG="no" +GNOME2_LA_PUNT="yes" +WANT_AUTOMAKE="1.11" +PYTHON_DEPEND="2:2.5" +PYTHON_USE_WITH="xml" + +# make sure games is inherited first so that the gnome2 +# functions will be called if they are not overridden +inherit games gnome2 python virtualx + +DESCRIPTION="Collection of games for the GNOME desktop" +HOMEPAGE="http://live.gnome.org/GnomeGames/" + +LICENSE="GPL-2 GPL-3 FDL-1.1" +SLOT="0" +# TODO: file KEYWORDREQ bug once it's determined that seed is usable +KEYWORDS="~amd64 ~x86" +IUSE="artworkextra +aisleriot +clutter +glchess +introspection +sudoku test" + +COMMON_DEPEND=" + >=dev-libs/dbus-glib-0.75 + >=dev-libs/glib-2.25.7 + >=dev-libs/libxml2-2.4.0 + >=gnome-base/librsvg-2.32 + >=x11-libs/cairo-1.10 + >=x11-libs/gtk+-3.3.11:3[introspection?] + + >=media-libs/libcanberra-0.26[gtk3] + + artworkextra? ( >=gnome-extra/gnome-games-extra-data-3.0.0 ) + clutter? ( + media-libs/clutter:1.0 + >=media-libs/clutter-gtk-0.91.6:1.0 ) + introspection? ( + >=dev-libs/gobject-introspection-0.9.10 + media-libs/clutter:1.0[introspection] ) + glchess? ( + dev-db/sqlite:3 + virtual/opengl + x11-libs/libX11 )" +RDEPEND="${COMMON_DEPEND} + sudoku? ( + dev-python/pycairo + dev-python/pygobject:3[cairo] + x11-libs/gdk-pixbuf:2[introspection] + x11-libs/pango[introspection] + >=x11-libs/gtk+-3.0.0:3[introspection] ) + + !<gnome-extra/gnome-games-extra-data-3.0.0" +DEPEND="${COMMON_DEPEND} + >=app-text/gnome-doc-utils-0.10 + >=dev-lang/vala-0.15.1:0.16 + dev-libs/libxml2:2 + >=dev-util/intltool-0.40.4 + dev-util/itstool + >=sys-devel/gettext-0.10.40 + virtual/pkgconfig + test? ( >=dev-libs/check-0.9.4 )" + +# For compatibility with older versions of the gnome-games package +PDEPEND="aisleriot? ( games-board/aisleriot )" + +# Others are installed below; multiples in this package. +DOCS="AUTHORS HACKING MAINTAINERS TODO" + +_omitgame() { + G2CONF="${G2CONF},${1}" +} + +pkg_setup() { + # create the games user / group + games_pkg_setup + + python_set_active_version 2 + python_pkg_setup + + G2CONF="${G2CONF} + --disable-schemas-compile + --disable-static + $(use_enable introspection) + VALAC=$(type -P valac-0.16)" + + G2CONF="${G2CONF} + --with-scores-group=${GAMES_GROUP} + --with-platform=gnome + --enable-omitgames=none" # This line should be last for _omitgame + + # FIXME: Use REQUIRED_USE once games.eclass is ported to EAPI 4 + if ! use clutter; then + ewarn "USE='-clutter' => quadrapassel, swell-foop, lightsoff, gnibbles won't be installed" + _omitgame quadrapassel + _omitgame gnibbles + _omitgame swell-foop + _omitgame lightsoff + fi + + if ! use glchess; then + _omitgame glchess + fi + + if ! use sudoku; then + _omitgame gnome-sudoku + fi +} + +src_prepare() { + if use sudoku; then + python_convert_shebangs -r 2 gnome-sudoku/src + python_clean_py-compile_files + fi + + gnome2_src_prepare +} + +src_test() { + Xemake check || die "tests failed" +} + +src_install() { + gnome2_src_install + + # Documentation install for each of the games + for game in \ + $(find . -maxdepth 1 -type d ! -name po ! -name libgames-support); do + docinto ${game} + for doc in AUTHORS ChangeLog NEWS README TODO; do + [ -s ${game}/${doc} ] && dodoc ${game}/${doc} + done + done +} + +pkg_preinst() { + gnome2_pkg_preinst + # Avoid overwriting previous .scores files + local basefile + for scorefile in "${ED}"/var/lib/games/*.scores; do + basefile=$(basename $scorefile) + if [ -s "${EROOT}/var/lib/games/${basefile}" ]; then + cp "${EROOT}/var/lib/games/${basefile}" \ + "${ED}/var/lib/games/${basefile}" + fi + done +} + +pkg_postinst() { + games_pkg_postinst + gnome2_pkg_postinst + python_need_rebuild + use sudoku && python_mod_optimize gnome_sudoku +} + +pkg_postrm() { + gnome2_pkg_postrm + python_mod_cleanup gnome_sudoku +} |