diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-27 22:51:10 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-27 22:51:10 +0000 |
commit | ee0c4d5e506a6c64994a15c3af5cf1ca22045567 (patch) | |
tree | bdf578939023d42f04092ddb4bcd190eb391770f /sci-astronomy/pal | |
parent | 161eaa4b12ca6314376288834bba20b7824d0d77 (diff) |
gentoo auto-resync : 27:11:2023 - 22:51:09
Diffstat (limited to 'sci-astronomy/pal')
-rw-r--r-- | sci-astronomy/pal/Manifest | 2 | ||||
-rw-r--r-- | sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch | 14 | ||||
-rw-r--r-- | sci-astronomy/pal/pal-0.9.8-r1.ebuild | 38 |
3 files changed, 54 insertions, 0 deletions
diff --git a/sci-astronomy/pal/Manifest b/sci-astronomy/pal/Manifest index 0a8e69999c17..b426954addbf 100644 --- a/sci-astronomy/pal/Manifest +++ b/sci-astronomy/pal/Manifest @@ -1,3 +1,5 @@ +AUX pal-0.9.8-fix-strlcpy-musl.patch 302 BLAKE2B c0c2e97c1b7ad691d59440c3a746f59e7c9c9504df7852dac88353e1a80fcb23d8bb50089b753a0816246d5efa3c372d8ef630c5dcbb8d39d54a290425d68ac0 SHA512 432b6ead24994e5c8de3913fa648f19df53ffb6b71e66d891e505e5ab5b8fe3bfe6acb440b27d276f443e378162e1b18391ab97a99f2e188abfc468440534ab8 DIST pal-0.9.8.tar.gz 1267834 BLAKE2B 0f1735b564881785ddcfab5c73480905b47c7e7a1d2b9183069f5a620584cf552df9ecccac111b33f46d59a696a40762a0c95698a153a293636071a219ca39fb SHA512 659ca2f97ac58558a638b400f83773af39002785ae3734a195ff8bfbc968af76a6c2ec5ab2dfcb7b81908391c55f31c7d4a4172705bd5fab306ef2233587e2d3 +EBUILD pal-0.9.8-r1.ebuild 851 BLAKE2B 01c52a4be804f4215fab7c808a4208e7b0d92fc72a64278575f531c57da14c590ba8d54bcf2f46afad7c99bdc90275d24f55fb7efdb81ad2a16e6afb5c08a36b SHA512 d565f6f19a74a48d0c7b3feb7eeff953c9083fba720d095b452ddc6f0f712747f283a6ae8e16ba52c79d41a2e59bad6bcf636abb4636b1d919b41857ed723120 EBUILD pal-0.9.8.ebuild 788 BLAKE2B 81a95926b8655ede821b9c1dfb335185e11949a5fbc83af33ad6a42851f051ef8222369d4a4fc4767e9e9744e8beeffce5e5bd710dbc17923edda4fab1d3e149 SHA512 0df21125b4adcbeedc98b446d6d5b5330b7f31b778be428af77b79e5816717ace5c89f699e353d23336dce91f8e29f54873b853c170448b3bbe48cf866bbe5ac MISC metadata.xml 642 BLAKE2B 505c91de974548999c77a29097c98efeb82dc49855bc8d92a3cdf664ba4c2c1977111a1c862862edc413366e162b043f272db71319757c4a79e43faf97b91ad8 SHA512 da8417f4a4f292929698b29d6d3219511f0b63e611d081726b13617708b222e72db4911f14cd381a50b195256c7ab5d5ee9e05e660a4885dda5575d20f0b5940 diff --git a/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch b/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch new file mode 100644 index 000000000000..7ceef8e4b52e --- /dev/null +++ b/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch @@ -0,0 +1,14 @@ +Bug: https://bugs.gentoo.org/898106 +bsd/string.h is available on most libc's +--- a/palDfltin.c ++++ b/palDfltin.c +@@ -121,6 +121,9 @@ static int ISBLANK( int c ) { + + #ifdef HAVE_BSD_STRING_H + #include <bsd/string.h> ++#else ++#define _GNU_SOURCE ++#define __USE_MISC + #endif + + /* System include files */ 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 +} |