Add new package: powertop (#18904)

This commit is contained in:
darmac 2020-10-11 05:52:44 +08:00 committed by GitHub
parent 9c56495503
commit 3dd41548f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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