summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJimmy Tang <jcftang@gmail.com>2018-05-28 19:45:56 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-05-28 13:45:56 -0500
commit627df0bcc105cea503a44cc1d304394c78bdfbb8 (patch)
tree1aaec19d32f797be08c1772ce51862466734bb83 /var
parent2be65a86189d63f8742f3065a385a904c429e45b (diff)
downloadspack-627df0bcc105cea503a44cc1d304394c78bdfbb8.tar.gz
spack-627df0bcc105cea503a44cc1d304394c78bdfbb8.tar.bz2
spack-627df0bcc105cea503a44cc1d304394c78bdfbb8.tar.xz
spack-627df0bcc105cea503a44cc1d304394c78bdfbb8.zip
Add far variant to openfst package (#8299)
* Add far variant * Append instead of extend
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openfst/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openfst/package.py b/var/spack/repos/builtin/packages/openfst/package.py
index 13f08820c6..e98fa4f785 100644
--- a/var/spack/repos/builtin/packages/openfst/package.py
+++ b/var/spack/repos/builtin/packages/openfst/package.py
@@ -50,7 +50,18 @@ class Openfst(AutotoolsPackage):
conflicts('%intel@16:')
conflicts('%gcc@6:')
+ variant('far', default=False, description="Enable FAR support")
+
# Patch openfst-1.4.1 for kaldi@c024e8
# See https://github.com/kaldi-asr/kaldi/blob/c024e8aa0a727bf76c91a318f76a1f8b0b59249e/tools/Makefile#L82-L88
patch('openfst-1.4.1.patch', when='@1.4.1-patch')
patch('openfst_gcc41up.patch', when='@1.4.1-patch')
+
+ def configure_args(self):
+ args = []
+ spec = self.spec
+ if '+far' in spec:
+ args.append('--enable-far')
+ else:
+ args.append('--disable-far')
+ return args