diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2018-06-28 10:51:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 10:51:30 -0500 |
commit | 795e701ae332b3740604325338c93bfb21f4f39b (patch) | |
tree | 2f3ae454eb906601d7215ca4f5cdda2279ee46b8 | |
parent | 51bd319fcf71f3182fd5fe4775a86bc5d0011a88 (diff) | |
download | spack-795e701ae332b3740604325338c93bfb21f4f39b.tar.gz spack-795e701ae332b3740604325338c93bfb21f4f39b.tar.bz2 spack-795e701ae332b3740604325338c93bfb21f4f39b.tar.xz spack-795e701ae332b3740604325338c93bfb21f4f39b.zip |
Add kealib 1.4.9 (#8597)
-rw-r--r-- | var/spack/repos/builtin/packages/kealib/package.py | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/kealib/package.py b/var/spack/repos/builtin/packages/kealib/package.py index 2bc9ac25fd..fae9202c7b 100644 --- a/var/spack/repos/builtin/packages/kealib/package.py +++ b/var/spack/repos/builtin/packages/kealib/package.py @@ -42,21 +42,36 @@ class Kealib(CMakePackage): Development work on this project has been funded by Landcare Research. """ homepage = "http://www.kealib.org/" - url = "https://bitbucket.org/chchrsc/kealib/get/kealib-1.4.7.tar.gz" + url = "https://bitbucket.org/chchrsc/kealib/get/kealib-1.4.9.tar.gz" version('develop', hg='https://bitbucket.org/chchrsc/kealib') + version('1.4.9', 'a095d0b9d6de1d609ffaf242e00cc2b6') version('1.4.8', '1af2514c908f9168ff6665cc012815ad') version('1.4.7', '6139e31e50f552247ddf98f489948893') depends_on('cmake@2.8.10:', type='build') depends_on('hdf5+cxx+hl') - root_cmakelists_dir = 'trunk' - patch('cmake.patch', when='@1.4.7') + @property + def root_cmakelists_dir(self): + if self.version >= Version('1.4.9'): + return '.' + else: + return 'trunk' + def cmake_args(self): - return [ - '-DHDF5_INCLUDE_DIR=%s' % self.spec['hdf5'].headers.directories[0], - '-DHDF5_LIB_PATH=%s' % self.spec['hdf5'].libs.directories[0], - ] + spec = self.spec + + if self.version >= Version('1.4.9'): + return [ + '-DHDF5_ROOT={0}'.format(spec['hdf5'].prefix) + ] + else: + return [ + '-DHDF5_INCLUDE_DIR={0}'.format( + spec['hdf5'].headers.directories[0]), + '-DHDF5_LIB_PATH={0}'.format( + spec['hdf5'].libs.directories[0]) + ] |