summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gnuconfig/package.py
blob: aab4bbbdb72886a8f8ba43353d6dcc8c743ee023 (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
27
28
29
30
31
32
33
# Copyright 2013-2024 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.package import *


class Gnuconfig(Package):
    """
    The GNU config.guess and config.sub scripts versioned by timestamp.
    This package can be used as a build dependency for autotools packages that
    ship a tarball with outdated config.guess and config.sub files.
    """

    homepage = "https://www.gnu.org/software/config/"
    git = "https://github.com/spack/gnuconfig.git"
    url = "https://github.com/spack/gnuconfig/releases/download/2021-08-14/gnuconfig-2021-08-14.tar.gz"

    maintainers("haampie")

    version("master", branch="master")
    version(
        "2022-09-17", sha256="95306801ad7086e6a6e13397cb859183d8b7adbba2e372ce0819bad5fcb919b7"
    )
    version(
        "2021-08-14", sha256="69b6d2868e70167ba1bdb9030b49beeb20f00b37e30825e83fd04291d96bc5f7"
    )

    def install(self, spec, prefix):
        with working_dir(self.stage.source_path):
            install("config.sub", prefix)
            install("config.guess", prefix)