summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libatasmart/package.py
blob: 2022e5e27106e1061548a52db70002e7fe333e3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2013-2022 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 Libatasmart(AutotoolsPackage):
    """A small and lightweight parser library for ATA S.M.A.R.T. hard disk
    health monitoring."""

    homepage = "https://github.com/ebe-forks/libatasmart"
    url      = "https://github.com/ebe-forks/libatasmart/archive/v0.19.tar.gz"

    version('0.19', sha256='10bb5321a254e28bd60fd297f284bfc81cce4fde92e150187640e62ec667e5fb')
    version('0.18', sha256='4a6e93fbaec2d4caffb06ddd47c2c35ea4ad2d3d22e805bf284adba949f64ddf')
    version('0.17', sha256='353b2ec097814254989a809fd495f95a315e608fdf320c2b96dc52d70392e955')

    depends_on('autoconf', type='build')
    depends_on('automake', type='build')
    depends_on('libtool',  type='build')
    depends_on('m4',       type='build')

    def setup_run_environment(self, env):
        env.prepend_path('PATH', self.prefix.sbin)