sci-libs/libsharp - 1.0.0 (benzene-overlay)

Search

Package Information

Description:
Library for fast spherical harmonic transforms
Homepage:
https://github.com/Libsharp/libsharp
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
1.0.0 8 ~amd64 ~x86 0/0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools toolchain-funcs

HEALPV="3.60"
MYP="Healpix_${HEALPV}"

DESCRIPTION="Library for fast spherical harmonic transforms"
HOMEPAGE="https://github.com/Libsharp/libsharp"
SRC_URI="https://downloads.sourceforge.net/healpix/${MYP}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0/0"
KEYWORDS="~amd64 ~x86"
IUSE="openmp static-libs test"
RESTRICT="!test? ( test )"

BDEPEND="virtual/pkgconfig"

pkg_pretend() {
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}

pkg_setup() {
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		$(use_enable openmp) \
		$(use_enable static-libs static)
}

src_test() {
	emake check
}

src_install() {
	default
	use static-libs || find "${D}" -name '*.la' -delete || die
}

USE Flags

Dependencies

BDEPEND

virtual/pkgconfig

Manifest for 1.0.0

Type File Size Source URLs
DIST libsharp-1.0.0.tar.gz 389247 bytes https://downloads.sourceforge.net/healpix/Healpix_3.60/libsharp-1.0.0.tar.gz