summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Stanley <molecuul@users.noreply.github.com>2019-03-01 10:14:37 -0600
committerLevi Baber <baberlevi@gmail.com>2019-03-01 10:14:37 -0600
commit165d8da0c2e5a862c1576f753229be7a2ed0aea5 (patch)
tree7e742aceb6faff5ea87c0f4d024a538c2d51caf6
parentf9947333ca99cadebe98b39236e7eaa542d3ee42 (diff)
downloadspack-165d8da0c2e5a862c1576f753229be7a2ed0aea5.tar.gz
spack-165d8da0c2e5a862c1576f753229be7a2ed0aea5.tar.bz2
spack-165d8da0c2e5a862c1576f753229be7a2ed0aea5.tar.xz
spack-165d8da0c2e5a862c1576f753229be7a2ed0aea5.zip
blast-legacy: new package at 2.2.26 (#10610)
* blast-legacy: new package at 2.2.26 * blast-legacy: compile from source * blast-legacy: add missing os.symlink import * blast-legacy: fix build script interpreter
-rw-r--r--var/spack/repos/builtin/packages/blast-legacy/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/blast-legacy/package.py b/var/spack/repos/builtin/packages/blast-legacy/package.py
new file mode 100644
index 0000000000..ed4d10e15d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/blast-legacy/package.py
@@ -0,0 +1,35 @@
+# 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 *
+from os import symlink
+
+
+class BlastLegacy(Package):
+ """Legacy NCBI BLAST distribution -- no longer supported.
+ Contains older programs including `blastall'"""
+
+ homepage = "https://www.ncbi.nlm.nih.gov/"
+ url = "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/legacy.NOTSUPPORTED/2.2.26/ncbi.tar.gz"
+
+ version('2.2.26', sha256='d8fffac25efc8ca894c707c840a4797a8a949ae6fd983d2f91c9972f788efb7d')
+
+ depends_on('tcsh', type='build')
+
+ def install(self, spec, prefix):
+ filter_file('/bin/csh -f', '/bin/env tcsh', 'make/ln-if-absent',
+ string=True)
+
+ tcsh = which('tcsh')
+ with working_dir('..'):
+ tcsh('./ncbi/make/makedis.csh')
+
+ # depends on local data in the source tree
+ install_path = join_path(prefix, 'usr/local/blast-legacy')
+ mkdirp(install_path)
+ install_tree('.', install_path)
+
+ # symlink build output with binaries
+ symlink(join_path(install_path, 'build'), prefix.bin)