diff options
Diffstat (limited to 'var/spack')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/multimethod-inheritor/package.py | 13 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/zlib/package.py | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/multimethod-inheritor/package.py b/var/spack/repos/builtin.mock/packages/multimethod-inheritor/package.py new file mode 100644 index 0000000000..066a23c6fd --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/multimethod-inheritor/package.py @@ -0,0 +1,13 @@ +# Copyright 2013-2018 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.pkg.builtin.mock.multimethod import Multimethod + + +class MultimethodInheritor(Multimethod): + """This package is designed for use with Spack's multimethod test. + It has a bunch of test cases for the @when decorator that the + test uses. + """ diff --git a/var/spack/repos/builtin/packages/zlib/package.py b/var/spack/repos/builtin/packages/zlib/package.py index eb34730906..81bbe00ee0 100644 --- a/var/spack/repos/builtin/packages/zlib/package.py +++ b/var/spack/repos/builtin/packages/zlib/package.py @@ -31,6 +31,10 @@ class Zlib(Package): patch('w_patch.patch', when="@1.2.11%cce") + @when('%pgi') + def patch(self): + print "patching" + @property def libs(self): shared = '+shared' in self.spec |