From c8557ba7d8471f8bfe25915c61e138b1638375c8 Mon Sep 17 00:00:00 2001 From: Justin Stanley Date: Fri, 1 Mar 2019 12:36:00 -0600 Subject: blast2go: new package at 5.2.5 (#10725) * blast2go: new package at 5.2.5 * blast2go: remove redundant url --- .../repos/builtin/packages/blast2go/package.py | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 var/spack/repos/builtin/packages/blast2go/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/blast2go/package.py b/var/spack/repos/builtin/packages/blast2go/package.py new file mode 100644 index 0000000000..e8abcddf0a --- /dev/null +++ b/var/spack/repos/builtin/packages/blast2go/package.py @@ -0,0 +1,47 @@ +# 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 Blast2go(Package): + """Blast2GO is a bioinformatics platform for high-quality functional + annotation and analysis of genomic datasets.""" + + homepage = "https://www.blast2go.com/" + + version('5.2.5', sha256='c37aeda25f96ac0553b52da6b5af3167d50671ddbfb3b39bcb11afe5d0643891') + + depends_on('bash', type='build') + depends_on('blast-plus', type='run') + depends_on('java', type='build') + + def url_for_version(self, version): + fname = 'Blast2GO_unix_{0}.zip'.format(version.underscored) + return 'http://resources.biobam.com/software/blast2go/nico/%s' % fname + + def install(self, spec, prefix): + # blast2go install script prompts for the following: + # + # continue? [o/c] => o + # installation prefix => prefix + # desktop icon [y/n] => n + # run blast2go? [y/n] => n + + config_input_file = 'spack-config.in' + + config_input_data = [ + 'o\n', + prefix.bin + '\n', + 'n\n', + 'n\n', + ] + + with open(config_input_file, 'w') as f: + f.writelines(config_input_data) + + with open(config_input_file, 'r') as f: + bash = which('bash') + bash('Blast2GO_unix_%s.sh' % self.version.underscored, input=f) -- cgit v1.2.3-70-g09d2