Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/tvision/, dev-libs/tvision/files/
Date: Wed, 29 Nov 2017 23:20:02
Message-Id: 1511997560.00b1c4b1bd755b05fdddca6c1f4e696892f8e117.asturm@gentoo
1 commit: 00b1c4b1bd755b05fdddca6c1f4e696892f8e117
2 Author: Bernd Waibel <waebbl <AT> gmail <DOT> com>
3 AuthorDate: Sat Nov 25 14:04:50 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 29 23:19:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00b1c4b1
7
8 dev-libs/tvision: Version bump to 2.2.1.4
9
10 Copied over from release 2.1.0_pre2-r4
11 Add some USE flags: X, debug, gpm
12 Update metadata.xml: Add maintainer, longdescription, use
13
14 Application to proxy maintaining this package.
15
16 Closes: https://bugs.gentoo.org/638794
17 Package-Manager: Portage-2.3.16, Repoman-2.3.6
18 Closes: https://github.com/gentoo/gentoo/pull/6295
19
20 dev-libs/tvision/Manifest | 3 +-
21 .../files/tvision-2.2.1.4-build-system.patch | 31 ++++++++++
22 .../files/tvision-2.2.1.4-fix-dot-INC.patch | 30 ++++++++++
23 dev-libs/tvision/files/tvision-2.2.1.4-flags.patch | 13 ++++
24 dev-libs/tvision/files/tvision-2.2.1.4-gcc6.patch | 45 ++++++++++++++
25 .../tvision/files/tvision-2.2.1.4-ldconfig.patch | 17 ++++++
26 dev-libs/tvision/metadata.xml | 17 +++++-
27 dev-libs/tvision/tvision-2.2.1.4.ebuild | 70 ++++++++++++++++++++++
28 8 files changed, 224 insertions(+), 2 deletions(-)
29
30 diff --git a/dev-libs/tvision/Manifest b/dev-libs/tvision/Manifest
31 index e976d4ba28a..c74c34504d3 100644
32 --- a/dev-libs/tvision/Manifest
33 +++ b/dev-libs/tvision/Manifest
34 @@ -1 +1,2 @@
35 -DIST rhtvision_2.1.0-2.tar.gz 1590449 SHA256 fef19d839069dea2cd5459f24a190883a3b2b600a60d6f7823f456d8e6889412 SHA512 0593cd2eee9490d5cd6e79a6b8f4c0b384f78e5bb24b0728876fb9df482a43ee97c141d89127254210b4e012970327adfc5c8815d7c3c580a6d54a09291d42a1 WHIRLPOOL 5ce2e0bd7eb161aaef520a3bfafde7146784ac5a9d528ce73a51f502b23d790f42caeee5028508a8902615dfa31e295a988daef341f3fa3f6bb1c360b4b90d2b
36 +DIST rhtvision_2.1.0-2.tar.gz 1590449 BLAKE2B f5c31f997396f7b41b40089d3ebad8cdb5f24fce22f19defe3530d8a6cfcd728bf9cd3bcbb4e5d1d76c1fa3bc13c3b84f1147bd3c5aa07810077f5f159684eb0 SHA512 0593cd2eee9490d5cd6e79a6b8f4c0b384f78e5bb24b0728876fb9df482a43ee97c141d89127254210b4e012970327adfc5c8815d7c3c580a6d54a09291d42a1
37 +DIST rhtvision_2.2.1-4.tar.gz 1777675 BLAKE2B 04fee72d25c01825c8e21115bf16348e1f204371055490520d86a7eb6ad07d73c3d46f6046e11e01f7725b4fe8bd9eaf039ed72233f9141aaa19193635d6fe98 SHA512 bbbaab611fc7831eb339ddb612ef208a16e74f8e0961268e7e63f69c38cdfe45013d440861f3396aceabddf1a44e4cd65023b5b4238a39d55bbf133bde37dd8f
38
39 diff --git a/dev-libs/tvision/files/tvision-2.2.1.4-build-system.patch b/dev-libs/tvision/files/tvision-2.2.1.4-build-system.patch
40 new file mode 100644
41 index 00000000000..d2c1316a794
42 --- /dev/null
43 +++ b/dev-libs/tvision/files/tvision-2.2.1.4-build-system.patch
44 @@ -0,0 +1,31 @@
45 +diff --git a/config.pl b/config.pl
46 +index 6a7a8b3..4664baa 100644
47 +--- a/config.pl
48 ++++ b/config.pl
49 +@@ -1188,7 +1188,7 @@ sub GenerateMakefile
50 + $rep.="\t\$(MAKE) -C intl\n";
51 + }
52 + $text=~s/\@target_rules\@/$rep/g;
53 +- $rep="intl-dummy:\n\t\$(MAKE) -C intl/dummy\n";
54 ++ $rep="intl-dummy:\n\t\$(MAKE) prefix=\$(prefix) -C intl/dummy\n";
55 + $rep.="\tcp intl/dummy/libtvfintl.a $makeDir\n";
56 + $rep.="\tranlib $makeDir/libtvfintl.a\n" if $conf{'UseRanLib'};
57 + $text=~s/\@intl_dummy_rule\@/$rep/g;
58 +@@ -1273,7 +1273,7 @@ sub GenerateMakefile
59 + }
60 + if ($internac)
61 + {
62 +- $rep.="\ninstall-internac:\n\t\$(MAKE) -C intl install\n";
63 ++ $rep.="\ninstall-internac:\n\t\$(MAKE) prefix=\$(prefix) -C intl install\n";
64 + }
65 + $text=~s/\@install_rules\@/$rep/g;
66 +
67 +@@ -1293,7 +1293,7 @@ sub GenerateMakefile
68 + $rep.="\trm -f intl/dummy/*.lo\n";
69 + $rep.="\trm -f intl/dummy/*.a\n";
70 + $rep.="\t-\$(MAKE) -C examples clean\n";
71 +- $rep.="\t-\$(MAKE) -C intl clean\n";
72 ++ $rep.="\t-\$(MAKE) prefix=\$(prefix) -C intl clean\n";
73 + $rep.="\trm -f configure.cache\n";
74 + $rep.="\trm -f rhtv-config\$(EXE_EXT)\n";
75 + $text=~s/\@clean\@/$rep/g;
76
77 diff --git a/dev-libs/tvision/files/tvision-2.2.1.4-fix-dot-INC.patch b/dev-libs/tvision/files/tvision-2.2.1.4-fix-dot-INC.patch
78 new file mode 100644
79 index 00000000000..ee81c4febd5
80 --- /dev/null
81 +++ b/dev-libs/tvision/files/tvision-2.2.1.4-fix-dot-INC.patch
82 @@ -0,0 +1,30 @@
83 +diff --git a/config.pl b/config.pl
84 +index caf9c2d..caf2ed3 100644
85 +--- a/config.pl
86 ++++ b/config.pl
87 +@@ -5,8 +5,8 @@
88 + # To specify the compilation flags define the CFLAGS environment variable.
89 + #
90 +
91 +-require "miscperl.pl";
92 +-require "conflib.pl";
93 ++require "./miscperl.pl";
94 ++require "./conflib.pl";
95 +
96 + # This optimization is giving problems and current PCs are quite fast to
97 + # make a real difference.
98 +diff --git a/confignt.pl b/confignt.pl
99 +index e185f49..9ff7ae6 100644
100 +--- a/confignt.pl
101 ++++ b/confignt.pl
102 +@@ -3,8 +3,8 @@
103 + # see copyrigh file for details
104 + #
105 +
106 +-require "miscperl.pl";
107 +-require "conflib.pl";
108 ++require "./miscperl.pl";
109 ++require "./conflib.pl";
110 +
111 + SeeCommandLine();
112 +
113
114 diff --git a/dev-libs/tvision/files/tvision-2.2.1.4-flags.patch b/dev-libs/tvision/files/tvision-2.2.1.4-flags.patch
115 new file mode 100644
116 index 00000000000..832a0c7c265
117 --- /dev/null
118 +++ b/dev-libs/tvision/files/tvision-2.2.1.4-flags.patch
119 @@ -0,0 +1,13 @@
120 +diff --git a/Makefile.in b/Makefile.in
121 +index 722fb29..f4128dc 100644
122 +--- a/Makefile.in
123 ++++ b/Makefile.in
124 +@@ -31,7 +31,7 @@ examples:
125 + $(MAKE) -C examples
126 +
127 + rhtv-config$(EXE_EXT): rhtv-config.c include/tv/configtv.h
128 +- @GCC@ -o rhtv-config$(EXE_EXT) -Iinclude rhtv-config.c
129 ++ @GCC@ -o rhtv-config$(EXE_EXT) $(CFLAGS) $(LDFLAGS) -Iinclude rhtv-config.c
130 +
131 + install-headers:
132 + @install_headers@
133
134 diff --git a/dev-libs/tvision/files/tvision-2.2.1.4-gcc6.patch b/dev-libs/tvision/files/tvision-2.2.1.4-gcc6.patch
135 new file mode 100644
136 index 00000000000..e882e853982
137 --- /dev/null
138 +++ b/dev-libs/tvision/files/tvision-2.2.1.4-gcc6.patch
139 @@ -0,0 +1,45 @@
140 +diff --git a/classes/tdesktop.cc b/classes/tdesktop.cc
141 +index 38f1be4..f8f44f0 100644
142 +--- a/classes/tdesktop.cc
143 ++++ b/classes/tdesktop.cc
144 +@@ -26,6 +26,10 @@ Modified cursor behavior while desktop locked by Salvador E. Tropea (SET)
145 + #define Uses_TVCodePage
146 + #include <tv.h>
147 +
148 ++#include <cmath>
149 ++
150 ++using std::abs;
151 ++
152 + TDeskInit::TDeskInit( TBackground *(*cBackground)( TRect ) ) :
153 + createBackground( cBackground )
154 + {
155 +diff --git a/classes/tdisplay.cc b/classes/tdisplay.cc
156 +index 9225d48..ee5eca8 100644
157 +--- a/classes/tdisplay.cc
158 ++++ b/classes/tdisplay.cc
159 +@@ -22,6 +22,10 @@ same used in original Turbo Vision for compatibility purposes.
160 + #define Uses_TVCodePage
161 + #include <tv.h>
162 +
163 ++#include <cmath>
164 ++
165 ++using std::abs;
166 ++
167 + // Remove me please!
168 + int TDisplay::dual_display=0;
169 +
170 +diff --git a/classes/x11/x11src.cc b/classes/x11/x11src.cc
171 +index 538457e..10f9911 100644
172 +--- a/classes/x11/x11src.cc
173 ++++ b/classes/x11/x11src.cc
174 +@@ -98,6 +98,10 @@
175 + #define TIMER_ALARM SIGALRM
176 + #endif
177 +
178 ++#include <cmath>
179 ++
180 ++using std::abs;
181 ++
182 + const unsigned foWmin=5, foHmin=7, foWmax=20, foHmax=32;
183 + const int cursorDelay=300000;
184 +
185
186 diff --git a/dev-libs/tvision/files/tvision-2.2.1.4-ldconfig.patch b/dev-libs/tvision/files/tvision-2.2.1.4-ldconfig.patch
187 new file mode 100644
188 index 00000000000..f253eeecbcf
189 --- /dev/null
190 +++ b/dev-libs/tvision/files/tvision-2.2.1.4-ldconfig.patch
191 @@ -0,0 +1,17 @@
192 +diff --git a/config.pl b/config.pl
193 +index caf2ed3..6a7a8b3 100644
194 +--- a/config.pl
195 ++++ b/config.pl
196 +@@ -1270,12 +1270,6 @@ sub GenerateMakefile
197 + $rep.="\t".GenInstallFiles('0644',"$makeDir/$ver",'$(libdir)');
198 + $stripDebug=($OSf eq 'Darwin') ? '-S' : '--strip-debug';
199 + $rep.="\tstrip $stripDebug \$(libdir)/$ver\n" unless $conf{'debugInfo'} eq 'yes';
200 +- # FreeBSD: merge data from libdir.
201 +- # Darwin: doesn't have ldconfig.
202 +- if ($OSf ne 'Darwin')
203 +- {
204 +- $rep.=($OSf eq 'FreeBSD') ? "\t-ldconfig -m \$(libdir)\n" : "\t-ldconfig\n";
205 +- }
206 + }
207 + if ($internac)
208 + {
209
210 diff --git a/dev-libs/tvision/metadata.xml b/dev-libs/tvision/metadata.xml
211 index ae4bd97fa26..8fc9090f78d 100644
212 --- a/dev-libs/tvision/metadata.xml
213 +++ b/dev-libs/tvision/metadata.xml
214 @@ -1,7 +1,22 @@
215 <?xml version="1.0" encoding="UTF-8"?>
216 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
217 <pkgmetadata>
218 - <!-- maintainer-needed -->
219 + <maintainer type="person">
220 + <email>waebbl@×××××.com</email>
221 + <name>Bernd Waibel</name>
222 + </maintainer>
223 + <maintainer type="project">
224 + <email>proxy-maint@g.o</email>
225 + <name>Proxy Maintainers</name>
226 + </maintainer>
227 + <longdescription>
228 + Text User Interface (TUI) that implements the well known CUA widgets.
229 + </longdescription>
230 + <use>
231 + <flag restrict="&gt;dev-libs/tvision-2.2.1-r4" name="gpm">
232 + Support text mode mouse through <pkg>sys-libs/gpm</pkg>
233 + </flag>
234 + </use>
235 <upstream>
236 <remote-id type="sourceforge">tvision</remote-id>
237 </upstream>
238
239 diff --git a/dev-libs/tvision/tvision-2.2.1.4.ebuild b/dev-libs/tvision/tvision-2.2.1.4.ebuild
240 new file mode 100644
241 index 00000000000..0e8e0a50a55
242 --- /dev/null
243 +++ b/dev-libs/tvision/tvision-2.2.1.4.ebuild
244 @@ -0,0 +1,70 @@
245 +# Copyright 1999-2017 Gentoo Foundation
246 +# Distributed under the terms of the GNU General Public License v2
247 +
248 +EAPI=6
249 +
250 +DESCRIPTION="Text User Interface that implements the well known CUA widgets"
251 +HOMEPAGE="http://tvision.sourceforge.net/"
252 +MY_PVR=${PVR:0:5}-${PVR:6}
253 +SRC_URI="mirror://sourceforge/tvision/rhtvision_${MY_PVR}.tar.gz"
254 +
255 +LICENSE="GPL-2"
256 +SLOT="0"
257 +KEYWORDS="~amd64 ~ppc ~x86"
258 +IUSE="+X debug gpm"
259 +
260 +DOCS=( readme.txt THANKS TODO )
261 +HTML_DOCS=( www-site/. )
262 +
263 +S=${WORKDIR}/${PN}
264 +
265 +# installed lib links to those
266 +RDEPEND="
267 + dev-libs/libbsd
268 + sys-apps/util-linux
269 + sys-libs/ncurses:0=
270 + gpm? ( sys-libs/gpm )
271 + X? (
272 + x11-libs/libICE
273 + x11-libs/libSM
274 + x11-libs/libX11
275 + x11-libs/libXau
276 + x11-libs/libXdmcp
277 + x11-libs/libXext
278 + x11-libs/libXmu
279 + x11-libs/libXt
280 + x11-libs/libxcb
281 + )"
282 +DEPEND="${RDEPEND}"
283 +
284 +PATCHES=(
285 + "${FILESDIR}/${P}-fix-dot-INC.patch"
286 + "${FILESDIR}/${P}-ldconfig.patch"
287 + "${FILESDIR}/${P}-build-system.patch"
288 + "${FILESDIR}/${P}-gcc6.patch"
289 + "${FILESDIR}/${P}-flags.patch"
290 +)
291 +
292 +src_configure() {
293 + # Note: Do not use econf here, this isn't an autoconf configure script,
294 + # but a perl based script which simply calls config.pl
295 + ./configure --fhs \
296 + $(use_with debug debug) \
297 + --without-static \
298 + || die
299 +}
300 +
301 +src_install() {
302 + emake DESTDIR="${D}" install \
303 + prefix="\${DESTDIR}/${EPREFIX}/usr" \
304 + libdir="\$(prefix)/$(get_libdir)"
305 +
306 + einstalldocs
307 + dosym rhtvision /usr/include/tvision
308 +
309 + # remove CVS directory which gets copied over
310 + rm -rf "${ED%/}/usr/share/doc/${P}/html/CVS" || die
311 +
312 + # TODO: remove locales which are not needed, depending on current user
313 + # locale settings. How?
314 +}