aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2022-11-21 12:37:54 +0000
committerWen Heping <wen@FreeBSD.org>2022-11-21 12:37:54 +0000
commit26024f6b780d992dd909b4d8d16267ed4e61ab2c (patch)
tree66abb7554e35e7b2d6148cff59c883eebb9d5937
parentb4e1d38f10e15be5ff175dcb24787dee0da3d9f4 (diff)
downloadports-26024f6b780d992dd909b4d8d16267ed4e61ab2c.tar.gz
ports-26024f6b780d992dd909b4d8d16267ed4e61ab2c.zip
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.
-rw-r--r--science/Makefile1
-rw-r--r--science/p5-Geo-Calc/Makefile27
-rw-r--r--science/p5-Geo-Calc/distinfo3
-rw-r--r--science/p5-Geo-Calc/pkg-descr4
-rw-r--r--science/p5-Geo-Calc/pkg-plist2
5 files changed, 37 insertions, 0 deletions
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