diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/healpix-cxx/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/healpix-cxx/package.py b/var/spack/repos/builtin/packages/healpix-cxx/package.py new file mode 100644 index 0000000000..da3f1119d2 --- /dev/null +++ b/var/spack/repos/builtin/packages/healpix-cxx/package.py @@ -0,0 +1,29 @@ +# 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 HealpixCxx(AutotoolsPackage): + """Healpix-CXX is a C/C++ library for calculating + Hierarchical Equal Area isoLatitude Pixelation of a sphere.""" + + homepage = "https://healpix.sourceforge.io" + url = "https://ayera.dl.sourceforge.net/project/healpix/Healpix_3.50/healpix_cxx-3.50.0.tar.gz" + + version('3.50.0', sha256='6538ee160423e8a0c0f92cf2b2001e1a2afd9567d026a86ff6e2287c1580cb4c') + + depends_on('cfitsio') + depends_on('libsharp', type='build') + + def patch(self): + spec = self.spec + configure_fix = FileFilter('configure') + # Link libsharp static libs + configure_fix.filter( + r'^SHARP_LIBS=.*$', + 'SHARP_LIBS="-L{0} -lsharp -lc_utils -lfftpack -lm"' + .format(spec['libsharp'].prefix.lib) + ) |