healpix-cxx: added new package at v3.50.0 (#16846)

This commit is contained in:
健美猞猁 2020-06-01 12:13:35 +08:00 committed by GitHub
parent b1bd777403
commit de63e1c2ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
)