From 0dcfd8909a63e5d78e440918af3df43b568629fd Mon Sep 17 00:00:00 2001 From: darmac Date: Thu, 24 Sep 2020 09:12:52 +0800 Subject: Add new package: sysfsutils (#18819) * Add new package: sysfsutils * fix flake8 error --- .../repos/builtin/packages/sysfsutils/package.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 var/spack/repos/builtin/packages/sysfsutils/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/sysfsutils/package.py b/var/spack/repos/builtin/packages/sysfsutils/package.py new file mode 100644 index 0000000000..515294cdab --- /dev/null +++ b/var/spack/repos/builtin/packages/sysfsutils/package.py @@ -0,0 +1,27 @@ +# 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 Sysfsutils(AutotoolsPackage): + """This package's purpose is to provide a set of utilities for interfacing + with sysfs, a virtual filesystem in Linux kernel versions 2.5+ that + provides a tree of system devices. While a filesystem is a very useful + interface, we've decided to provide a stable programming interface + that will hopefully make it easier for applications to query system devices + and their attributes.""" + + homepage = "https://github.com/linux-ras/sysfsutils/" + url = "https://github.com/linux-ras/sysfsutils/archive/sysfsutils_0_5.tar.gz" + + version('0_5', sha256='6878c8a4281e7de52e57b40fe543b1b4e01d6fbce4ffd45a36e5fc25e376746f') + version('0_4_0', sha256='9c78edb118c6bd962e04558ddb2df46d456273284fe3f23bb930dc287225aea5') + version('0_3_0', sha256='f10250aa09513d245cb4ed61ac0dbfd7dfb2e7810bcd8804a07b3fe18f08a74a') + + @when('target=aarch64:') + def configure_args(self): + args = ['--build=arm-linux'] + return args -- cgit v1.2.3-70-g09d2