summaryrefslogtreecommitdiff
path: root/var/spack/packages/flux/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/packages/flux/package.py')
-rw-r--r--var/spack/packages/flux/package.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/packages/flux/package.py b/var/spack/packages/flux/package.py
new file mode 100644
index 0000000000..c128f46be8
--- /dev/null
+++ b/var/spack/packages/flux/package.py
@@ -0,0 +1,36 @@
+from spack import *
+import os
+
+class Flux(Package):
+ """ A next-generation resource manager (pre-alpha) """
+
+ homepage = "https://github.com/flux-framework/flux-core"
+ url = "https://github.com/flux-framework/flux-core"
+
+ version('master', branch='master', git='https://github.com/flux-framework/flux-core')
+
+ # Also needs autotools, but should use the system version if available
+ depends_on("zeromq@4.0.4:")
+ depends_on("czmq@2.2:")
+ depends_on("lua@5.1:5.1.99")
+ depends_on("munge")
+ depends_on("libjson-c")
+ depends_on("libxslt")
+ # TODO: This provides a catalog, hacked with environment below for now
+ depends_on("docbook-xml")
+ depends_on("asciidoc")
+ depends_on("python")
+ depends_on("py-cffi")
+
+ def install(self, spec, prefix):
+ # Bootstrap with autotools
+ bash = which('bash')
+ bash('./autogen.sh')
+
+ # Fix asciidoc dependency on xml style sheets and whatnot
+ os.environ['XML_CATALOG_FILES'] = os.path.join(spec['docbook-xml'].prefix,
+ 'catalog.xml')
+ # Configure, compile & install
+ configure("--prefix=" + prefix)
+ make("install", "V=1")
+