summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/srcml-identifier-getter-tool/package.py
blob: 0724c7cd527d1df85426eb58eaab405a6c8ddc27 (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
# 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 SrcmlIdentifierGetterTool(CMakePackage):
    """SCANL's srcml_identifier_getter_tool. reads a srcML
    archive and outputs all identifiers in that archive through
    standard out."""

    homepage = "https://github.com/SCANL/srcml_identifier_getter_tool"
    git = "https://github.com/SCANL/srcml_identifier_getter_tool.git"

    version("2022-10-17", commit="01394c247ae6f61cc5864a9697e72e3623d8e7fb", submodules=True)

    depends_on("libxml2")
    depends_on("zlib-api")
    depends_on("lzma")

    def install(self, spec, prefix):
        super().install(spec, prefix)
        mkdir(prefix.bin)
        install(join_path(self.build_directory, "bin", "grabidentifiers"), prefix.bin)