summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/distcc/package.py
blob: ddbf9430f742652519c49768e42d5ecaec7b6b05 (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
# 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.package import *


class Distcc(AutotoolsPackage):
    """distcc is a program to distribute compilation of C or C++
    code across several machines on a network."""

    homepage = "https://github.com/distcc/distcc"
    url      = "https://github.com/distcc/distcc/archive/v3.3.3.tar.gz"

    version('3.3.5', sha256='13a4b3ce49dfc853a3de550f6ccac583413946b3a2fa778ddf503a9edc8059b0')
    version('3.3.3', sha256='b7f37d314704fbaf006d747514ff6e4d0d722102ef7d2aea132f97cf170f5169')

    depends_on('popt')
    depends_on('libiberty')

    def autoreconf(self, spec, prefix):
        bash = which('bash')
        bash('./autogen.sh')

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