# Copyright 2013-2023 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.package import * class PortsOfCall(CMakePackage): """Ports of Call: Performance Portability Utilities""" homepage = "https://github.com/lanl/ports-of-call" url = "https://github.com/lanl/ports-of-call/archive/refs/tags/v1.1.0.tar.gz" git = "https://github.com/lanl/ports-of-call.git" maintainers("rbberger") version("main", branch="main") version("1.5.1", sha256="b1f0232cd6d2aac65385d77cc061ec5035283ea50d0f167e7003eae034effb78") version("1.4.1", sha256="82d2c75fcca8bd613273fd4126749df68ccc22fbe4134ba673b4275f9972b78d") version("1.4.0", sha256="e08ae556b7c30d14d77147d248d118cf5343a2e8c0847943385c602394bda0fa") version("1.3.0", sha256="54b4a62539c23b1a345dd87c1eac65f4f69db4e50336cd81a15a627ce80ce7d9") version( "1.2.0", sha256="b802ffa07c5f34ea9839f23841082133d8af191efe5a526cb7e53ec338ac146b", deprecated=True, ) version( "1.1.0", sha256="c47f7e24c82176b69229a2bcb23a6adcf274dc90ec77a452a36ccae0b12e6e39", deprecated=True, ) variant( "portability_strategy", description="Portability strategy backend", values=("Kokkos", "Cuda", "None"), multi=False, default="None", when="@:1.2.0", ) depends_on("cmake@3.12:", type="build") def cmake_args(self): args = [] if self.spec.satisfies("@:1.2.0"): args.append(self.define_from_variant("PORTABILITY_STRATEGY", "portability_strategy")) return args