git: 26024f6b780d - main - science/p5-Geo-Calc: Add new port

From: Wen Heping <wen_at_FreeBSD.org>
Date: Mon, 21 Nov 2022 12:38:58 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=26024f6b780d992dd909b4d8d16267ed4e61ab2c

commit 26024f6b780d992dd909b4d8d16267ed4e61ab2c
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2022-11-21 12:37:54 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2022-11-21 12:37:54 +0000

    science/p5-Geo-Calc: Add new port
    
    Geo::Calc implements a variety of calculations for latitude/longitude points.
    
    All these formulare are for calculations on the basis of a spherical earth
    (ignoring ellipsoidal effects) which is accurate enough* for most purposes.
---
 science/Makefile              |  1 +
 science/p5-Geo-Calc/Makefile  | 27 +++++++++++++++++++++++++++
 science/p5-Geo-Calc/distinfo  |  3 +++
 science/p5-Geo-Calc/pkg-descr |  4 ++++
 science/p5-Geo-Calc/pkg-plist |  2 ++
 5 files changed, 37 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index fd0c77a0d89f..d03c526d0235 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -247,6 +247,7 @@
     SUBDIR += p5-Chemistry-Reaction
     SUBDIR += p5-Chemistry-Ring
     SUBDIR += p5-Geo-BUFR
+    SUBDIR += p5-Geo-Calc
     SUBDIR += p5-Geo-Coordinates-Converter
     SUBDIR += p5-Geo-Coordinates-Converter-iArea
     SUBDIR += p5-Geo-WebService-Elevation-USGS
diff --git a/science/p5-Geo-Calc/Makefile b/science/p5-Geo-Calc/Makefile
new file mode 100644
index 000000000000..467bf1214bae
--- /dev/null
+++ b/science/p5-Geo-Calc/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	Geo-Calc
+PORTVERSION=	0.12
+CATEGORIES=	science perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:ASP
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	wen@FreeBSD.org
+COMMENT=	Simple geo calculator for points and distances
+WWW=		https://metacpan.org/release/Geo-Calc
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
+BUILD_DEPENDS=	${RUN_DEPENDS}
+RUN_DEPENDS=	p5-Moose>=0:devel/p5-Moose \
+		p5-MooseX-FollowPBP>=0.04:devel/p5-MooseX-FollowPBP \
+		p5-MooseX-Method-Signatures>=0.36:devel/p5-MooseX-Method-Signatures \
+		p5-Math-BigInt>=1.60:math/p5-Math-BigInt \
+		p5-Math-Complex>=1.04:math/p5-Math-Complex \
+		p5-Math-Units>=1.3:math/p5-Math-Units
+
+NO_ARCH=	yes
+USES=		perl5
+USE_PERL5=	configure
+
+.include <bsd.port.mk>
diff --git a/science/p5-Geo-Calc/distinfo b/science/p5-Geo-Calc/distinfo
new file mode 100644
index 000000000000..8c7e989371f7
--- /dev/null
+++ b/science/p5-Geo-Calc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666012786
+SHA256 (Geo-Calc-0.12.tar.gz) = 85fd7edc7dad86751db776eefaa6c31f97507f7dc907c5db2d949ccee7441c29
+SIZE (Geo-Calc-0.12.tar.gz) = 8739
diff --git a/science/p5-Geo-Calc/pkg-descr b/science/p5-Geo-Calc/pkg-descr
new file mode 100644
index 000000000000..bb65e378b9b1
--- /dev/null
+++ b/science/p5-Geo-Calc/pkg-descr
@@ -0,0 +1,4 @@
+Geo::Calc implements a variety of calculations for latitude/longitude points.
+
+All these formulare are for calculations on the basis of a spherical earth
+(ignoring ellipsoidal effects) which is accurate enough* for most purposes.
diff --git a/science/p5-Geo-Calc/pkg-plist b/science/p5-Geo-Calc/pkg-plist
new file mode 100644
index 000000000000..71ddb2d09ad1
--- /dev/null
+++ b/science/p5-Geo-Calc/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Geo/Calc.pm
+%%PERL5_MAN3%%/Geo::Calc.3.gz