summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/falco/package.py
blob: 3a362e8c22603c4637468418aedae7b1ee9a93eb (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
# 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 Falco(AutotoolsPackage):
    """A C++ drop-in replacement of FastQC to assess the quality of sequence read data"""

    homepage = "https://github.com/smithlabcode/falco"
    url = "https://github.com/smithlabcode/falco/releases/download/v1.2.1/falco-1.2.1.tar.gz"

    license("GPL-3.0-only")

    version("1.2.1", sha256="33de8aafac45c7aea055ed7ab837d0a39d12dcf782816cea8a6c648acb911057")

    variant("htslib", default=False, description="Add support for BAM files")

    depends_on("gmake", type="build")
    depends_on("zlib-ng")
    depends_on("htslib", when="+htslib")

    def configure_args(self):
        if self.spec.satisfies("+htslib"):
            return ["--enable-htslib"]
        return []