summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/kaldi/package.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/kaldi/package.py b/var/spack/repos/builtin/packages/kaldi/package.py
index bc88598cda..461929b228 100644
--- a/var/spack/repos/builtin/packages/kaldi/package.py
+++ b/var/spack/repos/builtin/packages/kaldi/package.py
@@ -76,16 +76,22 @@ class Kaldi(Package): # Does not use Autotools
mkdirp(prefix.bin)
for root, dirs, files in os.walk('.'):
for name in files:
- if name.endswith(".so") or name.endswith(".cc") \
+ if name.endswith("." + dso_suffix) \
+ or name.endswith(".cc") \
or name.endswith(".pptx"):
continue
- if "configure" is name:
+ if "configure" == name:
continue
if os.access(join(root, name), os.X_OK):
install(join(root, name), prefix.bin)
mkdir(prefix.lib)
- install_tree('lib', prefix.lib)
+ for root, dirs, files in os.walk('lib'):
+ for name in files:
+ if name.endswith("." + dso_suffix):
+ fpath = join(root, name)
+ src = os.readlink(fpath)
+ install(src, prefix.lib)
for root, dirs, files in os.walk('.'):
for name in files: