From ee0c4d5e506a6c64994a15c3af5cf1ca22045567 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 27 Nov 2023 22:51:10 +0000 Subject: gentoo auto-resync : 27:11:2023 - 22:51:09 --- sci-astronomy/pal/pal-0.9.8-r1.ebuild | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 sci-astronomy/pal/pal-0.9.8-r1.ebuild (limited to 'sci-astronomy/pal/pal-0.9.8-r1.ebuild') diff --git a/sci-astronomy/pal/pal-0.9.8-r1.ebuild b/sci-astronomy/pal/pal-0.9.8-r1.ebuild new file mode 100644 index 000000000000..9b0e2ee32686 --- /dev/null +++ b/sci-astronomy/pal/pal-0.9.8-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Positional Astronomy Library" +HOMEPAGE="https://github.com/Starlink/pal" +SRC_URI="https://github.com/Starlink/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" +RDEPEND="sci-astronomy/erfa:=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.8-fix-strlcpy-musl.patch +) + +src_configure() { + econf --without-starlink \ + --without-stardocs \ + --with-erfa \ + $(use_enable static-libs static) +} + +src_install() { + default + + # remove cruft from non-fhs compliant + dodoc -r "${ED}"/usr/{docs,manifests,news} + rm -r "${ED}"/usr/{docs,manifests,news} || die + + if ! use static-libs; then + find "${ED}" -name '*.la' -delete || die + fi +} -- cgit v1.2.3