summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/tldd/package.py
blob: 7db26422e75d68d8855e7921fb00f0b4fb48d6b9 (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-2018 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 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"

    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)]