Skip to content
Snippets Groups Projects
Unverified Commit de63e1c2 authored by 健美猞猁's avatar 健美猞猁 Committed by GitHub
Browse files

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

parent b1bd7774
No related branches found
No related tags found
No related merge requests found
# 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)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment