summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-06-29 13:06:38 +0200
committerGitHub <noreply@github.com>2022-06-29 13:06:38 +0200
commit768d3504dd9b1f3ab3492bbdf97dc8768843429f (patch)
treeb4e146a8d8e24ed92a824dcc114107f34db199e6 /var
parenta98806bd9b4cb88a85d1c1aedb18f9ceee8bc3e8 (diff)
downloadspack-768d3504dd9b1f3ab3492bbdf97dc8768843429f.tar.gz
spack-768d3504dd9b1f3ab3492bbdf97dc8768843429f.tar.bz2
spack-768d3504dd9b1f3ab3492bbdf97dc8768843429f.tar.xz
spack-768d3504dd9b1f3ab3492bbdf97dc8768843429f.zip
tree: 2.0.2 (#31362)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/tree/package.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/tree/package.py b/var/spack/repos/builtin/packages/tree/package.py
index b5d4230154..dd069b3edc 100644
--- a/var/spack/repos/builtin/packages/tree/package.py
+++ b/var/spack/repos/builtin/packages/tree/package.py
@@ -19,19 +19,17 @@ class Tree(Package):
homepage = "http://mama.indstate.edu/users/ice/tree/"
url = "http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz"
+ version('2.0.2', sha256='7d693a1d88d3c4e70a73e03b8dbbdc12c2945d482647494f2f5bd83a479eeeaf')
version('1.8.0', sha256='715d5d4b434321ce74706d0dd067505bb60c5ea83b5f0b3655dae40aa6f9b7c2')
version('1.7.0', sha256='6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12')
+ @when('@2:')
def install(self, spec, prefix):
- objs = [
- 'tree.o',
- 'unix.o',
- 'html.o',
- 'xml.o',
- 'json.o',
- 'hash.o',
- 'color.o'
- ]
+ make('install', 'PREFIX=%s' % prefix)
+
+ @when('@:1')
+ def install(self, spec, prefix):
+ objs = ['tree.o', 'unix.o', 'html.o', 'xml.o', 'json.o', 'hash.o', 'color.o']
# version 1.8.0 added file.c
if spec.version >= Version('1.8.0'):
objs.append('file.o')