Skip to content
Snippets Groups Projects
Commit 5780eadf authored by Jimmy Tang's avatar Jimmy Tang Committed by Adam J. Stewart
Browse files

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
parent a985dc85
Branches
Tags
No related merge requests found
...@@ -38,7 +38,9 @@ class Kaldi(Package): # Does not use Autotools ...@@ -38,7 +38,9 @@ class Kaldi(Package): # Does not use Autotools
url = "https://github.com/kaldi-asr/kaldi/archive/master.zip" url = "https://github.com/kaldi-asr/kaldi/archive/master.zip"
version('master', git='https://github.com/kaldi-asr/kaldi.git') 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') commit='c024e8aa0a727bf76c91a318f76a1f8b0b59249e')
variant('shared', default=True, variant('shared', default=True,
...@@ -53,18 +55,16 @@ class Kaldi(Package): # Does not use Autotools ...@@ -53,18 +55,16 @@ class Kaldi(Package): # Does not use Autotools
depends_on('sph2pipe', type='run') depends_on('sph2pipe', type='run')
depends_on('sctk', type='run') depends_on('sctk', type='run')
depends_on('speex', 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') 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): def install(self, spec, prefix):
configure_args = ['--fst-root=' + spec['openfst'].prefix] configure_args = ['--fst-root=' + spec['openfst'].prefix]
configure_args.append('--fst-version=' + str(spec['openfst'].version))
if spec.satisfies('c024e8'): configure_args.append('--speex-root=' + spec['speex'].prefix)
configure_args.append('--speex-root=' + spec['speex'].prefix)
configure_args.append('--fst-version=' +
str(spec['openfst'].version))
if '~shared' in spec: if '~shared' in spec:
configure_args.append('--static') configure_args.append('--static')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment