spack/var/spack/repos/builtin/packages/soapdenovo-trans/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

34 lines
1.2 KiB
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 SoapdenovoTrans(MakefilePackage):
"""SOAPdenovo-Trans is a de novo transcriptome assembler basing on the
SOAPdenovo framework, adapt to alternative splicing and different
expression level among transcripts."""
homepage = "http://soap.genomics.org.cn/SOAPdenovo-Trans.html"
url = "https://github.com/aquaskyline/SOAPdenovo-Trans/archive/1.0.4.tar.gz"
version('1.0.4', sha256='378a54cde0ebe240fb515ba67197c053cf95393645c1ae1399b3a611be2a9795')
build_directory = 'src'
def edit(self, spec, prefix):
with working_dir(self.build_directory):
makefile = FileFilter('Makefile')
makefile.filter('CFLAGS= -O3 -fomit-frame-pointer -static',
'CFLAGS= -O3 -fomit-frame-pointer')
def build(self, spec, prefix):
with working_dir(self.build_directory):
make()
make('127mer=1', parallel=False)
def install(self, spec, prefix):
install_tree('.', prefix.bin)