summaryrefslogtreecommitdiff
path: root/games-board/gnome-hearts
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/gnome-hearts')
-rw-r--r--games-board/gnome-hearts/Manifest6
-rw-r--r--games-board/gnome-hearts/files/gnome-hearts-0.3.1-drop-libgnomeui.patch64
-rw-r--r--games-board/gnome-hearts/gnome-hearts-0.3.1-r2.ebuild45
-rw-r--r--games-board/gnome-hearts/metadata.xml12
4 files changed, 127 insertions, 0 deletions
diff --git a/games-board/gnome-hearts/Manifest b/games-board/gnome-hearts/Manifest
new file mode 100644
index 000000000000..f300c2586bd1
--- /dev/null
+++ b/games-board/gnome-hearts/Manifest
@@ -0,0 +1,6 @@
+AUX gnome-hearts-0.3.1-drop-libgnomeui.patch 2530 SHA256 cc2743c2efbabdc0e40c404ce3d6155d85a959474401823d075bcbb15dae424e SHA512 784bd6ebfce24fa6691caa1f11bca28a8719854510064a137254f34f26176bccd95753bac870268e4970f1218b6b80970e7495377d85aa2a6e1bb5d450b6a15f WHIRLPOOL d3bb4ea231f6e670c3902843a576f5b172bd65e8c1a3d67bdd6c6aef299db105027c6539c30de99460c294af30d60f568943c329b68e7a421a27acf0eac118c3
+DIST gnome-hearts-0.3.1.tar.gz 637916 SHA256 4b9477e8bb2d48a86021ae512a713fd405a96d52cf711ff549cfe0d119bf56b3 SHA512 5528c92bba80cc97ce1f51e3b2652b5d6b30c0e90e7a8f023dcdf5c3420b2d1fbab29fc3d974884d8cb351a44b8b97c05242f26b70d5e1d02d593a17452ad19f WHIRLPOOL 50259c6e2bdc56bc73cbf59d6eb0cdd37053850262dfca5c4218b9d4ca4dc512df2d6db5167323bd9084a0ddafc2bfdc9d6371210ba8656faa46847de8a8a500
+EBUILD gnome-hearts-0.3.1-r2.ebuild 904 SHA256 2a006e8badea3e597b7871b3b43f7585ad920d009808c36133a677b750587b0f SHA512 581df2897b84c0d992aff16051854cabbef5f79e7aa1185b4178e82158e9c325c736a2d4b3797ba76a9884974889f5ca1b18086010a5914d20f89fdcccda3a50 WHIRLPOOL 759a9a8d1ee6a18c0107669d803c350c62b99afd49d8d324757b36a19bde3157ed53613921e509987b1626089fdfaea6d2f59aab4d3f2d674d45b5834bbeb271
+MISC ChangeLog 2451 SHA256 805f3af05c323d111d97b1b2ab8818252d6d6ddbb45854c5737d659de3bce15b SHA512 50f6ea4a24b66842abde5ffb7275844cb57ae31b1b6786ff303b087ee7e3f96d69adbd2f3a0a13bce4269d17ffcbb09b056c71f1a214b8d82ebff27a2793ca2b WHIRLPOOL 5fa0dd9dc9f4607c4dba93d63c7521da8850bcc736bc124ea1e36c1edb6f5d7f9abbeccb7c396f04c8c511c456fefc1fdfecb67f41d09cf27b0ea87b57b29863
+MISC ChangeLog-2015 1857 SHA256 51e6d3bf64e176c213d0baada955e74cc5a921fced582886ac4273527bd841b5 SHA512 b62ed5921196b5d5f04da1e7ab569f0dafd5f0ebcb1fbbffe04573cb31552c92c0eaaca59dfab2f9e630fd28cdf6ef4bd0e0a1b689c4fbdab4b9b0e3231df34c WHIRLPOOL 9724ddc261a75c504f775af55ee76d790ec6daec4453884b5f94c6679fec40560bc34d66d73451c794c987b79934e96ab3d0394d50c676cba795fb79a7b56e3b
+MISC metadata.xml 359 SHA256 7d7fa2bed508f7990d2aafdc73873888651d1fad7c1d69335511f2f7cc769d1a SHA512 486453048dbb364dbe94b263c4d79dc95f28f8f10e83b9731949b5033002a7d60408d2e9e8afcc73c40425aa1a45a5053b0ffc66e9cebc067a3e6d0322d426e0 WHIRLPOOL e863d00ace875877dfecfbb222f8c971f711f0dd14d45fa46fef92ec053cef92df790fee992a72b7f1ae97e851496cea2216e7973c8c0c2f11fffc9575e49592
diff --git a/games-board/gnome-hearts/files/gnome-hearts-0.3.1-drop-libgnomeui.patch b/games-board/gnome-hearts/files/gnome-hearts-0.3.1-drop-libgnomeui.patch
new file mode 100644
index 000000000000..21c4e7b0896a
--- /dev/null
+++ b/games-board/gnome-hearts/files/gnome-hearts-0.3.1-drop-libgnomeui.patch
@@ -0,0 +1,64 @@
+diff -Naur gnome-hearts-0.3.1.orig/configure.in gnome-hearts-0.3.1/configure.in
+--- gnome-hearts-0.3.1.orig/configure.in 2013-06-09 15:05:11.000000000 +0200
++++ gnome-hearts-0.3.1/configure.in 2017-01-20 23:20:35.677689797 +0100
+@@ -23,7 +23,7 @@
+ fi
+
+ # Check for libraries. gmodule is required to make sure --export-dynamic is used and glade works
+-PKG_CHECK_MODULES(GNOME_HEARTS, [libgnomeui-2.0 gtk+-2.0 libglade-2.0 glib-2.0 gmodule-2.0])
++PKG_CHECK_MODULES(GNOME_HEARTS, [gtk+-2.0 libglade-2.0 glib-2.0 gmodule-2.0])
+ AC_SUBST(GNOME_HEARTS_CFLAGS)
+ AC_SUBST(GNOME_HEARTS_LIBS)
+
+diff -Naur gnome-hearts-0.3.1.orig/src/events.c gnome-hearts-0.3.1/src/events.c
+--- gnome-hearts-0.3.1.orig/src/events.c 2013-06-09 15:01:08.000000000 +0200
++++ gnome-hearts-0.3.1/src/events.c 2017-01-20 23:35:17.428651148 +0100
+@@ -71,13 +71,13 @@
+ /* Open the help file */
+ void on_help(GtkWidget *widget, gpointer data)
+ {
+- gnome_help_display("gnome-hearts.xml", NULL, NULL);
++ gtk_show_uri(NULL, "ghelp:gnome-hearts", GDK_CURRENT_TIME, NULL);
+ }
+
+ /* Open the preferences help file */
+ void on_preferences_help(GtkWidget *widget, gpointer data)
+ {
+- gnome_help_display("gnome-hearts.xml", "hearts-prefs", NULL);
++ gtk_show_uri(NULL, "ghelp:gnome-hearts?hearts-prefs", GDK_CURRENT_TIME, NULL);
+ }
+
+ /* About menu item */
+diff -Naur gnome-hearts-0.3.1.orig/src/hearts.c gnome-hearts-0.3.1/src/hearts.c
+--- gnome-hearts-0.3.1.orig/src/hearts.c 2013-06-09 15:01:08.000000000 +0200
++++ gnome-hearts-0.3.1/src/hearts.c 2017-01-20 23:20:21.447210208 +0100
+@@ -534,15 +534,11 @@
+ setlocale(LC_ALL, "");
+ #endif
+
+- /* Initialize GNOME */
++ /* Initialize GTK+ */
+ GOptionContext *option_context = g_option_context_new(_("- Play a game of hearts"));
+ g_option_context_add_main_entries(option_context, option_entries, GETTEXT_PACKAGE);
+
+- gnome_program_init(PACKAGE, VERSION, LIBGNOMEUI_MODULE,
+- argc, argv,
+- GNOME_PARAM_GOPTION_CONTEXT, option_context,
+- GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR,
+- GNOME_PARAM_NONE);
++ gtk_init(&argc, &argv);
+
+ /* init the game's global variables */
+ game_score_labels = NULL;
+diff -Naur gnome-hearts-0.3.1.orig/src/hearts.h gnome-hearts-0.3.1/src/hearts.h
+--- gnome-hearts-0.3.1.orig/src/hearts.h 2013-06-09 15:01:08.000000000 +0200
++++ gnome-hearts-0.3.1/src/hearts.h 2017-01-20 23:22:33.691604109 +0100
+@@ -26,7 +26,7 @@
+ /* headers */
+ #include <glib/gi18n.h>
+ #include <dirent.h>
+-#include <gnome.h>
++#include <gtk/gtk.h>
+ #include <glade/glade.h>
+ #include "cards.h"
+ #include "cfg.h"
diff --git a/games-board/gnome-hearts/gnome-hearts-0.3.1-r2.ebuild b/games-board/gnome-hearts/gnome-hearts-0.3.1-r2.ebuild
new file mode 100644
index 000000000000..16b766f6f0ca
--- /dev/null
+++ b/games-board/gnome-hearts/gnome-hearts-0.3.1-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_EAUTORECONF="yes"
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-single-r1
+
+DESCRIPTION="A clone of classic hearts card game"
+HOMEPAGE="http://www.gnome-hearts.org"
+SRC_URI="http://www.jejik.com/files/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+ FDL-1.2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ x11-libs/gtk+:2
+ >=gnome-base/libglade-2
+"
+DEPEND="${RDEPEND}
+ app-text/rarian
+ dev-util/intltool
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # make src_test work
+ echo gnome-hearts.desktop.in >> po/POTFILES.skip
+
+ sed -i \
+ -e '/No name/d' \
+ -e '/^Icon/s/.png//' \
+ -e '/^Encoding/d' \
+ gnome-hearts.desktop.in || die
+
+ eapply "${FILESDIR}"/${P}-drop-libgnomeui.patch
+
+ mv configure.in configure.ac || die
+ gnome2_src_prepare
+}
diff --git a/games-board/gnome-hearts/metadata.xml b/games-board/gnome-hearts/metadata.xml
new file mode 100644
index 000000000000..ea35640ff889
--- /dev/null
+++ b/games-board/gnome-hearts/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>