summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/smartdenovo/package.py
blob: a2be436a3d7e052c30d78bc2760f43de6ba0fecd (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2013-2023 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 Smartdenovo(MakefilePackage):
    """SMARTdenovo is a de novo assembler for PacBio and Oxford Nanopore
    (ONT) data."""

    homepage = "https://github.com/ruanjue/smartdenovo"
    git = "https://github.com/ruanjue/smartdenovo.git"

    license("GPL-3.0-only")

    version("master", branch="master")

    depends_on("sse2neon", when="target=aarch64:")

    patch(
        "aarch64.patch",
        sha256="7dd4bca28aafb0680cc1823aa58ac9000819993538e92628554666c4b3acc470",
        when="target=aarch64:",
    )
    patch(
        "inline-limit.patch",
        sha256="9f514ed72c37cf52ee2ffbe06f9ca1ed5a3e0819dab5876ecd83107c5e5bed81",
    )

    def install(self, spec, prefix):
        install_files = [
            "pairaln",
            "wtpre",
            "wtcyc",
            "wtmer",
            "wtzmo",
            "wtobt",
            "wtclp",
            "wtext",
            "wtgbo",
            "wtlay",
            "wtcns",
            "wtmsa",
        ]
        mkdirp(prefix.bin)
        for f in install_files:
            install(f, prefix.bin)