summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author健美猫 <weijianwen@gmail.com>2017-03-21 22:53:58 +0800
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-21 09:53:58 -0500
commitbabeb32c6de84c64179e4d279b7fbec801486849 (patch)
tree49be963adb8be1d0c973ce604cffcce543b29e15
parent75c6c9f1ee047ae1db6fe28a4bb49ac6a94ee20c (diff)
downloadspack-babeb32c6de84c64179e4d279b7fbec801486849.tar.gz
spack-babeb32c6de84c64179e4d279b7fbec801486849.tar.bz2
spack-babeb32c6de84c64179e4d279b7fbec801486849.tar.xz
spack-babeb32c6de84c64179e4d279b7fbec801486849.zip
Add package openfst. (#3324)
-rw-r--r--var/spack/repos/builtin/packages/openfst/package.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openfst/package.py b/var/spack/repos/builtin/packages/openfst/package.py
new file mode 100644
index 0000000000..e96575798b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openfst/package.py
@@ -0,0 +1,54 @@
+##############################################################################
+# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/llnl/spack
+# Please also see the LICENSE file for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class Openfst(AutotoolsPackage):
+ """OpenFst is a library for constructing, combining, optimizing,
+ and searching weighted finite-state transducers (FSTs). Weighted
+ finite-state transducers are automata where each transition has
+ an input label, an output label, and a weight."""
+
+ homepage = "http://www.openfst.org"
+ url = "http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.1.tar.gz"
+ list_url = "http://www.openfst.org/twiki/bin/view/FST/FstDownload"
+
+ version('1.6.1', '1173066ed987072183b950b54bdc9315')
+ version('1.6.0', '2b7bcfde6b629857dc5f9ad7edd6ece9')
+ version('1.5.4', 'e52bd59ec9d9edde0c1268a382662741')
+ version('1.5.3', 'f04e580b5bc574571854304c9656a3e2')
+ version('1.5.2', 'e9d43874f7cadf791394caab3925eee4')
+ version('1.5.1', '8869e44c5a4af65409ae78b9f482b40e')
+ version('1.5.0', 'a24fee5ffe28744c6fb7b1a49e0006c4')
+ version('1.4.1', 'ca8f1730b9b9b281e515611fa9ae23c0')
+ version('1.4.0', '662367ec91084ffab48ee9b5716de39c')
+
+ @run_before('autoreconf')
+ def check_compilers(self):
+ # Fails to built openfst with %gcc@6: or %intel@16
+ if self.spec.satisfies('%intel@16:') or self.spec.satisfies('gcc@6:'):
+ raise InstallError(
+ 'openfst does not support Intel compiler >= 16 and gcc >= 6 '
+ )