summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/tldd/package.py
blob: b9a75f9703f1a1fcbea543fe0e3211e0cb6d45af (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
# Copyright 2013-2024 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 Tldd(MakefilePackage):
    """A program similar to ldd(1) but showing the output as a tree."""

    homepage = "https://gitlab.com/miscripts/tldd"
    git = "https://gitlab.com/miscripts/tldd.git"

    license("GPL-3.0-only")

    version("2018-10-05", commit="61cb512cc992ea6cbb7239e99ec7ac92ea072507")
    version("master", branch="master")

    depends_on("pstreams@0.8.0:")

    def patch(self):
        filter_file(r"#include <pstreams/pstream.h>", r"#include <pstream.h>", "tldd.cc")

    @property
    def install_targets(self):
        return ["install", "PREFIX={0}".format(self.prefix)]