public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexandre Restovtsev" <tetromino@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: games-board/aisleriot/files/, games-board/aisleriot/
Date: Sun, 21 Aug 2011 06:16:02 +0000 (UTC)	[thread overview]
Message-ID: <2a0d08c529c97dfb2c74fde41e8c4a7b6877b532.tetromino@gentoo> (raw)

commit:     2a0d08c529c97dfb2c74fde41e8c4a7b6877b532
Author:     Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
AuthorDate: Sat Aug 20 21:32:29 2011 +0000
Commit:     Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
CommitDate: Sun Aug 21 02:55:26 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=2a0d08c5

games-board/aisleriot: new package

In gnome-3.1.x, aisleriot was split off from gnome-games into a separate
package.

---
 games-board/aisleriot/aisleriot-3.1.1.ebuild       |   83 ++++++++++++++++++++
 .../files/aisleriot-3.1.1-help-directory.patch     |   28 +++++++
 2 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/games-board/aisleriot/aisleriot-3.1.1.ebuild b/games-board/aisleriot/aisleriot-3.1.1.ebuild
new file mode 100644
index 0000000..476e6b1
--- /dev/null
+++ b/games-board/aisleriot/aisleriot-3.1.1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+GNOME_TARBALL_SUFFIX="xz"
+
+# make sure games is inherited first so that the gnome2
+# functions will be called if they are not overridden
+inherit eutils games gnome2
+
+DESCRIPTION="A collection of solitaire card games for GNOME"
+HOMEPAGE="http://live.gnome.org/Aisleriot"
+
+LICENSE="GPL-3 FDL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="artworkextra gnome sound"
+
+# FIXME: quartz support?
+COMMON_DEPEND=">=dev-libs/glib-2.26.0:2
+	>=dev-scheme/guile-1.8.0:12[deprecated,regex]
+	>=gnome-base/librsvg-2.32.0
+	>=x11-libs/cairo-1.10.0
+	x11-libs/gdk-pixbuf:2
+	>=x11-libs/gtk+-3.0.0:3
+	x11-libs/libICE
+	x11-libs/libSM
+	gnome? ( >=gnome-base/gconf-2.0:2 )
+	sound? ( >=media-libs/libcanberra-0.26[gtk3] )"
+# aisleriot was split off from gnome-games
+RDEPEND="${COMMON_DEPEND}
+	artworkextra? ( >=gnome-extra/gnome-games-extra-data-3.0.0 )
+	!!<gnome-extra/gnome-games-3.1.1[aisleriot]"
+DEPEND="${COMMON_DEPEND}
+	>=app-text/gnome-doc-utils-0.10
+	>=dev-util/intltool-0.40.4
+	>=dev-util/pkgconfig-0.15
+	sys-apps/lsb-release
+	>=sys-devel/gettext-0.12"
+
+pkg_setup() {
+	DOCS="AUTHORS ChangeLog TODO"
+
+	if use gnome; then
+		G2CONF="${G2CONF} --with-platform=gnome --with-help-method=ghelp"
+	else
+		G2CONF="${G2CONF} --with-platform=gtk-only --with-help-method=library"
+	fi
+
+	if use artworkextra; then
+		G2CONF="${G2CONF} --with-card-theme-formats=all
+			--with-kde-card-theme-path=${EPREFIX}usr/share/apps/carddecks
+			--with-pysol-card-theme-path=${EPREFIX}${GAMES_DATADIR}/pysolfc"
+	else
+		G2CONF="${G2CONF} --with-card-theme-formats=default"
+	fi
+
+	# Disable clutter per upstream recommendation in configure.ac
+	G2CONF="${G2CONF}
+		--with-gtk=3.0
+		--without-clutter
+		--with-smclient
+		--with-guile=1.8
+		$(use_enable sound)
+		--disable-schemas-compile
+		--disable-maintainer-mode"
+}
+
+src_prepare() {
+	gnome2_src_prepare
+
+	# https://bugzilla.gnome.org/show_bug.cgi?id=656967
+	epatch "${FILESDIR}/${P}-help-directory.patch"
+}
+pkg_postinst() {
+	gnome2_pkg_postinst
+
+	if use artworkextra; then
+		elog "Aisleriot can use additional card themes from games-board/pysolfc"
+		elog "and kde-base/libkdegames."
+	fi
+}

diff --git a/games-board/aisleriot/files/aisleriot-3.1.1-help-directory.patch b/games-board/aisleriot/files/aisleriot-3.1.1-help-directory.patch
new file mode 100644
index 0000000..e77871b
--- /dev/null
+++ b/games-board/aisleriot/files/aisleriot-3.1.1-help-directory.patch
@@ -0,0 +1,28 @@
+From 8c5e36910e958444565cee177427059a0c37e3d3 Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gmail.com>
+Date: Sat, 20 Aug 2011 13:38:55 -0400
+Subject: [PATCH] s/AR_RUNTIME_GAME_HELP_DIRECTORY/AR_RUNTIME_HELP_DIRECTORY/
+
+Use the correct name for the help directory.
+
+Addresses https://bugzilla.gnome.org/show_bug.cgi?id=656967
+---
+ src/lib/ar-help.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/lib/ar-help.c b/src/lib/ar-help.c
+index 3be709e..deb53e1 100644
+--- a/src/lib/ar-help.c
++++ b/src/lib/ar-help.c
+@@ -72,7 +72,7 @@ ar_help_display_full (GtkWidget *window,
+   guint i;
+ 
+   langs = g_get_language_names ();
+-  help_dir = ar_runtime_get_directory (AR_RUNTIME_GAME_HELP_DIRECTORY);
++  help_dir = ar_runtime_get_directory (AR_RUNTIME_HELP_DIRECTORY);
+ 
+   help_uri = NULL;
+   for (i = 0; langs[i] != NULL; ++i) {
+-- 
+1.7.6
+



             reply	other threads:[~2011-08-21  6:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-21  6:16 Alexandre Restovtsev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-09-29  8:25 [gentoo-commits] proj/gnome:gnome-next commit in: games-board/aisleriot/files/, games-board/aisleriot/ Alexandre Restovtsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a0d08c529c97dfb2c74fde41e8c4a7b6877b532.tetromino@gentoo \
    --to=tetromino@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox