summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Tang <jcftang@gmail.com>2018-07-11 18:38:06 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-07-11 12:38:06 -0500
commit5780eadf646e23ae41df7e564f8920ae8dc9756e (patch)
tree157c4996afd029260b1e6521a9cda928bf52d6c0
parenta985dc859c59cf23c7709847ed34937b0be6aa7a (diff)
downloadspack-5780eadf646e23ae41df7e564f8920ae8dc9756e.tar.gz
spack-5780eadf646e23ae41df7e564f8920ae8dc9756e.tar.bz2
spack-5780eadf646e23ae41df7e564f8920ae8dc9756e.tar.xz
spack-5780eadf646e23ae41df7e564f8920ae8dc9756e.zip
Update kaldi (#8682)
* Update kaldi always use the --fst-version otherwise it does the wrong thing with selecting the fst version. also enable speex by default * Give version a more meaningful name * Update older version with a date string instead
-rw-r--r--var/spack/repos/builtin/packages/kaldi/package.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/kaldi/package.py b/var/spack/repos/builtin/packages/kaldi/package.py
index 229b6a1939..376aebaa94 100644
--- a/var/spack/repos/builtin/packages/kaldi/package.py
+++ b/var/spack/repos/builtin/packages/kaldi/package.py
@@ -38,7 +38,9 @@ class Kaldi(Package): # Does not use Autotools
url = "https://github.com/kaldi-asr/kaldi/archive/master.zip"
version('master', git='https://github.com/kaldi-asr/kaldi.git')
- version('c024e8', git='https://github.com/kaldi-asr/kaldi.git',
+ version('2018-07-11', git='https://github.com/kaldi-asr/kaldi.git',
+ commit='6f2140b032b0108bc313eefdca65151289642773')
+ version('2015-10-07', git='https://github.com/kaldi-asr/kaldi.git',
commit='c024e8aa0a727bf76c91a318f76a1f8b0b59249e')
variant('shared', default=True,
@@ -53,18 +55,16 @@ class Kaldi(Package): # Does not use Autotools
depends_on('sph2pipe', type='run')
depends_on('sctk', type='run')
depends_on('speex', type='run')
- depends_on('openfst@1.4.1-patch', when='@c024e8')
+ depends_on('openfst@1.4.1-patch', when='@2015-10-07')
+ depends_on('openfst@1.6.0:', when='@2018-07-11')
depends_on('openfst')
- patch('openfst-1.4.1.patch', when='@c024e8')
+ patch('openfst-1.4.1.patch', when='@2015-10-07')
def install(self, spec, prefix):
configure_args = ['--fst-root=' + spec['openfst'].prefix]
-
- if spec.satisfies('c024e8'):
- configure_args.append('--speex-root=' + spec['speex'].prefix)
- configure_args.append('--fst-version=' +
- str(spec['openfst'].version))
+ configure_args.append('--fst-version=' + str(spec['openfst'].version))
+ configure_args.append('--speex-root=' + spec['speex'].prefix)
if '~shared' in spec:
configure_args.append('--static')