diff options
author | band-a-prend <torokhov-s-a@yandex.ru> | 2018-09-29 23:29:26 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-11-28 11:30:09 +0100 |
commit | b7177d1c59ecb2b173ae8222ccaff546d67c97db (patch) | |
tree | df4a9b10e7bf7973f739fa8c4389a10b81004656 /sci-libs/cantera/files | |
parent | profiles/use.mask: Revert removing mumble mask (diff) | |
download | gentoo-b7177d1c59ecb2b173ae8222ccaff546d67c97db.tar.gz gentoo-b7177d1c59ecb2b173ae8222ccaff546d67c97db.tar.bz2 gentoo-b7177d1c59ecb2b173ae8222ccaff546d67c97db.zip |
sci-libs/cantera: New package
This commit add new package 'sci-libs/cantera' of version 2.4.0
(cantera-2.4.0.ebuild):
Description:
Cantera is an open-source suite of object-oriented software tools
for problems involving chemical kinetics, thermodynamics,
and/or transport processes.
Homepage and documentation: http://cantera.org
GitHub page: https://github.com/Cantera/cantera
Closes: https://bugs.gentoo.org/200425
Signed-off-by: Sergey Torokhov <torokhov_s_a@mail.ru>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sci-libs/cantera/files')
-rw-r--r-- | sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch b/sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch new file mode 100644 index 000000000000..a16f5670b550 --- /dev/null +++ b/sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch @@ -0,0 +1,28 @@ +diff -Naur old/SConstruct new/SConstruct +--- old/SConstruct 2018-08-24 16:24:45.000000000 +0300 ++++ new/SConstruct 2018-11-05 03:07:07.000000000 +0300 +@@ -327,6 +327,10 @@ + 'prefix', + 'Set this to the directory where Cantera should be installed.', + defaults.prefix, PathVariable.PathAccept), ++ PathVariable( ++ 'libdirname', ++ 'Set this to the directory where Cantera libraries should be installed.', ++ '', PathVariable.PathAccept), + EnumVariable( + 'python_package', + """If you plan to work in Python, then you need the ``full`` Cantera Python +@@ -1465,10 +1469,9 @@ + # *** Set additional configuration variables *** + # ********************************************** + +-# Some distributions (e.g. Fedora/RHEL) use 'lib64' instead of 'lib' on 64-bit systems +-if any(name.startswith('/usr/lib64/python') for name in sys.path): +- env['libdirname'] = 'lib64' +-else: ++# Some distributions use 'lib64' (e.g. Fedora/RHEL) or something else instead of 'lib' on 64-bit systems. ++# If user didn't set 'libdirname' configuration variable set it to default value 'lib' ++if not env['libdirname']: + env['libdirname'] = 'lib' + + # On Debian-based systems, need to special-case installation to |