summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/swap-assembler/package.py
blob: 938bb4c71dc8f7e8ee2c541fb694f7642b10d186 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2013-2018 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', '944f2aeae4f451be81160bb625304fc3')

    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)