blast2go: new package at 5.2.5 (#10725)
* blast2go: new package at 5.2.5 * blast2go: remove redundant url
This commit is contained in:
parent
ee5e5ce3c6
commit
c8557ba7d8
1 changed files with 47 additions and 0 deletions
47
var/spack/repos/builtin/packages/blast2go/package.py
Normal file
47
var/spack/repos/builtin/packages/blast2go/package.py
Normal file
|
@ -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)
|
Loading…
Reference in a new issue