summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-10-11 09:54:43 +0800
committerGitHub <noreply@github.com>2020-10-10 20:54:43 -0500
commit28564620f67a3e27b5299057a882ec0e55395fac (patch)
tree36ee32c3bda8dc98e9d8851f286ae68f2cd5598d
parentc9bee59bc3c822988855b69f3e8a06df826c9d2c (diff)
downloadspack-28564620f67a3e27b5299057a882ec0e55395fac.tar.gz
spack-28564620f67a3e27b5299057a882ec0e55395fac.tar.bz2
spack-28564620f67a3e27b5299057a882ec0e55395fac.tar.xz
spack-28564620f67a3e27b5299057a882ec0e55395fac.zip
Add new package: vtable-dumper (#18964)
-rw-r--r--var/spack/repos/builtin/packages/vtable-dumper/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vtable-dumper/package.py b/var/spack/repos/builtin/packages/vtable-dumper/package.py
new file mode 100644
index 0000000000..e01aaf0ffe
--- /dev/null
+++ b/var/spack/repos/builtin/packages/vtable-dumper/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2020 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 VtableDumper(MakefilePackage):
+ """A tool to list content of virtual tables in a shared library."""
+
+ homepage = "https://github.com/lvc/vtable-dumper"
+ url = "https://github.com/lvc/vtable-dumper/archive/1.2.tar.gz"
+
+ version('1.2', sha256='6993781b6a00936fc5f76dc0db4c410acb46b6d6e9836ddbe2e3c525c6dd1fd2')
+ version('1.1', sha256='f0a57a7b82a0a56845cea9ab56ad449e63f5f01c6a0c9f1467efa4ef60dd4a93')
+ version('1.0', sha256='a222de5a19bf716ab2f35148f43bbf8a052772b54ff622c6387a4ba2440fb9a0')
+
+ depends_on('libelf')
+
+ def install(self, spec, prefix):
+ make('prefix={0}'.format(prefix), 'install')