Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/gtkboard/, games-board/gtkboard/files/
Date: Wed, 07 Sep 2016 18:37:58
Message-Id: 1473273453.d5715053ec00ff485fa2bf770563e37252e464e9.wizardedit@gentoo
1 commit: d5715053ec00ff485fa2bf770563e37252e464e9
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 7 18:34:44 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 7 18:37:33 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5715053
7
8 games-board/gtkboard: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 .../gtkboard/files/gtkboard-0.11_pre0-gcc41.patch | 8 ++--
17 .../gtkboard/files/gtkboard-0.11_pre0-gcc45.patch | 8 ++--
18 games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild | 52 ++++++++++++++++++++++
19 3 files changed, 60 insertions(+), 8 deletions(-)
20
21 diff --git a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch
22 index 2e6a4c6..f14096e 100644
23 --- a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch
24 +++ b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch
25 @@ -1,7 +1,7 @@
26 gcc-4.1 patch from debian.
27
28 ---- src/board.c
29 -+++ src/board.c
30 +--- a/src/board.c
31 ++++ b/src/board.c
32 @@ -74,7 +74,7 @@
33 //! default background
34 char board_default_colors [9] = {215, 215, 215, 215, 215, 215, 0, 0, 0};
35 @@ -11,8 +11,8 @@ gcc-4.1 patch from debian.
36
37 extern void ui_make_human_move (byte *move, int *rmove);
38
39 ---- src/menu.c
40 -+++ src/menu.c
41 +--- a/src/menu.c
42 ++++ b/src/menu.c
43 @@ -829,7 +829,7 @@
44
45 {
46
47 diff --git a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch
48 index 300e528..dd5a2f9 100644
49 --- a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch
50 +++ b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch
51 @@ -1,5 +1,5 @@
52 ---- src/menu.c.old 2010-05-24 12:35:15.000000000 +0200
53 -+++ src/menu.c 2010-05-24 12:35:48.000000000 +0200
54 +--- a/src/menu.c 2010-05-24 12:35:15.000000000 +0200
55 ++++ b/src/menu.c 2010-05-24 12:35:48.000000000 +0200
56 @@ -176,7 +176,7 @@
57 {
58 #if GTK_MAJOR_VERSION == 2
59 @@ -9,8 +9,8 @@
60 static char pixbufs [7][size*(size+1)];
61 char **pixmap_data;
62 static GdkPixmap *pixmaps[7];
63 ---- src/wordtris.c.old 2010-05-24 12:36:50.000000000 +0200
64 -+++ src/wordtris.c 2010-05-24 12:38:30.000000000 +0200
65 +--- a/src/wordtris.c 2010-05-24 12:36:50.000000000 +0200
66 ++++ b/src/wordtris.c 2010-05-24 12:38:30.000000000 +0200
67 @@ -122,7 +122,7 @@
68
69 // TODO: change this so that we only need to specify pixmaps for individual squares
70
71 diff --git a/games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild b/games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild
72 new file mode 100644
73 index 00000000..4707667
74 --- /dev/null
75 +++ b/games-board/gtkboard/gtkboard-0.11_pre0-r1.ebuild
76 @@ -0,0 +1,52 @@
77 +# Copyright 1999-2016 Gentoo Foundation
78 +# Distributed under the terms of the GNU General Public License v2
79 +# $Id$
80 +
81 +EAPI=6
82 +inherit eutils
83 +
84 +MY_P=${P/_}
85 +DESCRIPTION="Board games system"
86 +HOMEPAGE="http://gtkboard.sourceforge.net/"
87 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
88 +
89 +LICENSE="GPL-2"
90 +SLOT="0"
91 +KEYWORDS="~amd64 ~ppc ~x86"
92 +IUSE="gnome"
93 +
94 +RDEPEND="x11-libs/gtk+:2
95 + media-libs/libsdl:0[sound]
96 + media-libs/sdl-mixer[vorbis]
97 + gnome? ( gnome-base/libgnomeui )"
98 +DEPEND="${RDEPEND}
99 + virtual/pkgconfig"
100 +
101 +S=${WORKDIR}/${MY_P}
102 +
103 +PATCHES=(
104 + "${FILESDIR}"/${P}-gcc41.patch
105 + "${FILESDIR}"/${P}-gcc45.patch
106 +)
107 +
108 +src_prepare() {
109 + default
110 +
111 + sed -i -e "/^LIBS/s:@LIBS@:@LIBS@ -lgmodule-2.0 -lm:" \
112 + src/Makefile.in
113 +}
114 +
115 +src_configure() {
116 + econf \
117 + --disable-dependency-tracking \
118 + --enable-gtk2 \
119 + --enable-sdl \
120 + $(use_enable gnome)
121 +}
122 +
123 +src_install() {
124 + emake DESTDIR="${D}" install
125 + doicon pixmaps/${PN}.png
126 + make_desktop_entry ${PN} Gtkboard
127 + dodoc AUTHORS ChangeLog TODO doc/index.html
128 +}