text: # Copyright 2013-2021 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 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      = 'http://swift-lang.github.io/swift-t-downloads/spack/exmcutils-0.5.7.tar.gz'
      git      = "https://github.com/swift-lang/swift-t.git"
  
      version('master', branch='master')
      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')
  