mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/perl-astro: new aport
https://metacpan.org/release/Astro/ Assorted astronomical routines
This commit is contained in:
parent
0e1f2a4962
commit
1abde71a71
41
testing/perl-astro/APKBUILD
Normal file
41
testing/perl-astro/APKBUILD
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# Automatically generated by apkbuild-cpan, template 4
|
||||||
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||||
|
maintainer="Celeste <cielesti@protonmail.com>"
|
||||||
|
pkgname=perl-astro
|
||||||
|
pkgver=0.78
|
||||||
|
pkgrel=0
|
||||||
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Astro
|
||||||
|
pkgdesc="Assorted astronomical routines"
|
||||||
|
url="https://metacpan.org/release/Astro/"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||||
|
depends="perl"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/C/CP/CPHIL/Astro-$pkgver.tar.gz
|
||||||
|
pod-syntax.patch
|
||||||
|
"
|
||||||
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||||
|
INSTALLDIRS=vendor \
|
||||||
|
NO_PACKLIST=1 \
|
||||||
|
NO_PERLLOCAL=1
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
8aa2ffb483d36b7bf07d68d39987b23907be690c66f8b058382c9ff3031505a27b2cf8904626bce6c396aae65d40c8bc5cfcf91de4a128a04594698c70ae81da Astro-0.78.tar.gz
|
||||||
|
52aa0d3601719402520a1e69445aebc773fcc9980d08ec1e3536b81b8cc76f2a573a0fea169f6e4a96c276af77849ffa43783052648843cf77cee6cc3af6eb15 pod-syntax.patch
|
||||||
|
"
|
60
testing/perl-astro/pod-syntax.patch
Normal file
60
testing/perl-astro/pod-syntax.patch
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
Patch-Source: https://salsa.debian.org/perl-team/modules/packages/libastro-perl/-/blob/debian/0.78-2/debian/patches/pod-syntax.patch
|
||||||
|
--
|
||||||
|
Description: fix POD syntax errors
|
||||||
|
Origin: vendor
|
||||||
|
Author: gregor herrmann <gregoa@debian.org>
|
||||||
|
Last-Update: 2024-05-15
|
||||||
|
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=153497
|
||||||
|
Bug: https://rt.cpan.org/Ticket/Display.html?id=153497
|
||||||
|
|
||||||
|
--- a/Astro/Coord.pm
|
||||||
|
+++ b/Astro/Coord.pm
|
||||||
|
@@ -111,6 +111,8 @@
|
||||||
|
[+0.435730, -0.008541, +0.002117,
|
||||||
|
-0.00485852, -0.00002716, +0.99996684]);
|
||||||
|
|
||||||
|
+=over 4
|
||||||
|
+
|
||||||
|
=item B<pol2r>
|
||||||
|
|
||||||
|
($x, $y, $z) = pol2r($polar1, $polar2);
|
||||||
|
@@ -1895,6 +1897,8 @@
|
||||||
|
angle at which the source rises is simply the negative of this
|
||||||
|
value.
|
||||||
|
|
||||||
|
+=back
|
||||||
|
+
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub antenna_rise($$$$) {
|
||||||
|
--- a/Astro/Misc.pm
|
||||||
|
+++ b/Astro/Misc.pm
|
||||||
|
@@ -62,6 +62,8 @@
|
||||||
|
push @ThompsonData, [split];
|
||||||
|
}
|
||||||
|
|
||||||
|
+=over 4
|
||||||
|
+
|
||||||
|
=item B<read_possm>
|
||||||
|
|
||||||
|
Read_possm interprets the output file from the AIPS POSSM task.
|
||||||
|
@@ -567,6 +569,8 @@
|
||||||
|
Model 1 is based on Brand and Blitz, 1993, A&A, 275, 67-90.
|
||||||
|
Model 2 has unknown origin.
|
||||||
|
|
||||||
|
+=back
|
||||||
|
+
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub kindist ($$$$$) {
|
||||||
|
--- a/Astro/Time.pm
|
||||||
|
+++ b/Astro/Time.pm
|
||||||
|
@@ -1377,6 +1377,8 @@
|
||||||
|
The required inputs are :
|
||||||
|
$month - Name of the month ('Jan', 'January', 'Feb', 'February' etc)
|
||||||
|
|
||||||
|
+=back
|
||||||
|
+
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub str2month($) {
|
Loading…
Reference in New Issue
Block a user