opencoarrays package fixes and new version (#2239)

* fix and simplify opencoarrays package using new CMakePackge methods

* add new version
This commit is contained in:
Jeffrey Salmond 2016-11-04 18:50:25 +00:00 committed by Todd Gamblin
parent 2536029ea9
commit f01b9797d7

View file

@ -34,8 +34,9 @@ class Opencoarrays(CMakePackage):
""" """
homepage = "http://www.opencoarrays.org/" homepage = "http://www.opencoarrays.org/"
url = "https://github.com/sourceryinstitute/opencoarrays/releases/download/1.6.2/OpenCoarrays-1.6.2.tar.gz" url = "https://github.com/sourceryinstitute/opencoarrays/releases/download/1.7.4/OpenCoarrays-1.7.4.tar.gz"
version('1.7.4', '85ba87def461e3ff5a164de2e6482930')
version('1.6.2', '5a4da993794f3e04ea7855a6678981ba') version('1.6.2', '5a4da993794f3e04ea7855a6678981ba')
depends_on('cmake', type='build') depends_on('cmake', type='build')
@ -43,11 +44,8 @@ class Opencoarrays(CMakePackage):
provides('coarrays') provides('coarrays')
def install(self, spec, prefix): def cmake_args(self):
with working_dir('spack-build', create=True): args = []
args = std_cmake_args args.append("-DCMAKE_C_COMPILER=%s" % self.spec['mpi'].mpicc)
args.append("-DCMAKE_C_COMPILER=%s" % self.spec['mpi'].mpicc) args.append("-DCMAKE_Fortran_COMPILER=%s" % self.spec['mpi'].mpifc)
args.append("-DCMAKE_Fortran_COMPILER=%s" % self.spec['mpi'].mpifc) return args
cmake('..', *args)
make()
make("install")