summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libbacktrace/package.py
blob: 76bfd99c02b62d08cf0d547a58a63724d534ea99 (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 Libbacktrace(AutotoolsPackage):
    """A C library that may be linked into a C/C++ program to produce
    symbolic backtraces."""

    homepage = "https://github.com/ianlancetaylor/libbacktrace"
    git = "https://github.com/ianlancetaylor/libbacktrace.git"
    maintainers("trahay")

    version("master", branch="master")
    version("2020-02-19", commit="ca0de0517f3be44fedf5a2c01cfaf6437d4cae68")

    variant("shared", default=False, description="Additionally build shared library")

    depends_on("autoconf", type="build")
    depends_on("automake", type="build")
    depends_on("libtool", type="build")
    depends_on("m4", type="build")

    def configure_args(self):
        args = []
        args.extend(self.enable_or_disable("shared"))
        return args