spack/var/spack/repos/builtin/packages/swap-assembler/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

25 lines
837 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 SwapAssembler(MakefilePackage):
"""A scalable and fully parallelized genome assembler."""
homepage = "https://sourceforge.net/projects/swapassembler/"
url = "https://sourceforge.net/projects/swapassembler/files/SWAP_Assembler-0.4.tar.bz2/download"
version('0.4', sha256='45632e25578aacfbacd76df9697cbc798e09ac92284d9c9c07be15e0eb348e0d')
depends_on('mpich')
def edit(self, spec, prefix):
makefile = FileFilter('Makefile')
makefile.filter('$(CC) -O2', '$(CC) -pthread -O2', string=True)
def install(self, spec, prefix):
install_tree('.', prefix.bin)