diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/kealib')
-rw-r--r-- | var/spack/repos/builtin/packages/kealib/package.py | 56 |
1 files changed, 26 insertions, 30 deletions
diff --git a/var/spack/repos/builtin/packages/kealib/package.py b/var/spack/repos/builtin/packages/kealib/package.py index be73dc640b..8c28ada803 100644 --- a/var/spack/repos/builtin/packages/kealib/package.py +++ b/var/spack/repos/builtin/packages/kealib/package.py @@ -22,56 +22,52 @@ class Kealib(CMakePackage): Development work on this project has been funded by Landcare Research. """ + homepage = "http://www.kealib.org/" - url = "https://github.com/ubarsc/kealib/releases/download/kealib-1.4.15/kealib-1.4.15.tar.gz" - git = "https://github.com/ubarsc/kealib" + url = "https://github.com/ubarsc/kealib/releases/download/kealib-1.4.15/kealib-1.4.15.tar.gz" + git = "https://github.com/ubarsc/kealib" - maintainers = ['gillins', 'neilflood', 'petebunting'] + maintainers = ["gillins", "neilflood", "petebunting"] - version('develop', git=git) - version('1.4.15', sha256='40f2573c00f005f93c1fa88f1f13bfbd485cbc7a9b3f1c706931e69bff17dae4') - version('1.4.12', sha256='0b100e36b3e25e57487aa197d7be47f22e1b30afb16a57fdaa5f877696ec321e') - version('1.4.11', sha256='3d64cdec560c7a338ccb38e3a456db4e3b176ac62f945daa6e332e60fe4eca90') - version('1.4.10', sha256='b1bd2d6834d2fe09ba456fce77f7a9452b406dbe302f7ef1aabe924e45e6bb5e') - version('1.4.9', sha256='1c80489f17114a229097c2e8c61d5e4c82ea63ae631c81a817fef95cfd527174') - version('1.4.8', sha256='0f24d8478865abcb17865c8f49c0370095726c529b8ac373ffae018ad3d40a02') - version('1.4.7', sha256='ec38751b3b555d3a26f0c7445f2d2cd9d7c3a3502237519a206a50cb58df56ec') + version("develop", git=git) + version("1.4.15", sha256="40f2573c00f005f93c1fa88f1f13bfbd485cbc7a9b3f1c706931e69bff17dae4") + version("1.4.12", sha256="0b100e36b3e25e57487aa197d7be47f22e1b30afb16a57fdaa5f877696ec321e") + version("1.4.11", sha256="3d64cdec560c7a338ccb38e3a456db4e3b176ac62f945daa6e332e60fe4eca90") + version("1.4.10", sha256="b1bd2d6834d2fe09ba456fce77f7a9452b406dbe302f7ef1aabe924e45e6bb5e") + version("1.4.9", sha256="1c80489f17114a229097c2e8c61d5e4c82ea63ae631c81a817fef95cfd527174") + version("1.4.8", sha256="0f24d8478865abcb17865c8f49c0370095726c529b8ac373ffae018ad3d40a02") + version("1.4.7", sha256="ec38751b3b555d3a26f0c7445f2d2cd9d7c3a3502237519a206a50cb58df56ec") - depends_on('cmake@2.8.10:', type='build') - depends_on('hdf5+cxx+hl') + depends_on("cmake@2.8.10:", type="build") + depends_on("hdf5+cxx+hl") - patch('cmake.patch', when='@1.4.7') + patch("cmake.patch", when="@1.4.7") @property def command(self): - exe = 'kea-config' - if self.spec.satisfies('platform=windows'): - exe += '.bat' + exe = "kea-config" + if self.spec.satisfies("platform=windows"): + exe += ".bat" return Executable(self.prefix.bin.join(exe)) @property def root_cmakelists_dir(self): - if self.version >= Version('1.4.9'): - return '.' + if self.version >= Version("1.4.9"): + return "." else: - return 'trunk' + return "trunk" def cmake_args(self): spec = self.spec - if self.version >= Version('1.4.9'): - return [ - '-DHDF5_ROOT={0}'.format(spec['hdf5'].prefix) - ] + 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]) + "-DHDF5_INCLUDE_DIR={0}".format(spec["hdf5"].headers.directories[0]), + "-DHDF5_LIB_PATH={0}".format(spec["hdf5"].libs.directories[0]), ] @property def libs(self): - return find_libraries('libkea', self.prefix, - shared=True, recursive=True) + return find_libraries("libkea", self.prefix, shared=True, recursive=True) |