Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cantera/files/, sci-libs/cantera/
Date: Mon, 30 Jan 2023 10:35:05
Message-Id: 1675072797.f7863f22616f8bc02740874a95c084187444b10d.andrewammerlaan@gentoo
1 commit: f7863f22616f8bc02740874a95c084187444b10d
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sat Jan 14 22:07:50 2023 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 30 09:59:57 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7863f22
7
8 sci-libs/cantera: drop old 2.5.1-r4
9
10 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 sci-libs/cantera/Manifest | 1 -
14 sci-libs/cantera/cantera-2.5.1-r4.ebuild | 145 -------------------------
15 sci-libs/cantera/files/cantera-2.5.1_env.patch | 130 ----------------------
16 3 files changed, 276 deletions(-)
17
18 diff --git a/sci-libs/cantera/Manifest b/sci-libs/cantera/Manifest
19 index beccad729392..6b5da97bd886 100644
20 --- a/sci-libs/cantera/Manifest
21 +++ b/sci-libs/cantera/Manifest
22 @@ -1,2 +1 @@
23 -DIST cantera-2.5.1.tar.gz 2492422 BLAKE2B b48c5d12fc2b69d309759afd20b55dc2533c23ccba840109cf7a85c4ebb8306eb48d9f007914184a9d409f7bf296814fe09e6e62a29cf8384edd954fdff2af4e SHA512 8cd65f6b86b3009f22ec243cb7cb833e26919c4925fd15fba8fb98aad2180d8c0fe7550e13efeb7cce55abab06d9400230d59c9c43b4d3be6b0575b1164a56bc
24 DIST cantera-2.6.0.tar.gz 2586243 BLAKE2B 3562dc3641c70cdbd5e07062ecee56c0658b098c20bb477c3e741731db01e38fccf624e6769377420b01dd4bac72a0608cf226cce40ac12f13e71081090e06bc SHA512 74e12c89af38236bcc064034f74edcc690895151a9e453e728d130b83f5f527e675750c68a3fe36eea3c6aec6969685aa8828ae740a2e27b5df72a8ccc4d2856
25
26 diff --git a/sci-libs/cantera/cantera-2.5.1-r4.ebuild b/sci-libs/cantera/cantera-2.5.1-r4.ebuild
27 deleted file mode 100644
28 index 9d87e7aa5b6f..000000000000
29 --- a/sci-libs/cantera/cantera-2.5.1-r4.ebuild
30 +++ /dev/null
31 @@ -1,145 +0,0 @@
32 -# Copyright 1999-2023 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -PYTHON_COMPAT=( python3_{9..10} )
38 -
39 -FORTRAN_NEEDED=fortran
40 -FORTRAN_STANDARD="77 90"
41 -
42 -inherit fortran-2 python-single-r1 scons-utils toolchain-funcs
43 -
44 -DESCRIPTION="Object-oriented tool suite for chemical kinetics, thermodynamics, and transport"
45 -HOMEPAGE="https://www.cantera.org"
46 -SRC_URI="https://github.com/Cantera/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 -
48 -LICENSE="BSD"
49 -SLOT="0"
50 -KEYWORDS="amd64 ~x86"
51 -IUSE="+cti fortran lapack +python test"
52 -RESTRICT="!test? ( test )"
53 -
54 -REQUIRED_USE="
55 - python? ( cti )
56 - ${PYTHON_REQUIRED_USE}
57 -"
58 -
59 -RDEPEND="
60 - ${PYTHON_DEPS}
61 - lapack? ( virtual/lapack )
62 - cti? (
63 - $(python_gen_cond_dep '
64 - dev-python/ruamel-yaml[${PYTHON_USEDEP}]
65 - ')
66 - )
67 - python? (
68 - $(python_gen_cond_dep '
69 - dev-python/numpy[${PYTHON_USEDEP}]
70 - ')
71 - )
72 - dev-cpp/yaml-cpp
73 - !lapack? ( <sci-libs/sundials-5.9.0:0= )
74 - lapack? ( <sci-libs/sundials-5.3.0:0=[lapack] )
75 -"
76 -
77 -DEPEND="
78 - ${RDEPEND}
79 - dev-cpp/eigen:3
80 - dev-libs/boost
81 - dev-libs/libfmt
82 - python? (
83 - $(python_gen_cond_dep '
84 - dev-python/cython[${PYTHON_USEDEP}]
85 - ')
86 - )
87 - test? (
88 - >=dev-cpp/gtest-1.8.0
89 - python? (
90 - $(python_gen_cond_dep '
91 - dev-python/h5py[${PYTHON_USEDEP}]
92 - dev-python/pandas[${PYTHON_USEDEP}]
93 - ')
94 - )
95 - )
96 -"
97 -
98 -PATCHES=( "${FILESDIR}/${P}_env.patch" )
99 -
100 -pkg_setup() {
101 - fortran-2_pkg_setup
102 - python-single-r1_pkg_setup
103 -}
104 -
105 -## Full list of configuration options of Cantera is presented here:
106 -## http://cantera.org/docs/sphinx/html/compiling/config-options.html
107 -src_configure() {
108 - scons_vars=(
109 - AR="$(tc-getAR)"
110 - CC="$(tc-getCC)"
111 - CXX="$(tc-getCXX)"
112 - cc_flags="${CXXFLAGS}"
113 - cxx_flags="-std=c++11"
114 - debug="no"
115 - FORTRAN="$(tc-getFC)"
116 - FORTRANFLAGS="${FCFLAGS}"
117 - optimize_flags="-Wno-inline"
118 - renamed_shared_libraries="no"
119 - use_pch="no"
120 - ## In some cases other order can break the detection of right location of Boost: ##
121 - system_fmt="y"
122 - system_sundials="y"
123 - system_eigen="y"
124 - system_yamlcpp="y"
125 - env_vars="all"
126 - extra_inc_dirs="/usr/include/eigen3"
127 - )
128 - use lapack && scons_vars+=( blas_lapack_libs="lapack,blas" )
129 - use test || scons_vars+=( googletest="none" )
130 -
131 - scons_targets=(
132 - f90_interface=$(usex fortran y n)
133 - )
134 -
135 - if use cti ; then
136 - local scons_python=$(usex python full minimal)
137 - scons_targets+=( python_package="${scons_python}" python_cmd="${EPYTHON}" )
138 - else
139 - scons_targets+=( python_package="none" )
140 - fi
141 -}
142 -
143 -src_compile() {
144 - escons build "${scons_vars[@]}" "${scons_targets[@]}" prefix="/usr"
145 -}
146 -
147 -src_test() {
148 - escons test
149 -}
150 -
151 -src_install() {
152 - escons install stage_dir="${D}" libdirname="$(get_libdir)" python_prefix="$(python_get_sitedir)"
153 - if ! use cti ; then
154 - rm -r "${D}/usr/share/man" || die "Can't remove man files."
155 - else
156 - # Run the byte-compile of modules
157 - python_optimize "${D}$(python_get_sitedir)/${PN}"
158 - fi
159 -
160 - # User could remove this line if require static libs for development purpose
161 - find "${ED}" -name '*.a' -delete || die
162 -}
163 -
164 -pkg_postinst() {
165 - if use cti && ! use python ; then
166 - elog "Cantera was build without 'python' use-flag therefore the CTI tools 'ck2cti' and 'ck2yaml"
167 - elog "will convert Chemkin files to Cantera format without verification of kinetic mechanism."
168 - fi
169 -
170 - local post_msg=$(usex fortran "and Fortran " "")
171 - elog "C++ ${post_msg}samples are installed to '/usr/share/${PN}/samples/' directory."
172 -
173 - if use python ; then
174 - elog "Python examples are installed to '$(python_get_sitedir)/${PN}/examples/' directories."
175 - fi
176 -}
177
178 diff --git a/sci-libs/cantera/files/cantera-2.5.1_env.patch b/sci-libs/cantera/files/cantera-2.5.1_env.patch
179 deleted file mode 100644
180 index 77004803b127..000000000000
181 --- a/sci-libs/cantera/files/cantera-2.5.1_env.patch
182 +++ /dev/null
183 @@ -1,130 +0,0 @@
184 -diff -Naur old/SConstruct new/SConstruct
185 ---- old/SConstruct 2021-03-21 01:18:43.000000000 +0300
186 -+++ new/SConstruct 2021-03-21 01:27:06.000000000 +0300
187 -@@ -193,7 +193,7 @@
188 - toolchain = ['default']
189 -
190 - env = Environment(tools=toolchain+['textfile', 'subst', 'recursiveInstall', 'wix', 'gch'],
191 -- ENV={'PATH': os.environ['PATH']},
192 -+ ENV={'PATH': os.environ['PATH'], 'CCACHE_DIR': os.environ.get('CCACHE_DIR','')},
193 - toolchain=toolchain,
194 - **extraEnvArgs)
195 -
196 -@@ -239,6 +239,9 @@
197 - sys.exit(1)
198 -
199 - compiler_options = [
200 -+ ('AR',
201 -+ """The archiver to use.""",
202 -+ env['AR']),
203 - ('CXX',
204 - """The C++ compiler to use.""",
205 - env['CXX']),
206 -@@ -734,10 +734,7 @@
207 - env['cantera_pure_version'] = re.match(r'(\d+\.\d+\.\d+)', env['cantera_version']).group(0)
208 - env['cantera_short_version'] = re.match(r'(\d+\.\d+)', env['cantera_version']).group(0)
209 -
210 --try:
211 -- env['git_commit'] = getCommandOutput('git', 'rev-parse', '--short', 'HEAD')
212 --except Exception:
213 -- env['git_commit'] = 'unknown'
214 -+env['git_commit'] = 'unknown'
215 -
216 - # Print values of all build options:
217 - print("Configuration variables read from 'cantera.conf' and command line:")
218 -@@ -1149,10 +1149,24 @@
219 - if retcode == 0:
220 - config_error("Failed to determine Sundials BLAS/LAPACK.")
221 - env['has_sundials_lapack'] = int(has_sundials_lapack.strip())
222 -- else:
223 -- # In Sundials 2.6, SUNDIALS_BLAS_LAPACK is either defined or undefined
224 -+ elif sundials_ver < parse_version('5.5'):
225 -+ # In Sundials 2.6-5.5, SUNDIALS_BLAS_LAPACK is either defined or undefined
226 - env['has_sundials_lapack'] = conf.CheckDeclaration('SUNDIALS_BLAS_LAPACK',
227 - '#include "sundials/sundials_config.h"', 'C++')
228 -+ else:
229 -+ # In Sundials 5.5 and higher, two defines are included specific to the
230 -+ # SUNLINSOL packages indicating whether SUNDIALS has been built with LAPACK
231 -+ lapackband = conf.CheckDeclaration(
232 -+ "SUNDIALS_SUNLINSOL_LAPACKBAND",
233 -+ '#include "sundials/sundials_config.h"',
234 -+ "C++",
235 -+ )
236 -+ lapackdense = conf.CheckDeclaration(
237 -+ "SUNDIALS_SUNLINSOL_LAPACKDENSE",
238 -+ '#include "sundials/sundials_config.h"',
239 -+ "C++",
240 -+ )
241 -+ env["has_sundials_lapack"] = lapackband and lapackdense
242 -
243 - # In the case where a user is trying to link Cantera to an external BLAS/LAPACK
244 - # library, but Sundials was configured without this support, print a Warning.
245 -diff -Naur old/interfaces/cython/SConscript new/interfaces/cython/SConscript
246 ---- old/interfaces/cython/SConscript 2021-03-21 01:18:43.000000000 +0300
247 -+++ new/interfaces/cython/SConscript 2021-03-21 01:59:29.000000000 +0300
248 -@@ -108,8 +108,7 @@
249 - elif localenv['libdirname'] != 'lib':
250 - # 64-bit RHEL / Fedora etc. or e.g. x32 Gentoo profile
251 - extra = localenv.subst(
252 -- ' --prefix=${{python_prefix}}'
253 -- ' --install-lib=${{python_prefix}}/${{libdirname}}/python{}/site-packages'.format(py_version))
254 -+ ' --prefix=${stage_dir}${prefix} --install-lib=${python_prefix}')
255 - else:
256 - extra = '--user'
257 - localenv.AppendENVPath(
258 -diff -Naur old/interfaces/python_minimal/SConscript new/interfaces/python_minimal/SConscript
259 ---- old/interfaces/python_minimal/SConscript 2021-02-13 00:57:15.000000000 +0300
260 -+++ new/interfaces/python_minimal/SConscript 2021-04-09 23:26:28.000000000 +0300
261 -@@ -8,7 +8,7 @@
262 - make_setup = build(localenv.SubstFile('setup.py', 'setup.py.in'))
263 -
264 - # copy scripts from the full Cython module
265 --for script in ['ctml_writer', 'ck2cti']:
266 -+for script in ['ctml_writer', 'ck2cti', 'ck2yaml', 'cti2yaml', 'ctml2yaml']:
267 - # The actual script
268 - s = build(env.Command('cantera/{}.py'.format(script),
269 - '#interfaces/cython/cantera/{}.py'.format(script),
270 -@@ -38,8 +38,7 @@
271 - elif localenv['libdirname'] != 'lib':
272 - # 64-bit RHEL / Fedora etc. or e.g. x32 Gentoo profile
273 - extra = localenv.subst(
274 -- ' --prefix=${{python_prefix}}'
275 -- ' --install-lib=${{python_prefix}}/${{libdirname}}/python{}/site-packages'.format(py_version))
276 -+ ' --prefix=${stage_dir}${prefix} --install-lib=${python_prefix}')
277 - else:
278 - extra = '--user'
279 - localenv.AppendENVPath(
280 -diff -Naur old/interfaces/python_minimal/cantera/__init__.py new/interfaces/python_minimal/cantera/__init__.py
281 ---- old/interfaces/python_minimal/cantera/__init__.py 2021-02-13 00:57:15.000000000 +0300
282 -+++ new/interfaces/python_minimal/cantera/__init__.py 2021-04-10 00:07:38.000000000 +0300
283 -@@ -1,2 +1,5 @@
284 - from . import ck2cti
285 - from . import ctml_writer
286 -+from . import ck2yaml
287 -+from . import cti2yaml
288 -+from . import ctml2yaml
289 -diff -Naur old/interfaces/python_minimal/setup.py.in new/interfaces/python_minimal/setup.py.in
290 ---- old/interfaces/python_minimal/setup.py.in 2021-02-13 00:57:15.000000000 +0300
291 -+++ new/interfaces/python_minimal/setup.py.in 2021-04-09 23:32:09.000000000 +0300
292 -@@ -12,6 +12,9 @@
293 - 'console_scripts': [
294 - 'ck2cti=cantera.ck2cti:script_entry_point',
295 - 'ctml_writer=cantera.ctml_writer:main',
296 -+ 'ck2yaml=cantera.ck2yaml:script_entry_point',
297 -+ 'cti2yaml=cantera.cti2yaml:main',
298 -+ 'ctml2yaml=cantera.ctml2yaml:main',
299 - ],
300 - },
301 - )
302 -diff -Naur old/test_problems/SConscript new/test_problems/SConscript
303 ---- old/test_problems/SConscript 2021-03-21 01:18:43.000000000 +0300
304 -+++ new/test_problems/SConscript 2021-03-21 01:42:19.000000000 +0300
305 -@@ -222,7 +222,7 @@
306 - CompileAndTest('VPsilane_test')
307 -
308 - CompileAndTest('clib', 'clib_test', 'clib_test',
309 -- extensions=['^clib_test.c'], libs=['cantera_shared'])
310 -+ extensions=['^clib_test.c'])
311 -
312 - # C++ Samples
313 - Test('cxx-bvp', 'cxx_samples', '#build/samples/cxx/bvp/blasius', None,