From: "Austin English" <wizardedit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/gtkboard/, games-board/gtkboard/files/
Date: Wed, 7 Sep 2016 18:37:54 +0000 (UTC) [thread overview]
Message-ID: <1473273453.d5715053ec00ff485fa2bf770563e37252e464e9.wizardedit@gentoo> (raw)
commit: d5715053ec00ff485fa2bf770563e37252e464e9
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 7 18:34:44 2016 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Wed Sep 7 18:37:33 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5715053
games-board/gtkboard: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
.../gtkboard/files/gtkboard-0.11_pre0-gcc41.patch | 8 ++--
.../gtkboard/files/gtkboard-0.11_pre0-gcc45.patch | 8 ++--
games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild | 52 ++++++++++++++++++++++
3 files changed, 60 insertions(+), 8 deletions(-)
diff --git a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch
index 2e6a4c6..f14096e 100644
--- a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch
+++ b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch
@@ -1,7 +1,7 @@
gcc-4.1 patch from debian.
---- src/board.c
-+++ src/board.c
+--- a/src/board.c
++++ b/src/board.c
@@ -74,7 +74,7 @@
//! default background
char board_default_colors [9] = {215, 215, 215, 215, 215, 215, 0, 0, 0};
@@ -11,8 +11,8 @@ gcc-4.1 patch from debian.
extern void ui_make_human_move (byte *move, int *rmove);
---- src/menu.c
-+++ src/menu.c
+--- a/src/menu.c
++++ b/src/menu.c
@@ -829,7 +829,7 @@
{
diff --git a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch
index 300e528..dd5a2f9 100644
--- a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch
+++ b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch
@@ -1,5 +1,5 @@
---- src/menu.c.old 2010-05-24 12:35:15.000000000 +0200
-+++ src/menu.c 2010-05-24 12:35:48.000000000 +0200
+--- a/src/menu.c 2010-05-24 12:35:15.000000000 +0200
++++ b/src/menu.c 2010-05-24 12:35:48.000000000 +0200
@@ -176,7 +176,7 @@
{
#if GTK_MAJOR_VERSION == 2
@@ -9,8 +9,8 @@
static char pixbufs [7][size*(size+1)];
char **pixmap_data;
static GdkPixmap *pixmaps[7];
---- src/wordtris.c.old 2010-05-24 12:36:50.000000000 +0200
-+++ src/wordtris.c 2010-05-24 12:38:30.000000000 +0200
+--- a/src/wordtris.c 2010-05-24 12:36:50.000000000 +0200
++++ b/src/wordtris.c 2010-05-24 12:38:30.000000000 +0200
@@ -122,7 +122,7 @@
// TODO: change this so that we only need to specify pixmaps for individual squares
diff --git a/games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild b/games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild
new file mode 100644
index 00000000..4707667
--- /dev/null
+++ b/games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+MY_P=${P/_}
+DESCRIPTION="Board games system"
+HOMEPAGE="http://gtkboard.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gnome"
+
+RDEPEND="x11-libs/gtk+:2
+ media-libs/libsdl:0[sound]
+ media-libs/sdl-mixer[vorbis]
+ gnome? ( gnome-base/libgnomeui )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc41.patch
+ "${FILESDIR}"/${P}-gcc45.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e "/^LIBS/s:@LIBS@:@LIBS@ -lgmodule-2.0 -lm:" \
+ src/Makefile.in
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --enable-gtk2 \
+ --enable-sdl \
+ $(use_enable gnome)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon pixmaps/${PN}.png
+ make_desktop_entry ${PN} Gtkboard
+ dodoc AUTHORS ChangeLog TODO doc/index.html
+}
reply other threads:[~2016-09-07 18:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1473273453.d5715053ec00ff485fa2bf770563e37252e464e9.wizardedit@gentoo \
--to=wizardedit@gentoo.org \
--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