From 1550d5cae644f962fb12ff584a94203e6125c179 Mon Sep 17 00:00:00 2001 From: Toyohisa Kameyama Date: Thu, 3 Oct 2019 01:58:25 +0900 Subject: [PATCH] ants: missing zlib dependency and fix working directory in install. (#13010) --- var/spack/repos/builtin/packages/ants/package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/ants/package.py b/var/spack/repos/builtin/packages/ants/package.py index 28bbce2b60..870ade0037 100644 --- a/var/spack/repos/builtin/packages/ants/package.py +++ b/var/spack/repos/builtin/packages/ants/package.py @@ -20,8 +20,13 @@ class Ants(CMakePackage): version('2.2.0', '5661b949268100ac0f7baf6d2702b4dd') + depends_on('zlib', type='link') + def install(self, spec, prefix): - with working_dir(join_path('spack-build', 'ANTS-build'), create=False): + with working_dir( + join_path(self.build_directory, 'ANTS-build'), + create=False + ): make("install") install_tree('Scripts', prefix.bin)