1 |
commit: b745232aa6d172768731cd9e0839730c5c17760c |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 19 16:24:03 2017 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 19 16:24:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b745232a |
7 |
|
8 |
games-mud/gnome-mud: Use gstreamer 1.x and fix telnet option renegotiation |
9 |
|
10 |
Gentoo-bug: 616000 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
12 |
|
13 |
games-mud/gnome-mud/files/0.11.2-gst1.patch | 42 +++++++++++++++ |
14 |
.../gnome-mud/files/0.11.2-telopts-reenable.patch | 35 +++++++++++++ |
15 |
games-mud/gnome-mud/gnome-mud-0.11.2-r2.ebuild | 60 ++++++++++++++++++++++ |
16 |
3 files changed, 137 insertions(+) |
17 |
|
18 |
diff --git a/games-mud/gnome-mud/files/0.11.2-gst1.patch b/games-mud/gnome-mud/files/0.11.2-gst1.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..64c6682c672 |
21 |
--- /dev/null |
22 |
+++ b/games-mud/gnome-mud/files/0.11.2-gst1.patch |
23 |
@@ -0,0 +1,42 @@ |
24 |
+From 15c37855ab3559efaeffcef651c98ed971ae84bb Mon Sep 17 00:00:00 2001 |
25 |
+From: Steven Jackson |
26 |
+Date: Wed, 19 Apr 2017 20:02:57 +0100 |
27 |
+Subject: [PATCH] gstreamer: Upgrade to 1.0 from 0.10 |
28 |
+--- |
29 |
+ configure.ac | 6 +++--- |
30 |
+ gnome-mud.spec.in | 4 ++-- |
31 |
+ 2 files changed, 5 insertions(+), 5 deletions(-) |
32 |
+ |
33 |
+diff --git a/configure.ac b/configure.ac |
34 |
+index 50c4c81..125b054 100644 |
35 |
+--- a/configure.ac |
36 |
++++ b/configure.ac |
37 |
+@@ -76,7 +76,7 @@ LIBGNET_REQUIRED=0.22 |
38 |
+ VTE_REQUIRED=0.11.00 |
39 |
+ PCRE_REQUIRED=6.0.0 |
40 |
+ GCONF_REQUIRED=0.20 |
41 |
+-GSTREAMER_REQUIRED=0.10 |
42 |
++GSTREAMER_REQUIRED=1.0 |
43 |
+ |
44 |
+ PKG_CHECK_MODULES(GMUD, gtk+-2.0 >= $GTK_REQUIRED vte >= $VTE_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED libpcre >= $PCRE_REQUIRED gmodule-2.0 >= $GMODULE_REQUIRED gnet-2.0 >= $LIBGNET_REQUIRED gconf-2.0 >= $GCONF_REQUIRED) |
45 |
+ AC_SUBST(GMUD_CFLAGS) |
46 |
+@@ -114,14 +114,14 @@ AC_ARG_ENABLE(gstreamer, |
47 |
+ [Enable GStreamer used for MSP (Mud Sound Protocol) Default=auto]),, |
48 |
+ enable_gstreamer=auto) |
49 |
+ if test "x$enable_gstreamer" != "xno"; then |
50 |
+- PKG_CHECK_EXISTS(gstreamer-0.10, have_gst=yes, have_gst=no) |
51 |
++ PKG_CHECK_EXISTS(gstreamer-1.0, have_gst=yes, have_gst=no) |
52 |
+ if test "x$have_gst" = "xno" -a "x$enable_gstreamer" = "xyes"; then |
53 |
+ AC_MSG_ERROR([Gstreamer support explicitly requested but libgstreamer was not found]) |
54 |
+ fi |
55 |
+ if test "x$have_gst" = "xyes"; then |
56 |
+ AC_DEFINE(ENABLE_GST, 1, [Define if GStreamer should be enabled]) |
57 |
+ enable_gstreamer=yes |
58 |
+- PKG_CHECK_MODULES(MSP, gstreamer-0.10 >= $GSTREAMER_REQUIRED) |
59 |
++ PKG_CHECK_MODULES(MSP, gstreamer-1.0 >= $GSTREAMER_REQUIRED) |
60 |
+ fi |
61 |
+ fi |
62 |
+ AM_CONDITIONAL(USE_GSTREAMER, test "x$enable_gstreamer" = xyes) |
63 |
+-- |
64 |
+2.10.2 |
65 |
+ |
66 |
|
67 |
diff --git a/games-mud/gnome-mud/files/0.11.2-telopts-reenable.patch b/games-mud/gnome-mud/files/0.11.2-telopts-reenable.patch |
68 |
new file mode 100644 |
69 |
index 00000000000..ebafe30c4cf |
70 |
--- /dev/null |
71 |
+++ b/games-mud/gnome-mud/files/0.11.2-telopts-reenable.patch |
72 |
@@ -0,0 +1,35 @@ |
73 |
+From 62b043beedc14741a000e848a004ba44982b28b8 Mon Sep 17 00:00:00 2001 |
74 |
+From: Steven Jackson |
75 |
+Date: Wed, 19 Apr 2017 10:38:18 +0000 |
76 |
+Subject: [PATCH] mud-telnet: Fix re-enabling disabled TELOPTS |
77 |
+ |
78 |
+When the server disabled a TELOPT it wasn't possible for it to |
79 |
+re-enable it, as it should. |
80 |
+ |
81 |
+Enabling and disabling MSP and CHARSET in the preferences window |
82 |
+doesn't control the MudTelnetHandler enabled field, so this change |
83 |
+doesn't break that. Those preferences are used at a higher level, |
84 |
+in mud-window-view.c. |
85 |
+ |
86 |
+Thanks to shentino for reporting and assisting with the fix. |
87 |
+ |
88 |
+Bug report: https://bugzilla.gnome.org/show_bug.cgi?id=781452 |
89 |
+--- |
90 |
+ src/mud-telnet.c | 2 +- |
91 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
92 |
+ |
93 |
+diff --git a/src/mud-telnet.c b/src/mud-telnet.c |
94 |
+index 052ba04..0fe274a 100644 |
95 |
+--- a/src/mud-telnet.c |
96 |
++++ b/src/mud-telnet.c |
97 |
+@@ -939,7 +939,7 @@ mud_telnet_handle_positive_nego(MudTelnet *telnet, |
98 |
+ // his state to YES and send DO; otherwise send DONT |
99 |
+ // FIXME-US/HIM |
100 |
+ // FIXME: What to do in the opposite "him" gint value case? |
101 |
+- if (mud_telnet_isenabled(telnet, opt_no, him)) |
102 |
++ if (mud_telnet_get_index_by_option(telnet, opt_no) != -1) |
103 |
+ { |
104 |
+ mud_telnet_set_telopt_state(opt, TELOPT_STATE_YES, bitshift); |
105 |
+ mud_telnet_send_iac(telnet, affirmative, opt_no); |
106 |
+-- |
107 |
+1.9.1 |
108 |
|
109 |
diff --git a/games-mud/gnome-mud/gnome-mud-0.11.2-r2.ebuild b/games-mud/gnome-mud/gnome-mud-0.11.2-r2.ebuild |
110 |
new file mode 100644 |
111 |
index 00000000000..e5a061831eb |
112 |
--- /dev/null |
113 |
+++ b/games-mud/gnome-mud/gnome-mud-0.11.2-r2.ebuild |
114 |
@@ -0,0 +1,60 @@ |
115 |
+# Copyright 1999-2017 Gentoo Foundation |
116 |
+# Distributed under the terms of the GNU General Public License v2 |
117 |
+ |
118 |
+EAPI=6 |
119 |
+GNOME_TARBALL_SUFFIX="bz2" |
120 |
+GNOME2_EAUTORECONF="yes" |
121 |
+ |
122 |
+inherit gnome2 |
123 |
+ |
124 |
+DESCRIPTION="GNOME MUD client" |
125 |
+HOMEPAGE="https://wiki.gnome.org/Apps/GnomeMud" |
126 |
+ |
127 |
+LICENSE="GPL-2" |
128 |
+SLOT="0" |
129 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
130 |
+IUSE="gstreamer" |
131 |
+ |
132 |
+RDEPEND="virtual/libintl |
133 |
+ dev-libs/libpcre |
134 |
+ dev-perl/XML-Parser |
135 |
+ gnome-base/gconf:2 |
136 |
+ >=gnome-base/libglade-2.0.1:2.0 |
137 |
+ gstreamer? ( media-libs/gstreamer:1.0 ) |
138 |
+ net-libs/gnet:2 |
139 |
+ x11-libs/gtk+:2 |
140 |
+ >=x11-libs/vte-0.11:0" |
141 |
+DEPEND="${RDEPEND} |
142 |
+ virtual/pkgconfig |
143 |
+ app-text/rarian |
144 |
+ >=dev-util/intltool-0.23 |
145 |
+ >=sys-devel/gettext-0.11.5" |
146 |
+ |
147 |
+PATCHES=( |
148 |
+ "${FILESDIR}"/${PV}-telopts-reenable.patch #616000 |
149 |
+ "${FILESDIR}"/${PV}-gst1.patch # Needs eautoreconf |
150 |
+) |
151 |
+ |
152 |
+src_configure() { |
153 |
+ gnome2_src_configure \ |
154 |
+ $(use_enable gstreamer) |
155 |
+} |
156 |
+ |
157 |
+src_install() { |
158 |
+ DOCS="AUTHORS BUGS ChangeLog NEWS PLUGIN.API README ROADMAP" \ |
159 |
+ gnome2_src_install |
160 |
+} |
161 |
+ |
162 |
+pkg_preinst() { |
163 |
+ gnome2_pkg_preinst |
164 |
+} |
165 |
+ |
166 |
+pkg_postinst() { |
167 |
+ gnome2_pkg_postinst |
168 |
+ echo |
169 |
+ elog "For proper plugin operation, please create ~/.gnome-mud/plugins/" |
170 |
+ elog "if that directory doesn't already exist." |
171 |
+ elog "The command to do that is:" |
172 |
+ elog " mkdir -p ~/.gnome-mud/plugins/" |
173 |
+ echo |
174 |
+} |