summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAlfredo Gimenez <gimenez1@llnl.gov>2015-02-06 16:55:48 -0800
committerAlfredo Gimenez <gimenez1@llnl.gov>2015-02-06 16:55:48 -0800
commit5fdf5438ea4375dd5d9ceee7c5af1a4cf6896d53 (patch)
treebe487636374fc1c3eeaa34d22fe93d8a67fd99d8 /var
parentd95d48bbe69eed2772bea8d155ccc4f8d708e4d2 (diff)
downloadspack-5fdf5438ea4375dd5d9ceee7c5af1a4cf6896d53.tar.gz
spack-5fdf5438ea4375dd5d9ceee7c5af1a4cf6896d53.tar.bz2
spack-5fdf5438ea4375dd5d9ceee7c5af1a4cf6896d53.tar.xz
spack-5fdf5438ea4375dd5d9ceee7c5af1a4cf6896d53.zip
flex and bison
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/bison/package.py17
-rw-r--r--var/spack/packages/flex/package.py15
2 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/packages/bison/package.py b/var/spack/packages/bison/package.py
new file mode 100644
index 0000000000..7c526fb958
--- /dev/null
+++ b/var/spack/packages/bison/package.py
@@ -0,0 +1,17 @@
+from spack import *
+
+class Bison(Package):
+ """Bison is a general-purpose parser generator that converts
+ an annotated context-free grammar into a deterministic LR or
+ generalized LR (GLR) parser employing LALR(1) parser tables."""
+
+ homepage = "http://www.gnu.org/software/bison/"
+ url = "http://ftp.gnu.org/gnu/bison/bison-3.0.tar.gz"
+
+ version('3.0.4', 'a586e11cd4aff49c3ff6d3b6a4c9ccf8')
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+
+ make()
+ make("install")
diff --git a/var/spack/packages/flex/package.py b/var/spack/packages/flex/package.py
new file mode 100644
index 0000000000..b065904912
--- /dev/null
+++ b/var/spack/packages/flex/package.py
@@ -0,0 +1,15 @@
+from spack import *
+
+class Flex(Package):
+ """Flex is a tool for generating scanners."""
+
+ homepage = "http://flex.sourceforge.net/"
+ url = "http://download.sourceforge.net/flex/flex-2.5.39.tar.gz"
+
+ version('2.5.39', 'e133e9ead8ec0a58d81166b461244fde')
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+
+ make()
+ make("install")