summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJustin S <3630356+codeandkey@users.noreply.github.com>2019-05-03 13:50:54 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2019-05-04 03:50:54 +0900
commit9b0000d04fbd1b9439789abcc6a541c57ce373ed (patch)
treeba6392dcd0988a88f6eb4985cf26a73a13f48ff7 /var
parentdf15969a7dfa279b29b60fef9d5a465cb70f3ba6 (diff)
downloadspack-9b0000d04fbd1b9439789abcc6a541c57ce373ed.tar.gz
spack-9b0000d04fbd1b9439789abcc6a541c57ce373ed.tar.bz2
spack-9b0000d04fbd1b9439789abcc6a541c57ce373ed.tar.xz
spack-9b0000d04fbd1b9439789abcc6a541c57ce373ed.zip
New package: PASTA (#11338)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pasta/package.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pasta/package.py b/var/spack/repos/builtin/packages/pasta/package.py
new file mode 100644
index 0000000000..885e0673c9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pasta/package.py
@@ -0,0 +1,41 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Pasta(Package):
+ """PASTA (Practical Alignment using SATe and Transitivity)"""
+
+ homepage = "https://github.com/smirarab/pasta"
+ git = "https://github.com/smirarab/pasta"
+
+ version('1.8.3', commit='738bec5e0d5a18d013c193d7453374bed47456c9')
+
+ depends_on('python@2.7:')
+ depends_on('py-dendropy')
+ depends_on('java')
+
+ resource(
+ name='tools',
+ git='https://github.com/smirarab/sate-tools-linux',
+ commit='90fb074d61af554e94d1a67583dd3a80b11417ea',
+ destination='.'
+ )
+
+ def setup_environment(self, spack_env, run_env):
+ tools = join_path(self.prefix, 'sate-tools-linux')
+ spack_env.set('PASTA_TOOLS_DEVDIR', tools)
+
+ def install(self, spec, prefix):
+ # build process for pasta is very hacky -- uses hard links to source
+ # install the tree first so links don't break
+ install_tree('.', prefix)
+
+ # run the 'build' from within the prefix
+ python = which('python2.7')
+
+ with working_dir(prefix):
+ python('setup.py', 'develop')