diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2022-02-21 04:23:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 11:23:07 +0100 |
commit | 96fceb6e38c1031ba8d223ef49d0e5c34ee0535d (patch) | |
tree | 4c2e7326e744539c42563f5f5c17498134f00d82 | |
parent | fc8c3ada56134e7e6689ccfdefaa6bc2d8bdf6c4 (diff) | |
download | spack-96fceb6e38c1031ba8d223ef49d0e5c34ee0535d.tar.gz spack-96fceb6e38c1031ba8d223ef49d0e5c34ee0535d.tar.bz2 spack-96fceb6e38c1031ba8d223ef49d0e5c34ee0535d.tar.xz spack-96fceb6e38c1031ba8d223ef49d0e5c34ee0535d.zip |
py-liblas: add new package (#29027)
-rw-r--r-- | var/spack/repos/builtin/packages/liblas/package.py | 9 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-liblas/package.py | 28 |
2 files changed, 33 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/liblas/package.py b/var/spack/repos/builtin/packages/liblas/package.py index f1a3bff59d..d5284d8b75 100644 --- a/var/spack/repos/builtin/packages/liblas/package.py +++ b/var/spack/repos/builtin/packages/liblas/package.py @@ -24,10 +24,11 @@ class Liblas(CMakePackage): variant('geotiff', default=True, description='Build with GeoTIFF for enhanced performance') variant('laszip', default=False, description='Build with LasZip') - depends_on('libgeotiff') - depends_on('boost@:1.69.0') - depends_on('laszip', when='+laszip') - depends_on('gdal', when='+gdal') + depends_on('cmake@2.6:', type='build') + depends_on('libgeotiff@1.3:', when='+geotiff') + depends_on('boost@1.42:1.72+program_options+thread+system+iostreams+filesystem') + depends_on('laszip@2.0.1:', when='+laszip') + depends_on('gdal@1.7:', when='+gdal') def cmake_args(self): args = [] diff --git a/var/spack/repos/builtin/packages/py-liblas/package.py b/var/spack/repos/builtin/packages/py-liblas/package.py new file mode 100644 index 0000000000..dcd48b6032 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-liblas/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2022 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 PyLiblas(PythonPackage): + """libLAS is a C/C++ library for reading and writing the very common + LAS LiDAR format. + """ + + homepage = "https://liblas.org/" + pypi = "libLAS/libLAS-1.8.1.tar.gz" + + version('1.8.1', sha256='4d517670912989a0c7a33bb057167747e1013db6abdaa372f0775343ff0d1e16') + + depends_on('py-setuptools', type='build') + depends_on('liblas') + + def setup_build_environment(self, env): + env_var = 'LD_LIBRARY_PATH' + if self.spec.satisfies('platform=darwin'): + env_var = 'DYLD_FALLBACK_LIBRARY_PATH' + env.prepend_path(env_var, self.spec['liblas'].libs.directories[0]) + + setup_run_environment = setup_build_environment |