[srcml-identifier-getter-tool] New package (#35763)

* [srcml-identifier-getter-tool] New package
* [srcml-identifier-getter-tool] formatting
This commit is contained in:
Jen Herting 2023-03-20 21:08:35 -04:00 committed by GitHub
parent 3984a1e159
commit 9787253842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,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")
depends_on("lzma")
def install(self, spec, prefix):
super(SrcmlIdentifierGetterTool, self).install(spec, prefix)
mkdir(prefix.bin)
install(join_path(self.build_directory, "bin", "grabidentifiers"), prefix.bin)