metis/parmetis/boost/oce/scalapack: correct install_name on Darwin via a global function.

This commit is contained in:
Denis Davydov
2016-03-27 08:59:25 +02:00
parent 42ec822379
commit 7eca1284c8
6 changed files with 76 additions and 27 deletions

View File

@@ -24,7 +24,7 @@
##############################################################################
from spack import *
import glob
import glob,sys
class Metis(Package):
"""
@@ -90,3 +90,7 @@ def install(self, spec, prefix):
fs = glob.glob(join_path(source_directory,'GKlib',"*.h"))
for f in fs:
install(f, GKlib_dist)
# The shared library is not installed correctly on Darwin; correct this
if (sys.platform == 'darwin') and ('+shared' in spec):
fix_darwin_install_name(prefix.lib)