install GKlib headers along with METIS

This commit is contained in:
Denis Davydov
2016-03-24 20:23:13 +01:00
parent 38ea75e8ca
commit 7fb463abb9
2 changed files with 33 additions and 2 deletions

View File

@@ -24,7 +24,7 @@
##############################################################################
from spack import *
import glob
class Metis(Package):
"""
@@ -49,6 +49,8 @@ class Metis(Package):
depends_on('gdb', when='+gdb')
patch('install_gklib_defs_rename.patch')
def install(self, spec, prefix):
options = []
@@ -80,4 +82,11 @@ def install(self, spec, prefix):
with working_dir(build_directory, create=True):
cmake(source_directory, *options)
make()
make("install")
make("install")
# install GKlib headers, which will be needed for ParMETIS
GKlib_dist = join_path(prefix.include,'GKlib')
mkdirp(GKlib_dist)
fs = glob.glob(join_path(source_directory,'GKlib',"*.h"))
for f in fs:
install(f, GKlib_dist)