diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-10-11 05:52:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 16:52:44 -0500 |
commit | 3dd41548f6a7f69ce56a3432a952fa539adf10ec (patch) | |
tree | 43306d85ec654415723e4b78723d3136d791f181 /var | |
parent | 9c56495503e2529a938f4723750ede576957a914 (diff) | |
download | spack-3dd41548f6a7f69ce56a3432a952fa539adf10ec.tar.gz spack-3dd41548f6a7f69ce56a3432a952fa539adf10ec.tar.bz2 spack-3dd41548f6a7f69ce56a3432a952fa539adf10ec.tar.xz spack-3dd41548f6a7f69ce56a3432a952fa539adf10ec.zip |
Add new package: powertop (#18904)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/powertop/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/powertop/package.py b/var/spack/repos/builtin/packages/powertop/package.py new file mode 100644 index 0000000000..8279ccf826 --- /dev/null +++ b/var/spack/repos/builtin/packages/powertop/package.py @@ -0,0 +1,21 @@ +# 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 Powertop(AutotoolsPackage): + """Powertop is a Linux tool to diagnose issues with power consumption + and power management""" + + homepage = "http://01.org/powertop/" + url = "http://01.org/sites/default/files/downloads/powertop/powertop-v2.9.tar.gz" + + version('2.9', sha256='aa7fb7d8e9a00f05e7d8a7a2866d85929741e0d03a5bf40cab22d2021c959250') + + depends_on('libnl') + + def setup_run_environment(self, env): + env.prepend_path('PATH', self.prefix.sbin) |