# 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 Exmcutils(AutotoolsPackage): """ExM C-Utils: Generic C utility library for ADLB/X and Swift/T""" homepage = "http://swift-lang.org/Swift-T" url = "https://swift-lang.github.io/swift-t-downloads/spack/exmcutils-0.6.0.tar.gz" git = "https://github.com/swift-lang/swift-t.git" version("master", branch="master") version("0.6.0", sha256="43812f79ae83adcacc05d4eb64bc8faa1c893994ffcdfb40a871f6fa4c9c1435") version("0.5.7", sha256="6b84f43e8928d835dbd68c735ece6a9b7c648a1a4488ec2b1d2f3c4ceec508e8") version("0.5.6", sha256="296ba85cc828bd816c7c4de9453f589da37f32854a58ffda3586b6f371a23abf") @property def configure_directory(self): if self.version == Version("master"): return "c-utils/code" else: return "." depends_on("m4", when="@master") depends_on("autoconf", when="@master") depends_on("automake", when="@master") depends_on("libtool", when="@master")