spack/var/spack/repos/builtin/packages/bbmap/package.py
Todd Gamblin 62927654dd checksums: use sha256 checksums everywhere
We'd like to use a consistent checksum scheme everywhere so that we can:

    a) incorporate archive checksums into our specs and have a
       consistent hashing algorithm across all specs.

    b) index mirrors with a consistent type of checksum, and not one that
       is dependent on how spack packages are written.

- [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
2019-10-12 07:19:43 -07:00

26 lines
911 B
Python

# 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 Bbmap(Package):
"""Short read aligner for DNA and RNA-seq data."""
homepage = "http://sourceforge.net/projects/bbmap/"
url = "https://downloads.sourceforge.net/project/bbmap/BBMap_38.63.tar.gz"
version('38.63', sha256='089064104526c8d696164aefa067f935b888bc71ef95527c72a98c17ee90a01f')
version('37.36', sha256='befe76d7d6f3d0f0cd79b8a01004a2283bdc0b5ab21b0743e9dbde7c7d79e8a9')
depends_on('java')
def install(self, spec, prefix):
install_tree('.', prefix.bin)
def setup_environment(self, spack_env, run_env):
run_env.set('BBMAP_CONFIG', self.prefix.bin.config)
run_env.set('BBMAP_RESOURCES', self.prefix.bin.resources)