diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-09-25 00:49:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 11:49:20 -0500 |
commit | b9e7db344784b5b2c7841c70575d1045b0677d3a (patch) | |
tree | 4827f3b499b66996c87f395ff0ef0767085aed15 | |
parent | 72203e529f083cbc9427b02348cc178e4443031c (diff) | |
download | spack-b9e7db344784b5b2c7841c70575d1045b0677d3a.tar.gz spack-b9e7db344784b5b2c7841c70575d1045b0677d3a.tar.bz2 spack-b9e7db344784b5b2c7841c70575d1045b0677d3a.tar.xz spack-b9e7db344784b5b2c7841c70575d1045b0677d3a.zip |
Add new package: distcc (#18915)
-rw-r--r-- | var/spack/repos/builtin/packages/distcc/package.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/distcc/package.py b/var/spack/repos/builtin/packages/distcc/package.py new file mode 100644 index 0000000000..7143a55017 --- /dev/null +++ b/var/spack/repos/builtin/packages/distcc/package.py @@ -0,0 +1,26 @@ +# 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 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.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) |