Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/topcom/files/, sci-mathematics/topcom/
Date: Sat, 07 May 2022 22:31:27
Message-Id: 1651962564.ab830994be4a1eaa1fc2b8bbda90a3d9b8e39f83.mjo@gentoo
1 commit: ab830994be4a1eaa1fc2b8bbda90a3d9b8e39f83
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 7 20:44:50 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat May 7 22:29:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab830994
7
8 sci-mathematics/topcom: new revision with miscellaneous fixes.
9
10 * Update to EAPI=8.
11 * Update the buildsystem patch to eliminate a call to "csh",
12 fixing bug 732022 without requiring csh at build-time.
13 * Drop tcsh from BDEPEND.
14 * HOMEPAGE and SRC_URI needed updates.
15
16 Closes: https://bugs.gentoo.org/732022
17 Package-Manager: Portage-3.0.30, Repoman-3.0.3
18 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
19
20 sci-mathematics/topcom/Manifest | 2 +-
21 .../topcom/files/topcom-0.17.8-buildsystem.patch | 238 +++++++++++++++------
22 ...om-0.17.8-r1.ebuild => topcom-0.17.8-r2.ebuild} | 14 +-
23 3 files changed, 181 insertions(+), 73 deletions(-)
24
25 diff --git a/sci-mathematics/topcom/Manifest b/sci-mathematics/topcom/Manifest
26 index be0aad7f9994..b791cf49116e 100644
27 --- a/sci-mathematics/topcom/Manifest
28 +++ b/sci-mathematics/topcom/Manifest
29 @@ -1,3 +1,3 @@
30 DIST TOPCOM-0.17.7.tar.gz 8661519 BLAKE2B f42d273b39b15ccaf0d24ad360dc91cecd2ab83c97eb5a2fffe95575d7c8063d9afa842d7bfae03faee32ced1f98ccc55a750a59c1f544acded462a478aac636 SHA512 528e566e488641e078a8c9150f88a1544f607e6859da1d95a98dc5890c5a52882f8c8790097c3a77277066bd5d4c10a1e0a9c131fbc521f56f6139eeab7e21d1
31 -DIST TOPCOM-0.17.8.tar.gz 8994044 BLAKE2B 27426b9fd9da8bc51e3632483cdd1c3f878a03d22dcad637c1c26368d58dbc9a9ef4c6918e314484336b1355cdf703287bf50d248e257773729a4d9fd012c0ca SHA512 2ddab2f30bf3adf93f0bb76c50bc70a5927fe2a9561a59df0ac7bec193b9a9b231eecb58c69840247536b73fda5298955518e798c3b5f8d2961ca09dfdc81cce
32 +DIST TOPCOM-0_17_8.tgz 8994044 BLAKE2B 27426b9fd9da8bc51e3632483cdd1c3f878a03d22dcad637c1c26368d58dbc9a9ef4c6918e314484336b1355cdf703287bf50d248e257773729a4d9fd012c0ca SHA512 2ddab2f30bf3adf93f0bb76c50bc70a5927fe2a9561a59df0ac7bec193b9a9b231eecb58c69840247536b73fda5298955518e798c3b5f8d2961ca09dfdc81cce
33 DIST TOPCOM-manual.html 19251 BLAKE2B 8e361fd81bed45b552766a86a856ed1411154b5c523e14463750651d1c8d7b0f1f25a7c29bfdc34910fad3d19a1df94ded47b63a973f22baf3d60a7c5f0e1578 SHA512 5d0303f141bce12e0354c2fb65420102aa198e2271c0e901621f850b47f9cf9642659b0cf8e9bcc7a6da3b39914c20e47c67e72aa9cf999892f80855daa25c67
34
35 diff --git a/sci-mathematics/topcom/files/topcom-0.17.8-buildsystem.patch b/sci-mathematics/topcom/files/topcom-0.17.8-buildsystem.patch
36 index deb1ad3ebbad..2b517b441ed3 100644
37 --- a/sci-mathematics/topcom/files/topcom-0.17.8-buildsystem.patch
38 +++ b/sci-mathematics/topcom/files/topcom-0.17.8-buildsystem.patch
39 @@ -1,7 +1,34 @@
40 -diff -ur a/configure.ac b/configure.ac
41 ---- a/configure.ac 2020-02-15 12:44:55.065569980 +0100
42 -+++ b/configure.ac 2020-02-15 14:08:21.905767776 +0100
43 -@@ -9,7 +9,9 @@
44 +From 27284e6a9cb95dcd274abbe184b21eed8a899904 Mon Sep 17 00:00:00 2001
45 +From: Michael Orlitzky <michael@××××××××.com>
46 +Date: Sat, 7 May 2022 16:00:45 -0400
47 +Subject: [PATCH 1/3] Gentoo's existing build system patch
48 +
49 +---
50 + Makefile.am | 5 -----
51 + configure.ac | 8 +++-----
52 + lib-src-reg/Makefile.am | 8 ++++----
53 + lib-src/Makefile.am | 8 ++++----
54 + src-reg/Makefile.am | 15 +++++----------
55 + src/Makefile.am | 14 +++++---------
56 + wrap-gmp-gmpxx/Makefile.am | 4 ++--
57 + 7 files changed, 23 insertions(+), 39 deletions(-)
58 +
59 +diff --git a/Makefile.am b/Makefile.am
60 +index 5dd0de0..4586f79 100644
61 +--- a/Makefile.am
62 ++++ b/Makefile.am
63 +@@ -1,6 +1 @@
64 + SUBDIRS = wrap-gmp-gmpxx lib-src-reg lib-src src-reg src examples
65 +-EXTRA_DIST = external/Makefile
66 +-EXTRA_DIST += external/gmp-6.1.1.tar.bz2
67 +-EXTRA_DIST += external/cddlib-0.94f-TOPCOM.tar.gz
68 +-EXTRA_DIST += external/gmpxx-patch
69 +-
70 +diff --git a/configure.ac b/configure.ac
71 +index 6635345..a10fb97 100644
72 +--- a/configure.ac
73 ++++ b/configure.ac
74 +@@ -9,7 +9,9 @@ dnl Checks for programs.
75 AC_PROG_CC
76 AC_PROG_INSTALL
77 AC_PROG_CXX
78 @@ -12,7 +39,7 @@ diff -ur a/configure.ac b/configure.ac
79
80 dnl Checks for libraries.
81 dnl Replace `main' with a function in -lg:
82 -@@ -18,10 +20,6 @@
83 +@@ -18,10 +20,6 @@ dnl Replace `main' with a function in -lstdc:
84 dnl AC_CHECK_LIB(stdc, main)
85 dnl Replace `main' with a function in -lstdc++:
86 dnl AC_CHECK_LIB(stdc++, main)
87 @@ -23,9 +50,35 @@ diff -ur a/configure.ac b/configure.ac
88 dnl Check for soplex:
89 AC_CHECK_LIB(soplex, main, , csh -c 'echo soplex not found: --soplex will not work.')
90
91 -diff -ur a/lib-src/Makefile.am b/lib-src/Makefile.am
92 ---- a/lib-src/Makefile.am 2020-02-15 12:44:55.145570436 +0100
93 -+++ b/lib-src/Makefile.am 2020-02-15 14:08:44.741903592 +0100
94 +diff --git a/lib-src-reg/Makefile.am b/lib-src-reg/Makefile.am
95 +index fc8b005..d07b8f8 100644
96 +--- a/lib-src-reg/Makefile.am
97 ++++ b/lib-src-reg/Makefile.am
98 +@@ -1,6 +1,6 @@
99 +-lib_LIBRARIES = libCHECKREG.a
100 ++lib_LTLIBRARIES = libCHECKREG.la
101 +
102 +-libCHECKREG_a_SOURCES = \
103 ++libCHECKREG_la_SOURCES = \
104 + SPXinterface.cc \
105 + LPinterface.cc \
106 + RegularityCheck.cc
107 +@@ -12,9 +12,9 @@ LPinterface.hh
108 +
109 + AM_CPPFLAGS = -I../lib-src
110 + AM_CPPFLAGS += -I../wrap-gmp-gmpxx
111 +-AM_CPPFLAGS += -I../external/include
112 ++AM_CPPFLAGS += $(CPPFLAGS)
113 + AM_CPPFLAGS += -I$(includedir)
114 +
115 + AM_CPPFLAGS += -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
116 +
117 +-AM_CXXFLAGS = -O2
118 ++AM_CXXFLAGS = $(CXXFLAGS)
119 +diff --git a/lib-src/Makefile.am b/lib-src/Makefile.am
120 +index b2358cc..90b735a 100644
121 +--- a/lib-src/Makefile.am
122 ++++ b/lib-src/Makefile.am
123 @@ -1,6 +1,6 @@
124 -lib_LIBRARIES = libTOPCOM.a
125 +lib_LTLIBRARIES = libTOPCOM.la
126 @@ -35,7 +88,7 @@ diff -ur a/lib-src/Makefile.am b/lib-src/Makefile.am
127 Admissibles.cc \
128 CheckTriang.cc \
129 Circuits.cc \
130 -@@ -90,9 +90,9 @@
131 +@@ -90,9 +90,9 @@ VirtualChiro.hh
132
133 AM_CPPFLAGS = -I../lib-src-reg
134 AM_CPPFLAGS += -I../wrap-gmp-gmpxx
135 @@ -47,49 +100,16 @@ diff -ur a/lib-src/Makefile.am b/lib-src/Makefile.am
136
137 -AM_CXXFLAGS = -O2 -g
138 +AM_CXXFLAGS = $(CXXFLAGS)
139 -diff -ur a/lib-src-reg/Makefile.am b/lib-src-reg/Makefile.am
140 ---- a/lib-src-reg/Makefile.am 2020-02-15 12:44:55.165570550 +0100
141 -+++ b/lib-src-reg/Makefile.am 2020-02-15 14:08:22.921773817 +0100
142 -@@ -1,6 +1,6 @@
143 --lib_LIBRARIES = libCHECKREG.a
144 -+lib_LTLIBRARIES = libCHECKREG.la
145 +diff --git a/src-reg/Makefile.am b/src-reg/Makefile.am
146 +index a351951..38f8f9f 100644
147 +--- a/src-reg/Makefile.am
148 ++++ b/src-reg/Makefile.am
149 +@@ -2,20 +2,15 @@ bin_PROGRAMS = checkregularity
150
151 --libCHECKREG_a_SOURCES = \
152 -+libCHECKREG_la_SOURCES = \
153 - SPXinterface.cc \
154 - LPinterface.cc \
155 - RegularityCheck.cc
156 -@@ -12,9 +12,9 @@
157 -
158 - AM_CPPFLAGS = -I../lib-src
159 - AM_CPPFLAGS += -I../wrap-gmp-gmpxx
160 --AM_CPPFLAGS += -I../external/include
161 -+AM_CPPFLAGS += $(CPPFLAGS)
162 - AM_CPPFLAGS += -I$(includedir)
163 -
164 - AM_CPPFLAGS += -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
165 -
166 --AM_CXXFLAGS = -O2
167 -+AM_CXXFLAGS = $(CXXFLAGS)
168 -diff -ur a/Makefile.am b/Makefile.am
169 ---- a/Makefile.am 2020-02-15 12:44:55.065569980 +0100
170 -+++ b/Makefile.am 2020-02-15 14:08:22.929773865 +0100
171 -@@ -1,6 +1 @@
172 - SUBDIRS = wrap-gmp-gmpxx lib-src-reg lib-src src-reg src examples
173 --EXTRA_DIST = external/Makefile
174 --EXTRA_DIST += external/gmp-6.1.1.tar.bz2
175 --EXTRA_DIST += external/cddlib-0.94f-TOPCOM.tar.gz
176 --EXTRA_DIST += external/gmpxx-patch
177 --
178 -diff -ur a/src/Makefile.am b/src/Makefile.am
179 ---- a/src/Makefile.am 2020-02-15 12:44:55.165570550 +0100
180 -+++ b/src/Makefile.am 2020-02-15 14:08:22.933773888 +0100
181 -@@ -83,18 +83,14 @@
182 - santos_dim4_triang_SOURCES = santos_dim4_triang.cc
183 - santos_22_triang_SOURCES = santos_22_triang.cc
184 + checkregularity_SOURCES = checkregularity.cc
185
186 --LDADD = ../lib-src/libTOPCOM.a \
187 -- ../lib-src-reg/libCHECKREG.a \
188 +-LDADD = ../lib-src-reg/libCHECKREG.a \
189 +- ../lib-src/libTOPCOM.a \
190 - ../external/lib/libcddgmp.a \
191 - ../external/lib/libgmpxx.a \
192 - ../external/lib/libgmp.a
193 @@ -103,20 +123,23 @@ diff -ur a/src/Makefile.am b/src/Makefile.am
194 +AM_CPPFLAGS += $(CPPFLAGS)
195 AM_CPPFLAGS += -I$(includedir)
196
197 +
198 -AM_CPPFLAGS += -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
199 +-
200 +-AM_CXXFLAGS = -O2
201 +AM_CPPFLAGS += -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30 -lTOPCOM -lCHECKREG
202
203 --AM_CXXFLAGS = -O2
204 +AM_CXXFLAGS = $(CXXFLAGS) -L../lib-src-reg -L../lib-src -lTOPCOM -lCHECKREG
205 -diff -ur a/src-reg/Makefile.am b/src-reg/Makefile.am
206 ---- a/src-reg/Makefile.am 2020-02-15 12:44:55.165570550 +0100
207 -+++ b/src-reg/Makefile.am 2020-02-15 14:08:22.933773888 +0100
208 -@@ -2,20 +2,15 @@
209 -
210 - checkregularity_SOURCES = checkregularity.cc
211 +diff --git a/src/Makefile.am b/src/Makefile.am
212 +index ff7e574..63a76fc 100644
213 +--- a/src/Makefile.am
214 ++++ b/src/Makefile.am
215 +@@ -83,18 +83,14 @@ santos_triang_SOURCES = santos_triang.cc
216 + santos_dim4_triang_SOURCES = santos_dim4_triang.cc
217 + santos_22_triang_SOURCES = santos_22_triang.cc
218
219 --LDADD = ../lib-src-reg/libCHECKREG.a \
220 -- ../lib-src/libTOPCOM.a \
221 +-LDADD = ../lib-src/libTOPCOM.a \
222 +- ../lib-src-reg/libCHECKREG.a \
223 - ../external/lib/libcddgmp.a \
224 - ../external/lib/libgmpxx.a \
225 - ../external/lib/libgmp.a
226 @@ -130,17 +153,16 @@ diff -ur a/src-reg/Makefile.am b/src-reg/Makefile.am
227 +AM_CPPFLAGS += $(CPPFLAGS)
228 AM_CPPFLAGS += -I$(includedir)
229
230 -
231 -AM_CPPFLAGS += -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30
232 --
233 --AM_CXXFLAGS = -O2
234 +AM_CPPFLAGS += -DVERBOSE -DGMPRATIONAL -ftemplate-depth-30 -lTOPCOM -lCHECKREG
235
236 +-AM_CXXFLAGS = -O2
237 +AM_CXXFLAGS = $(CXXFLAGS) -L../lib-src-reg -L../lib-src -lTOPCOM -lCHECKREG
238 -diff -ur a/wrap-gmp-gmpxx/Makefile.am b/wrap-gmp-gmpxx/Makefile.am
239 ---- a/wrap-gmp-gmpxx/Makefile.am 2020-02-15 12:44:55.165570550 +0100
240 -+++ b/wrap-gmp-gmpxx/Makefile.am 2020-02-15 14:08:23.105774912 +0100
241 -@@ -3,6 +3,6 @@
242 +diff --git a/wrap-gmp-gmpxx/Makefile.am b/wrap-gmp-gmpxx/Makefile.am
243 +index b9ef8db..4c3f675 100644
244 +--- a/wrap-gmp-gmpxx/Makefile.am
245 ++++ b/wrap-gmp-gmpxx/Makefile.am
246 +@@ -3,6 +3,6 @@ Integer.h \
247 Rational.h
248
249 AM_CPPFLAGS = -I../external/include
250 @@ -149,3 +171,87 @@ diff -ur a/wrap-gmp-gmpxx/Makefile.am b/wrap-gmp-gmpxx/Makefile.am
251
252 -AM_CXXFLAGS = -O2
253 +AM_CXXFLAGS = $(CXXFLAGS)
254 +--
255 +2.35.1
256 +
257 +From 1980a3cba20ac549f488d7e00a01d3eee61485be Mon Sep 17 00:00:00 2001
258 +From: Michael Orlitzky <michael@××××××××.com>
259 +Date: Sat, 7 May 2022 16:14:57 -0400
260 +Subject: [PATCH 2/3] configure.ac: don't try to invoke csh to print an
261 + informational message.
262 +
263 +On systems that don't have csh, running "csh -c 'echo...'" will result
264 +in an error; for example,
265 +
266 + ./configure: line 4102: csh: command not found
267 +
268 +Autoconf already provides macros to print the status and results of
269 +various checks, so here we switch this particular invocation to make
270 +use of AC_MSG_CHECKING and AC_MSG_RESULT.
271 +
272 +While we're at it, the old-fashioned AC_CHECK_LIB was updated to use
273 +the newer AC_SEARCH_LIBS.
274 +---
275 + configure.ac | 6 +++++-
276 + 1 file changed, 5 insertions(+), 1 deletion(-)
277 +
278 +diff --git a/configure.ac b/configure.ac
279 +index a10fb97..0b2c0aa 100644
280 +--- a/configure.ac
281 ++++ b/configure.ac
282 +@@ -21,7 +21,11 @@ dnl AC_CHECK_LIB(stdc, main)
283 + dnl Replace `main' with a function in -lstdc++:
284 + dnl AC_CHECK_LIB(stdc++, main)
285 + dnl Check for soplex:
286 +-AC_CHECK_LIB(soplex, main, , csh -c 'echo soplex not found: --soplex will not work.')
287 ++AC_MSG_CHECKING([for soplex])
288 ++AC_SEARCH_LIBS([main],
289 ++ [soplex],
290 ++ [AC_MSG_RESULT([success])],
291 ++ [AC_MSG_RESULT([failed, --soplex will not work])])
292 +
293 + dnl Checks for header files.
294 + AC_HEADER_STDC
295 +--
296 +2.35.1
297 +
298 +From 041f20f5712262ab99bfdfe29e20355d5e4fbf5d Mon Sep 17 00:00:00 2001
299 +From: Michael Orlitzky <michael@××××××××.com>
300 +Date: Sat, 7 May 2022 16:19:50 -0400
301 +Subject: [PATCH 3/3] configure.ac: run autoupdate.
302 +
303 +Autoconf-2.7x emits a few warnings while processing configure.ac. This
304 +commit is the result of running "autoupdate" to fix them.
305 +---
306 + configure.ac | 9 +++------
307 + 1 file changed, 3 insertions(+), 6 deletions(-)
308 +
309 +diff --git a/configure.ac b/configure.ac
310 +index 0b2c0aa..cddaef6 100644
311 +--- a/configure.ac
312 ++++ b/configure.ac
313 +@@ -1,5 +1,5 @@
314 + dnl Process this file with autoconf to produce a configure script.
315 +-AC_INIT(TOPCOM, 0.17.8)
316 ++AC_INIT([TOPCOM],[0.17.8])
317 + AC_CONFIG_SRCDIR(.)
318 +
319 + dnl Init automake.
320 +@@ -27,12 +27,9 @@ AC_SEARCH_LIBS([main],
321 + [AC_MSG_RESULT([success])],
322 + [AC_MSG_RESULT([failed, --soplex will not work])])
323 +
324 +-dnl Checks for header files.
325 +-AC_HEADER_STDC
326 +
327 + dnl Checks for typedefs, structures, and compiler characteristics.
328 + AC_C_CONST
329 +
330 +-dnl Checks for library functions.
331 +-
332 +-AC_OUTPUT(wrap-gmp-gmpxx/Makefile lib-src/Makefile lib-src-reg/Makefile src/Makefile src-reg/Makefile examples/Makefile Makefile)
333 ++AC_CONFIG_FILES([wrap-gmp-gmpxx/Makefile lib-src/Makefile lib-src-reg/Makefile src/Makefile src-reg/Makefile examples/Makefile Makefile])
334 ++AC_OUTPUT
335 +--
336 +2.35.1
337 +
338
339 diff --git a/sci-mathematics/topcom/topcom-0.17.8-r1.ebuild b/sci-mathematics/topcom/topcom-0.17.8-r2.ebuild
340 similarity index 74%
341 rename from sci-mathematics/topcom/topcom-0.17.8-r1.ebuild
342 rename to sci-mathematics/topcom/topcom-0.17.8-r2.ebuild
343 index d0558905f947..1e0b4b30d0bd 100644
344 --- a/sci-mathematics/topcom/topcom-0.17.8-r1.ebuild
345 +++ b/sci-mathematics/topcom/topcom-0.17.8-r2.ebuild
346 @@ -1,15 +1,18 @@
347 -# Copyright 1999-2021 Gentoo Authors
348 +# Copyright 1999-2022 Gentoo Authors
349 # Distributed under the terms of the GNU General Public License v2
350
351 -EAPI="7"
352 +EAPI=8
353
354 inherit autotools flag-o-matic
355
356 +MY_PV=$(ver_rs 0-2 _)
357 +MY_P="${PN^^}-${MY_PV}"
358 +
359 DESCRIPTION="Computing Triangulations Of Point Configurations and Oriented Matroids"
360 -HOMEPAGE="http://www.rambau.wm.uni-bayreuth.de/TOPCOM/"
361 +HOMEPAGE="https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM/index.html"
362 SRC_URI="
363 - http://www.rambau.wm.uni-bayreuth.de/Software/TOPCOM-${PV}.tar.gz
364 - http://www.rambau.wm.uni-bayreuth.de/TOPCOM/TOPCOM-manual.html
365 + https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM-Downloads/${MY_P}.tgz
366 + https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM-Manual/index.html -> TOPCOM-manual.html
367 "
368 KEYWORDS="~amd64 ~riscv ~x86"
369 SLOT="0"
370 @@ -21,7 +24,6 @@ DEPEND="
371 >=sci-libs/cddlib-094f
372 "
373 RDEPEND="${DEPEND}"
374 -BDEPEND="app-shells/tcsh"
375
376 PATCHES=( "${FILESDIR}/${P}-buildsystem.patch" )