blast2go: conflicts for platforms other than x86_64 (#21693)

This commit is contained in:
h-denpo 2021-02-19 17:29:33 +09:00 committed by GitHub
parent 310e82c863
commit e772291df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import archspec
class Blast2go(Package):
@ -14,6 +15,10 @@ class Blast2go(Package):
version('5.2.5', sha256='c37aeda25f96ac0553b52da6b5af3167d50671ddbfb3b39bcb11afe5d0643891')
for t in set([str(x.family) for x in archspec.cpu.TARGETS.values()
if str(x.family) != 'x86_64']):
conflicts('target={0}:'.format(t), msg='blast2go is available x86_64 only')
depends_on('bash', type='build')
depends_on('blast-plus', type='run')
depends_on('java', type='build')