summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2016-07-12 20:27:44 -0400
committerGeorge Hartzell <hartzell@alerce.com>2016-08-02 11:10:12 -0400
commit4373a2b629780a9c14d97110ed014a5620d4eca6 (patch)
treea8eb9e16a1f9ce75f2290a27c761239ab834dbaf /var
parentbb5dd49206e98f066d211b6a0f5a408b209ef2aa (diff)
downloadspack-4373a2b629780a9c14d97110ed014a5620d4eca6.tar.gz
spack-4373a2b629780a9c14d97110ed014a5620d4eca6.tar.bz2
spack-4373a2b629780a9c14d97110ed014a5620d4eca6.tar.xz
spack-4373a2b629780a9c14d97110ed014a5620d4eca6.zip
First cut package for nextflow, has issues
This is my first cut at a package to support nextflow. It's also my first package. It works, but has issues. I'm going to submit a pull request and get some coaching on how to deal with it. One issue particular: if I install, then uninstall, then try to install again (which uses the cached copy of the "distribution file"), it explodes.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nextflow/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nextflow/package.py b/var/spack/repos/builtin/packages/nextflow/package.py
new file mode 100644
index 0000000000..92e11bbc9f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/nextflow/package.py
@@ -0,0 +1,24 @@
+from spack import *
+from glob import glob
+import os
+
+class Nextflow(Package):
+ """Data-driven computational pipelines"""
+
+ homepage = "http://www.nextflow.io"
+
+ version('0.20.1', '0e4e0e3eca1c2c97f9b4bffd944b923a',
+ url='https://github.com/nextflow-io/nextflow/releases/download/v0.20.1/nextflow',
+ expand=False)
+
+ depends_on('jdk')
+
+ def unpack(self):
+ pass
+
+ def install(self, spec, prefix):
+ chmod = which('chmod')
+
+ mkdirp(prefix.bin)
+ install("nextflow", join_path(prefix.bin, "nextflow"))
+ chmod('+x', join_path(prefix.bin, "nextflow"))