From: band-a-prend Date: Thu, 26 Dec 2019 15:01:30 +0000 (+0300) Subject: sci-libs/cantera: add support sci-libs/sundials-5.0, dev-lang/python-3.8 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1b62211cc285ae25d4ed511b8cef5901c7f07941;p=gentoo.git sci-libs/cantera: add support sci-libs/sundials-5.0, dev-lang/python-3.8 Simple fix for Sundials-5.0 and Python-3.8 compatibility. The Sundials-5.0 has the same API as Sundials-4.x for CVODES function. Signed-off-by: Sergey Torokhov Closes: https://github.com/gentoo/gentoo/pull/14126 Signed-off-by: Joonas Niilola --- diff --git a/sci-libs/cantera/cantera-2.4.0-r2.ebuild b/sci-libs/cantera/cantera-2.4.0-r2.ebuild index 57b648726246..79b1572e51c8 100644 --- a/sci-libs/cantera/cantera-2.4.0-r2.ebuild +++ b/sci-libs/cantera/cantera-2.4.0-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) FORTRAN_NEEDED=fortran FORTRAN_STANDARD=90 @@ -30,7 +30,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','3.2'): -+ if env['sundials_version'] not in ('2.4','2.5','2.6','2.7','3.0','3.1','3.2','4.0','4.1'): ++ if env['sundials_version'] not in ('2.4','2.5','2.6','2.7','3.0','3.1','3.2','4.0','4.1','5.0'): 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)