From a42c6b73ab2089813e77380fe5f5dce4b665eacc Mon Sep 17 00:00:00 2001 From: band-a-prend Date: Sat, 22 Jun 2019 01:15:41 +0300 Subject: [PATCH] sci-libs/cantera: 2.4.0-r1. Enable build with sci-libs/sundials-3.2.x MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch moves early applied 'sed' patches from src_prepare() to external patch-file and allows to build Cantera 2.4.0 with sci-libs/sundials-3.2.x since this version of Sundials is compatible with Sundials 3.1 and doesn't require to rebuild Cantera after it's upgrade from Sundials 3.1 to Sundials 3.2. It was tested that Cantera successfuly build with Sundials-3.2.1 (that not in portage tree yet) and internal tests passed after "ebuild compile" with Sundials 3.1.2 and "ebuild test" phase after intallation of the Sundials 3.2.1 into system. Note that Cantera 2.4.0 isn't compatible with Sundials 4.y branch so there is a restriction for RDEPEND sci-libs/sundials-4.0.0 Signed-off-by: Sergey Torokhov Signed-off-by: Michał Górny --- sci-libs/cantera/cantera-2.4.0-r1.ebuild | 15 +++------ .../cantera/files/cantera_2.4.0_env.patch | 33 +++++++++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 sci-libs/cantera/files/cantera_2.4.0_env.patch diff --git a/sci-libs/cantera/cantera-2.4.0-r1.ebuild b/sci-libs/cantera/cantera-2.4.0-r1.ebuild index 235d20b70bfe..707f5670106b 100644 --- a/sci-libs/cantera/cantera-2.4.0-r1.ebuild +++ b/sci-libs/cantera/cantera-2.4.0-r1.ebuild @@ -29,7 +29,7 @@ RDEPEND=" python? ( dev-python/numpy[${PYTHON_USEDEP}] ) - 2.4 + env['sundials_version'] = '.'.join(sundials_version.split('.')[:2]) +- if env['sundials_version'] not in ('2.4','2.5','2.6','2.7','3.0','3.1'): ++ if env['sundials_version'] not in ('2.4','2.5','2.6','2.7','3.0','3.1','3.2'): + print("""ERROR: Sundials version %r is not supported.""" % env['sundials_version']) + sys.exit(1) + print("""INFO: Using system installation of Sundials version %s.""" % sundials_version) +diff -Nur old/cantera-2.4.0/test_problems/SConscript new/cantera-2.4.0/test_problems/SConscript +--- old/test_problems/SConscript 2018-08-24 16:24:45.000000000 +0300 ++++ new/test_problems/SConscript 2019-06-22 00:13:29.000000000 +0300 +@@ -282,7 +282,7 @@ + CompileAndTest('VPsilane_test', 'VPsilane_test', 'VPsilane_test', 'output_blessed.txt') + + CompileAndTest('clib', 'clib_test', 'clib_test', 'output_blessed.txt', +- extensions=['^clib_test.c'], libs=['cantera_shared']) ++ extensions=['^clib_test.c']) + + # Force explicitly-named tests to run even if SCons thinks they're up to date + for command in COMMAND_LINE_TARGETS: -- 2.26.2