summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Salmond <js947@users.noreply.github.com>2016-11-04 18:50:25 +0000
committerTodd Gamblin <tgamblin@llnl.gov>2016-11-04 11:50:25 -0700
commitf01b9797d731647bb187e491e2dccc4020af13eb (patch)
tree3d4d9f58490a21371a520679e03bf61d712320c0
parent2536029ea9e09707bb2a4c4a2b60a6a726ac8b9e (diff)
downloadspack-f01b9797d731647bb187e491e2dccc4020af13eb.tar.gz
spack-f01b9797d731647bb187e491e2dccc4020af13eb.tar.bz2
spack-f01b9797d731647bb187e491e2dccc4020af13eb.tar.xz
spack-f01b9797d731647bb187e491e2dccc4020af13eb.zip
opencoarrays package fixes and new version (#2239)
* fix and simplify opencoarrays package using new CMakePackge methods * add new version
-rw-r--r--var/spack/repos/builtin/packages/opencoarrays/package.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/opencoarrays/package.py b/var/spack/repos/builtin/packages/opencoarrays/package.py
index d9760e2afc..eb76960024 100644
--- a/var/spack/repos/builtin/packages/opencoarrays/package.py
+++ b/var/spack/repos/builtin/packages/opencoarrays/package.py
@@ -34,8 +34,9 @@ class Opencoarrays(CMakePackage):
"""
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')
depends_on('cmake', type='build')
@@ -43,11 +44,8 @@ class Opencoarrays(CMakePackage):
provides('coarrays')
- def install(self, spec, prefix):
- with working_dir('spack-build', create=True):
- args = std_cmake_args
- args.append("-DCMAKE_C_COMPILER=%s" % self.spec['mpi'].mpicc)
- args.append("-DCMAKE_Fortran_COMPILER=%s" % self.spec['mpi'].mpifc)
- cmake('..', *args)
- make()
- make("install")
+ def cmake_args(self):
+ args = []
+ args.append("-DCMAKE_C_COMPILER=%s" % self.spec['mpi'].mpicc)
+ args.append("-DCMAKE_Fortran_COMPILER=%s" % self.spec['mpi'].mpifc)
+ return args