diff --git a/var/spack/repos/builtin/packages/proj/package.py b/var/spack/repos/builtin/packages/proj/package.py index a4006aa67a..6c62df373f 100644 --- a/var/spack/repos/builtin/packages/proj/package.py +++ b/var/spack/repos/builtin/packages/proj/package.py @@ -3,6 +3,7 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import spack.builder from spack.build_systems import autotools, cmake from spack.package import * @@ -105,7 +106,7 @@ def setup_dependent_run_environment(self, env, dependent_spec): self.setup_run_environment(env) -class BaseBuilder: +class BaseBuilder(metaclass=spack.builder.PhaseCallbacksMeta): def setup_dependent_build_environment(self, env, dependent_spec): self.pkg.setup_run_environment(env) @@ -117,7 +118,7 @@ def install_datum_grids(self): install_tree(join_path("share", "proj"), self.prefix.share.proj) -class CMakeBuilder(cmake.CMakeBuilder, BaseBuilder): +class CMakeBuilder(BaseBuilder, cmake.CMakeBuilder): def cmake_args(self): args = [ self.define_from_variant("ENABLE_TIFF", "tiff"), @@ -128,7 +129,7 @@ def cmake_args(self): return args -class AutotoolsBuilder(autotools.AutotoolsBuilder, BaseBuilder): +class AutotoolsBuilder(BaseBuilder, autotools.AutotoolsBuilder): def configure_args(self): args = []