summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/wtdbg2/package.py
blob: 07d9022276cc5d31c452811d08cb52241c3e0288 (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
25
26
27
28
29
30
# Copyright 2013-2024 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.package import *


class Wtdbg2(MakefilePackage):
    """A fuzzy Bruijn graph approach to long noisy reads assembly"""

    homepage = "https://github.com/ruanjue/wtdbg2"
    url = "https://github.com/ruanjue/wtdbg2/archive/v2.3.tar.gz"

    license("GPL-3.0-only")

    version("2.3", sha256="fb61d38a4c60a39b3b194e63b855141c05ddcbe71cf244ae613766a9b0a56621")

    depends_on("zlib-api")
    depends_on("sse2neon", when="target=aarch64:")

    patch("for_aarch64.patch", when="target=aarch64:")

    def edit(self, spec, prefix):
        if spec.target.family == "aarch64":
            makefile = FileFilter("Makefile")
            makefile.filter("-mpopcnt -msse4.2", "")

    def install(self, spec, prefix):
        make("install", "BIN=%s" % prefix.bin)