summaryrefslogtreecommitdiff
path: root/sci-libs/cantera/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
commitde49812990871e1705b64051c35161d5e6400269 (patch)
tree5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /sci-libs/cantera/files
parent536c3711867ec947c1738f2c4b96f22e4863322d (diff)
gentoo resync : 24.12.2018
Diffstat (limited to 'sci-libs/cantera/files')
-rw-r--r--sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch28
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