summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pacbio-daligner/package.py
blob: b3d7e1f6fc53a25a16f331d04315a43b878578e0 (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
# 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 PacbioDaligner(MakefilePackage):
    """Daligner: The Dazzler "Overlap" Module. This is a special fork
    required for some pacbio utilities."""

    homepage = "https://github.com/PacificBiosciences/DALIGNER"
    git = "https://github.com/PacificBiosciences/DALIGNER.git"

    version("2017-08-05", commit="0fe5240d2cc6b55bf9e04465b700b76110749c9d")

    depends_on("gmake", type="build")
    depends_on("pacbio-dazz-db")

    def edit(self, spec, prefix):
        mkdir(prefix.bin)
        makefile = FileFilter("Makefile")
        makefile.filter(r"DEST_DIR\s*=\s*~/bin", "DEST_DIR = " + prefix.bin)
        gmf = FileFilter("GNUmakefile")
        gmf.filter(r"rsync\s*-av\s*\$\{ALL\}\s*\$\{PREFIX\}/bin", "cp ${ALL} " + prefix.bin)