healpix-cxx: added new package at v3.50.0 (#16846)
This commit is contained in:
parent
b1bd777403
commit
de63e1c2ac
1 changed files with 29 additions and 0 deletions
29
var/spack/repos/builtin/packages/healpix-cxx/package.py
Normal file
29
var/spack/repos/builtin/packages/healpix-cxx/package.py
Normal 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)
|
||||||
|
)
|
Loading…
Reference in a new issue