From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SC5BW-0002H1-3i for garchives@archives.gentoo.org; Mon, 26 Mar 2012 08:21:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46BFCE060D; Mon, 26 Mar 2012 08:20:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 06B66E05FE for ; Mon, 26 Mar 2012 08:20:12 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 684DA1B4073 for ; Mon, 26 Mar 2012 08:20:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E384BE5434 for ; Mon, 26 Mar 2012 08:20:09 +0000 (UTC) From: "Nirbheek Chauhan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nirbheek Chauhan" Message-ID: <1332749979.022f804e4b43b5c1679de6713ebdcca10690c60b.nirbheek@gentoo> Subject: [gentoo-commits] proj/gnome:master commit in: gnome-extra/gnome-games/ X-VCS-Repository: proj/gnome X-VCS-Files: gnome-extra/gnome-games/gnome-games-3.3.92.ebuild X-VCS-Directories: gnome-extra/gnome-games/ X-VCS-Committer: nirbheek X-VCS-Committer-Name: Nirbheek Chauhan X-VCS-Revision: 022f804e4b43b5c1679de6713ebdcca10690c60b X-VCS-Branch: master Date: Mon, 26 Mar 2012 08:20:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1cf49bf6-1777-4a6d-a3ba-e6a23e038858 X-Archives-Hash: 5fbbd9f95dcb500aac2ef16bf36d755c commit: 022f804e4b43b5c1679de6713ebdcca10690c60b Author: Nirbheek Chauhan gentoo org> AuthorDate: Mon Mar 26 08:18:07 2012 +0000 Commit: Nirbheek Chauhan gentoo org> CommitDate: Mon Mar 26 08:19:39 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3D022f804e Add gnome-extra/gnome-games-3.3.92 --- gnome-extra/gnome-games/gnome-games-3.3.92.ebuild | 173 +++++++++++++++= ++++++ 1 files changed, 173 insertions(+), 0 deletions(-) diff --git a/gnome-extra/gnome-games/gnome-games-3.3.92.ebuild b/gnome-ex= tra/gnome-games/gnome-games-3.3.92.ebuild new file mode 100644 index 0000000..3fec122 --- /dev/null +++ b/gnome-extra/gnome-games/gnome-games-3.3.92.ebuild @@ -0,0 +1,173 @@ +# 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= .2.1-r1.ebuild,v 1.3 2012/02/10 03:33:26 patrick Exp $ + +EAPI=3D"3" +GNOME_TARBALL_SUFFIX=3D"xz" +GCONF_DEBUG=3D"no" +GNOME2_LA_PUNT=3D"yes" +WANT_AUTOMAKE=3D"1.11" +PYTHON_DEPEND=3D"2:2.5" +PYTHON_USE_WITH=3D"xml" + +# make sure games is inherited first so that the gnome2 +# functions will be called if they are not overridden +inherit autotools games eutils gnome2 python virtualx + +DESCRIPTION=3D"Collection of games for the GNOME desktop" +HOMEPAGE=3D"http://live.gnome.org/GnomeGames/" + +LICENSE=3D"GPL-2 GPL-3 FDL-1.1" +SLOT=3D"0" +# TODO: file KEYWORDREQ bug once it's determined that seed is usable +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"artworkextra +aisleriot +clutter +glchess +introspection +sudoku= test" + +COMMON_DEPEND=3D" + >=3Ddev-libs/dbus-glib-0.75 + >=3Ddev-libs/glib-2.25.7 + >=3Ddev-libs/libxml2-2.4.0 + >=3Dgnome-base/librsvg-2.32 + >=3Dx11-libs/cairo-1.10.0 + >=3Dx11-libs/gtk+-3.3.11:3[introspection?] + + >=3Dmedia-libs/libcanberra-0.26[gtk3] + x11-libs/libSM + + artworkextra? ( >=3Dgnome-extra/gnome-games-extra-data-3.0.0 ) + clutter? ( + >=3Ddev-libs/gobject-introspection-0.6.3 + x11-libs/gtk+:3[introspection] + >=3Dmedia-libs/clutter-gtk-0.91.6:1.0[introspection] ) + introspection? ( + >=3Ddev-libs/gobject-introspection-0.6.3 + media-libs/clutter:1.0[introspection] ) + glchess? ( + dev-db/sqlite:3 + >=3Dgnome-base/librsvg-2.32 + virtual/opengl + x11-libs/libX11 )" +RDEPEND=3D"${COMMON_DEPEND} + sudoku? ( + || ( + dev-python/pygobject:3[cairo] + >=3Ddev-python/pygobject-2.28.3:2[cairo,introspection] ) + dev-python/pycairo + x11-libs/gdk-pixbuf:2[introspection] + x11-libs/pango[introspection] + >=3Dx11-libs/gtk+-3.0.0:3[introspection] ) + + !=3Ddev-lang/vala-0.15.1:0.16 + dev-libs/libxml2:2 + dev-util/itstool + >=3Ddev-util/pkgconfig-0.15 + >=3Ddev-util/intltool-0.40.4 + >=3Dsys-devel/gettext-0.10.40 + >=3Dgnome-base/gnome-common-2.12.0 + test? ( >=3Ddev-libs/check-0.9.4 )" + +# For compatibility with older versions of the gnome-games package +PDEPEND=3D"aisleriot? ( games-board/aisleriot )" + +# Others are installed below; multiples in this package. +DOCS=3D"AUTHORS HACKING MAINTAINERS TODO" + +_omitgame() { + G2CONF=3D"${G2CONF},${1}" +} + +pkg_setup() { + # create the games user / group + games_pkg_setup + + python_set_active_version 2 + python_pkg_setup + + G2CONF=3D"${G2CONF} + --disable-schemas-compile + --disable-static + $(use_enable introspection) + VALAC=3D$(type -p valac-0.16)" + + # Should be after $(use_enable introspection), but before --enable-omit= games + #use clutter && G2CONF=3D"${G2CONF} --enable-introspection" + + G2CONF=3D"${G2CONF} + --with-scores-group=3D${GAMES_GROUP} + --with-platform=3Dgnome + --with-smclient + --enable-omitgames=3Dnone" # 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=3D'-clutter' =3D> quadrapassel, swell-foop, lightsoff, gnib= bles 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() { + use sudoku && python_convert_shebangs -r 2 gnome-sudoku/src + + # Without this, --enable-staging enables all those games unconditionall= y + #epatch "${FILESDIR}/${PN}-fix-staging-games.patch" + + # disable pyc compiling + echo > py-compile + + 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=3D$(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 +}