su2: add v8.0.0, v8.0.1 (#43662)

This commit is contained in:
kjrstory 2024-04-15 22:25:16 +09:00 committed by GitHub
parent 763279cd61
commit 5b8b6e492d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View file

@ -18,6 +18,8 @@ class Su2(MesonPackage):
license("BSD-3-Clause")
version("8.0.1", commit="8ef4b1be045122b2fdb485bfb5fe4eecd1bc4246", submodules=True)
version("8.0.0", commit="1fe59817e984f67ff55146d90d0059e27b772891", submodules=True)
version("7.5.1", commit="09ba9e3a9605c02d38290e34f42aa6982cb4dd05", submodules=True)
version("7.5.0", commit="8e8ea59fe6225c8ec4e94d0e0a4b6690ea4294e5", submodules=True)
version("7.4.0", commit="745e5d922c63c8ec6963b31808c20df2e3bfd075", submodules=True)
@ -76,6 +78,9 @@ class Su2(MesonPackage):
# This fix is considered meaningless and will be removed in the next version(@7.6:) of SU2.
patch("meson_version.patch", when="@7.4.0:7.5.1")
# Remove the timestamp check of preconfigure.py for version(@8:)
patch("remove_preconfigure_timestamp_check.patch", when="@8.0.0:")
def patch(self):
if self.spec.satisfies("+autodiff") or self.spec.satisfies("+directdiff"):
filter_file(

View file

@ -0,0 +1,13 @@
--- a/meson.build 2022-12-20 21:08:29.000000000 +0900
+++ b/meson.build 2023-05-19 03:24:08.870966665 +0900
@@ -6,10 +6,6 @@
'c_std=c99',
'cpp_std=c++11'])
-fsmod = import('fs')
-if not fsmod.exists('su2preconfig.timestamp')
- error('SU2 must be (pre-)configured with the extended Meson script (./meson.py) or with the ./preconfigure.py script in the SU2 root directory.')
-endif
pymod = import('python')
python = pymod.find_installation()