Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-mud/powwow/, games-mud/powwow/files/
Date: Sat, 09 Jan 2021 16:16:15
Message-Id: 1610208964.4398db24f18f4f220edf10f546edbe2e9e9e8ff0.sam@gentoo
1 commit: 4398db24f18f4f220edf10f546edbe2e9e9e8ff0
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 9 16:16:01 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 9 16:16:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4398db24
7
8 games-mud/powwow: bump to 1.22.22
9
10 Closes: https://bugs.gentoo.org/716584
11 Closes: https://bugs.gentoo.org/690452
12 Package-Manager: Portage-3.0.12, Repoman-3.0.2
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 games-mud/powwow/Manifest | 1 +
16 games-mud/powwow/files/powwow-1.2.22-linking.patch | 39 ++++++++++++++++++
17 .../powwow/files/powwow-1.2.22-musl-termios.patch | 24 +++++++++++
18 games-mud/powwow/powwow-1.2.22.ebuild | 48 ++++++++++++++++++++++
19 4 files changed, 112 insertions(+)
20
21 diff --git a/games-mud/powwow/Manifest b/games-mud/powwow/Manifest
22 index 4bdf237f7fb..1aa6fcb5a71 100644
23 --- a/games-mud/powwow/Manifest
24 +++ b/games-mud/powwow/Manifest
25 @@ -1 +1,2 @@
26 DIST powwow-1.2.16.tar.gz 295441 BLAKE2B 36f45e57af83b624e8f061ba7cc10ac7429b42bba56b1f61c737d9541ded788e5d94c76e1c70d00f49aac98a2a1fac6a04965d2eb78e587d53cea8b0d17ea736 SHA512 9bc046ba14760d55a7aabb550229d5f5b234f3ef0690d837f1de8df5e1f404b8483e61981cffdf8e82f164bd5a68f4da3f8342b0c09b98155adaabf14d8b079e
27 +DIST powwow-1.2.22.tar.gz 339521 BLAKE2B abbad1cdce0f1f8d7c5affdb2665231fd3f4faa2439e90a5f37f23455eea0e687c63476fc63a508cbfff2ffc33ea97c31c66b868255aa60a4a9819c0eebe8844 SHA512 558143ab4dfa06798abe7cb6b18ce3ceb70925214ac0125f0f3823f077a6cbbda50557c954af623a2dae003a57df893325085e53a4ee9322250bc7e695b76fe5
28
29 diff --git a/games-mud/powwow/files/powwow-1.2.22-linking.patch b/games-mud/powwow/files/powwow-1.2.22-linking.patch
30 new file mode 100644
31 index 00000000000..e9dc39177bf
32 --- /dev/null
33 +++ b/games-mud/powwow/files/powwow-1.2.22-linking.patch
34 @@ -0,0 +1,39 @@
35 +* Fix ncurses/tinfo linking: https://bugs.gentoo.org/690452
36 +
37 +* Fix underlinking (refresh of old patch by hasufell@):
38 +From: Julian Ospald <hasufell@g.o>
39 +Date: Mon Feb 18 02:25:38 UTC 2013
40 +Subject: fix underlinking
41 +https://bugs.gentoo.org/show_bug.cgi?id=454928
42 +--- a/configure.ac
43 ++++ b/configure.ac
44 +@@ -93,10 +93,7 @@ AC_PROG_LN_S
45 + AC_CHECK_FUNC(lrand48,,AC_DEFINE(USE_RANDOM))
46 +
47 + if test "x${enable_vt100}" != "xyes"; then
48 +- AC_SEARCH_LIBS(initscr,[ncurses curses], [], [
49 +- if test "x${enable_vt100}" = "xno" ; then
50 +- AC_MSG_ERROR([*** curses libraries not found])
51 +- fi])
52 ++ PKG_CHECK_MODULES([ncurses], [ncurses])
53 + fi
54 +
55 + # Dynamic modules
56 +--- a/src/Makefile.am
57 ++++ b/src/Makefile.am
58 +@@ -6,7 +6,8 @@ bin_PROGRAMS = powwow powwow-muc powwow-movieplay
59 + powwow_SOURCES = beam.c cmd.c log.c edit.c cmd2.c eval.c \
60 + utils.c main.c tcp.c list.c map.c tty.c \
61 + ptr.c
62 +-powwow_LDFLAGS = @dl_ldflags@
63 ++powwow_LDADD = @dl_ldflags@ @ncurses_LIBS@
64 ++powwow_muc_LDADD = @ncurses_LIBS@
65 + powwowdir = $(pkgincludedir)
66 + powwow_HEADERS = beam.h cmd.h log.h edit.h cmd2.h eval.h \
67 + utils.h main.h tcp.h list.h map.h tty.h \
68 +@@ -26,4 +26,4 @@ catrw_SOURCES = catrw.c
69 + EXTRA_DIST = plugtest.c
70 +
71 + plugtest.so: plugtest.c
72 +- gcc -shared -o plugtest.so plugtest.c
73 ++ $(CC) $(CFLAGS) -shared -o plugtest.so plugtest.c
74
75 diff --git a/games-mud/powwow/files/powwow-1.2.22-musl-termios.patch b/games-mud/powwow/files/powwow-1.2.22-musl-termios.patch
76 new file mode 100644
77 index 00000000000..4cab065d27b
78 --- /dev/null
79 +++ b/games-mud/powwow/files/powwow-1.2.22-musl-termios.patch
80 @@ -0,0 +1,24 @@
81 +diff --git a/src/follow.c b/src/follow.c
82 +index 09456c9..b3363e8 100644
83 +--- a/src/follow.c
84 ++++ b/src/follow.c
85 +@@ -26,7 +26,6 @@
86 + * many warnings, but seems to be necessary at times. works anyway.
87 + */
88 + # include <termios.h>
89 +-# include <termio.h>
90 + # endif
91 + /* #else USE_SGTTY */
92 + #endif
93 +diff --git a/src/tty.c b/src/tty.c
94 +index 104c780..0d76554 100644
95 +--- a/src/tty.c
96 ++++ b/src/tty.c
97 +@@ -44,7 +44,6 @@
98 + * many warnings, but seems to be necessary at times. works anyway.
99 + */
100 + # include <termios.h>
101 +-# include <termio.h>
102 + # endif
103 + /* #else USE_SGTTY */
104 + #endif
105
106 diff --git a/games-mud/powwow/powwow-1.2.22.ebuild b/games-mud/powwow/powwow-1.2.22.ebuild
107 new file mode 100644
108 index 00000000000..68e69db45e7
109 --- /dev/null
110 +++ b/games-mud/powwow/powwow-1.2.22.ebuild
111 @@ -0,0 +1,48 @@
112 +# Copyright 1999-2021 Gentoo Authors
113 +# Distributed under the terms of the GNU General Public License v2
114 +
115 +EAPI=7
116 +
117 +inherit autotools
118 +
119 +DESCRIPTION="PowWow Console MUD Client"
120 +HOMEPAGE="https://www.hoopajoo.net/projects/powwow.html"
121 +SRC_URI="https://www.hoopajoo.net/static/projects/${P}.tar.gz"
122 +
123 +LICENSE="GPL-2"
124 +SLOT="0"
125 +KEYWORDS="~amd64 ~x86"
126 +
127 +DEPEND="sys-libs/ncurses:0="
128 +RDEPEND="${DEPEND}"
129 +
130 +PATCHES=(
131 + "${FILESDIR}"/${PN}-1.2.22-linking.patch
132 + "${FILESDIR}"/${PN}-1.2.22-musl-termios.patch
133 +)
134 +
135 +src_prepare() {
136 + default
137 +
138 + # note that that the extra, seemingly-redundant files installed are
139 + # actually used by in-game help commands
140 + sed -i \
141 + -e "s/pkgdata_DATA = powwow.doc/pkgdata_DATA = /" \
142 + Makefile.am || die
143 +
144 + eautoreconf
145 +}
146 +
147 +src_configure() {
148 + econf --includedir="${EPREFIX}"/usr/include
149 +}
150 +
151 +src_install() {
152 + local DOCS=( Hacking powwow.doc powwow.help README.* TODO )
153 + # Prepend doc/
154 + DOCS=( ${DOCS[@]/#/doc\//} )
155 + # Add in the root items
156 + DOCS+=( ChangeLog NEWS )
157 +
158 + default
159 +}