1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 2013-2022 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 = "https://github.com/aquaskyline/SOAPdenovo-Trans"
url = "https://github.com/aquaskyline/SOAPdenovo-Trans/archive/1.0.4.tar.gz"
version('1.0.4', sha256='378a54cde0ebe240fb515ba67197c053cf95393645c1ae1399b3a611be2a9795')
depends_on('zlib', type='link')
depends_on('samtools@0.1.8', type='link')
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')
if spec.target.family == 'aarch64':
makefile.filter('ppc64 ia64', 'ppc64 ia64 aarch64')
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)
|