diff options
author | Sajid Ali <30510036+s-sajid-ali@users.noreply.github.com> | 2020-02-11 19:02:39 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 17:02:39 -0800 |
commit | 2c63ea49d1130a6f668c7b449f5f63adffe8d72a (patch) | |
tree | 9934e66c0817e1c6beedff2c2ce669bc0ec81bf0 | |
parent | 630611a786eb92932608cdf2d2b73049323f1990 (diff) | |
download | spack-2c63ea49d1130a6f668c7b449f5f63adffe8d72a.tar.gz spack-2c63ea49d1130a6f668c7b449f5f63adffe8d72a.tar.bz2 spack-2c63ea49d1130a6f668c7b449f5f63adffe8d72a.tar.xz spack-2c63ea49d1130a6f668c7b449f5f63adffe8d72a.zip |
New package: libvips (#14794)
-rw-r--r-- | var/spack/repos/builtin/packages/libvips/package.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libvips/package.py b/var/spack/repos/builtin/packages/libvips/package.py new file mode 100644 index 0000000000..89371208ab --- /dev/null +++ b/var/spack/repos/builtin/packages/libvips/package.py @@ -0,0 +1,45 @@ +# Copyright 2013-2020 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 Libvips(AutotoolsPackage): + """libvips is a demand-driven, horizontally threaded image processing + library. Compared to similar libraries, libvips runs quickly and uses + little memory.""" + + homepage = "https://libvips.github.io/libvips/" + url = "https://github.com/libvips/libvips/releases/download/v8.9.0/vips-8.9.0.tar.gz" + git = "https://github.com/libvips/libvips.git" + + version('8.9.1', sha256='45633798877839005016c9d3494e98dee065f5cb9e20f4552d3b315b8e8bce91', preferred=True) + version('8.9.0', sha256='97334a5e70aff343d2587f23cb8068fc846a58cd937c89a446142ccf00ea0349') + + variant('fftw', default=True, + description='Uses FFTW3 for fourier transforms.') + + variant('jpeg', default=False, + description='Enable JPEG support') + + variant('tiff', default=False, + description='Enable TIFF support') + + variant('png', default=False, + description='Enable pngfile support') + + variant('poppler', default=False, + description='Enable PDF rendering via poppler') + + # TODO: Add more variants! + + depends_on('glib') + depends_on('expat') + + depends_on('fftw', when='+fftw') + depends_on('libjpeg', when='+jpeg') + depends_on('libtiff', when='+tiff') + depends_on('libpng', when='+png') + depends_on('poppler', when='+poppler') |