summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ninja-phylogeny/package.py
blob: 6dd037007b037a8056b4acd908af72e5f6686b81 (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-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 NinjaPhylogeny(MakefilePackage):
    """NINJA is software for inferring large-scale neighbor-joining phylogenies."""

    homepage = "https://wheelerlab.org/software/ninja/"
    url = "https://github.com/TravisWheelerLab/NINJA/archive/refs/tags/0.98-cluster_only.tar.gz"

    maintainers("snehring")

    license("MIT")

    version("0.98", sha256="55675e1a9d51eddb3decc9a7570b6bcddb12e8a922cf1ca0a1ea43995793c9db")

    build_directory = "NINJA"

    def edit(self, spec, prefix):
        with working_dir("NINJA"):
            filter_file(r"^CXX = g\+\+.*$", "", "Makefile")

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        with working_dir("NINJA"):
            install("Ninja", prefix.bin)