2022-01-13 03:21:41 +08:00
|
|
|
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
|
2020-10-11 05:52:44 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2020-10-11 05:52:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Powertop(AutotoolsPackage):
|
|
|
|
"""Powertop is a Linux tool to diagnose issues with power consumption
|
|
|
|
and power management"""
|
|
|
|
|
2021-08-27 04:05:24 +08:00
|
|
|
homepage = "https://01.org/powertop/"
|
2021-09-14 00:21:35 +08:00
|
|
|
url = "https://01.org/sites/default/files/downloads/powertop/powertop-v2.9.tar.gz"
|
2020-10-11 05:52:44 +08:00
|
|
|
|
|
|
|
version('2.9', sha256='aa7fb7d8e9a00f05e7d8a7a2866d85929741e0d03a5bf40cab22d2021c959250')
|
|
|
|
|
|
|
|
depends_on('libnl')
|
2020-11-25 17:15:51 +08:00
|
|
|
depends_on('ncurses', type='link')
|
2020-10-11 05:52:44 +08:00
|
|
|
|
|
|
|
def setup_run_environment(self, env):
|
|
|
|
env.prepend_path('PATH', self.prefix.sbin)
|