Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pioneers/files/, games-board/pioneers/
Date: Thu, 02 Jul 2020 00:03:36
Message-Id: 1593648189.55672a7ee7ce86981de4cfaaac2899083162a112.asturm@gentoo
1 commit: 55672a7ee7ce86981de4cfaaac2899083162a112
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 2 00:00:46 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 2 00:03:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55672a7e
7
8 games-board/pioneers: 15.5 version bump, fix build w/ -fno-common
9
10 Bug: https://bugs.gentoo.org/728984
11 Closes: https://bugs.gentoo.org/708834
12 Closes: https://bugs.gentoo.org/636342
13 Package-Manager: Portage-2.3.103, Repoman-2.3.23
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 games-board/pioneers/Manifest | 1 +
17 .../pioneers/files/pioneers-15.5-fno-common.patch | 12 ++++++
18 games-board/pioneers/pioneers-15.5.ebuild | 46 ++++++++++++++++++++++
19 3 files changed, 59 insertions(+)
20
21 diff --git a/games-board/pioneers/Manifest b/games-board/pioneers/Manifest
22 index a1195e54057..5f1e718393f 100644
23 --- a/games-board/pioneers/Manifest
24 +++ b/games-board/pioneers/Manifest
25 @@ -1 +1,2 @@
26 DIST pioneers-15.3.tar.gz 4154470 BLAKE2B 536b2100ac0dd75d8c118741bffdd433bebcbdef2df54a75a5e9004f5fb2f7859bc75c27935251fc94b3428e730a7be522b88a7ab13224cb545180eb84ad86f9 SHA512 57aa8bc48019c87a683a4728d28d56f6bd755a0566922dddb4de825904820d1204f893e73fd13465fcec63cecb4a5735a90338f6ff915b7f17113dc0f1e834c1
27 +DIST pioneers-15.5.tar.gz 4975627 BLAKE2B 8cae5df3e122743819196f0442ba18cedcfd4fee51d9e76ef4137f120e3429456f58ca9d6e537b8e0206c937d882b4a22d76ae333a7d5d7dc69d65f7bbd94b18 SHA512 a3261197348d7e994da81ad4948755520bf29678614a9ea2b2cacc81622093c6460b0cee671a04c125684d88a9ee1deb9206ccb73ab1440be1a1505e24b2ed2a
28
29 diff --git a/games-board/pioneers/files/pioneers-15.5-fno-common.patch b/games-board/pioneers/files/pioneers-15.5-fno-common.patch
30 new file mode 100644
31 index 00000000000..5d8522b772e
32 --- /dev/null
33 +++ b/games-board/pioneers/files/pioneers-15.5-fno-common.patch
34 @@ -0,0 +1,12 @@
35 +diff -up a/common/game.h.me b/common/game.h
36 +--- a/common/game.h.me 2020-02-06 12:05:24.472403768 +0100
37 ++++ b/common/game.h 2020-02-06 12:05:45.662644226 +0100
38 +@@ -137,7 +137,7 @@ typedef enum {
39 + typedef void (*WriteLineFunc) (gpointer user_data, const gchar *);
40 +
41 + /** Default style for a player. */
42 +-const gchar *default_player_style;
43 ++extern const gchar *default_player_style;
44 +
45 + GameParams *params_new(void);
46 + GameParams *params_copy(const GameParams * params);
47
48 diff --git a/games-board/pioneers/pioneers-15.5.ebuild b/games-board/pioneers/pioneers-15.5.ebuild
49 new file mode 100644
50 index 00000000000..afd322eae4c
51 --- /dev/null
52 +++ b/games-board/pioneers/pioneers-15.5.ebuild
53 @@ -0,0 +1,46 @@
54 +# Copyright 1999-2020 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=6
58 +
59 +inherit gnome2
60 +
61 +DESCRIPTION="Clone of the popular board game The Settlers of Catan"
62 +HOMEPAGE="http://pio.sourceforge.net/"
63 +SRC_URI="mirror://sourceforge/pio/${P}.tar.gz"
64 +
65 +LICENSE="GPL-2 CC-BY-SA-4.0"
66 +SLOT="0"
67 +KEYWORDS="~amd64 ~x86"
68 +IUSE="dedicated help nls"
69 +
70 +# dev-util/gob only for autoreconf
71 +RDEPEND="
72 + >=dev-libs/glib-2.28:2
73 + !dedicated? (
74 + >=x11-libs/gtk+-3.22:3
75 + >=x11-libs/libnotify-0.7.4
76 + help? ( app-text/yelp-tools )
77 + )
78 + nls? ( virtual/libintl )"
79 +DEPEND="${RDEPEND}"
80 +BDEPEND="
81 + dev-util/gob:2
82 + virtual/pkgconfig
83 + nls? ( sys-devel/gettext )"
84 +
85 +DOCS=( AUTHORS ChangeLog README TODO NEWS )
86 +
87 +PATCHES=( "${FILESDIR}/${P}-fno-common.patch" )
88 +
89 +src_configure() {
90 + gnome2_src_configure \
91 + $(use_enable nls) \
92 + $(use_enable help) \
93 + --includedir=/usr/include \
94 + $(use_with !dedicated gtk)
95 +}
96 +
97 +src_install() {
98 + gnome2_src_install scrollkeeper_localstate_dir="${ED%/}"/var/lib/scrollkeeper/
99 +}