summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/staden-io-lib/package.py
blob: dc3089ef863e30581abc939557f92c648ea93045 (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
# 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 StadenIoLib(AutotoolsPackage):
    """Io_lib is a library for reading/writing various bioinformatics
    file formats."""

    homepage = "http://staden.sourceforge.net/"
    url = (
        "https://sourceforge.net/projects/staden/files/io_lib/1.14.8/io_lib-1.14.8.tar.gz/download"
    )

    license("BSD-3-Clause")

    version("1.14.8", sha256="3bd560309fd6d70b14bbb8230e1baf8706b804eb6201220bb6c3d6db72003d1b")

    variant("curl", default=False, description="Build with curl support")

    depends_on("zlib-api")
    depends_on("curl", when="+curl")

    def configure_args(self):
        args = []

        if self.spec.satisfies("~curl"):
            args.append("--without-libcurl")

        return args