git: 78b0758dc498 - main - math/octave-forge-geographiclib: new port.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Tue, 25 Oct 2022 15:36:45 UTC
The branch main has been updated by stephen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=78b0758dc498fcf8856f3d3c61389be00710fd33

commit 78b0758dc498fcf8856f3d3c61389be00710fd33
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-10-25 15:34:29 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-10-25 15:35:52 +0000

    math/octave-forge-geographiclib: new port.
    
    Native Octave/MATLAB implementations of a subset of the C++ library,
    GeographicLib. Key components of this toolbox are: (a) Geodesics,
    direct, inverse, area calculations; (b) Projections, transverse
    Mercator, polar stereographic, etc; (c) Grid systems, UTM, UPS, MGRS;
    (d) Geoid lookup, egm84, egm96, egm2008 geoids supported; (e) Geometric
    transformations, geocentric, local cartesian; (f) Great ellipse, direct,
    inverse, area calculations.
---
 math/Makefile                             |  1 +
 math/octave-forge-geographiclib/Makefile  | 27 +++++++++++++++++++++++++++
 math/octave-forge-geographiclib/distinfo  |  3 +++
 math/octave-forge-geographiclib/pkg-descr | 13 +++++++++++++
 4 files changed, 44 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 7c3ff21fbd1e..2709dfda5176 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -549,6 +549,7 @@
     SUBDIR += octave-forge-ga
     SUBDIR += octave-forge-general
     SUBDIR += octave-forge-generate_html
+    SUBDIR += octave-forge-geographiclib
     SUBDIR += octave-forge-geometry
     SUBDIR += octave-forge-gnuplot
     SUBDIR += octave-forge-gsl
diff --git a/math/octave-forge-geographiclib/Makefile b/math/octave-forge-geographiclib/Makefile
new file mode 100644
index 000000000000..81c50e71de2c
--- /dev/null
+++ b/math/octave-forge-geographiclib/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	octave-forge-geographiclib
+PORTVERSION=	2.0
+CATEGORIES=	math
+MASTER_SITES=	https://sourceforge.net/projects/geographiclib/files/distrib-Octave/
+DISTNAME=	${OCTAVE_PKGNAME}-octave-${DISTVERSIONFULL}
+
+MAINTAINER=	stephen@FreeBSD.org
+COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
+WWW=		http://octave.sourceforge.net/
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKDIR}/${OCTSRC}/COPYING
+
+# OCTSRC is the name of the directory of the package.
+# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
+OCTSRC=		${DISTNAME}
+
+.include "${.CURDIR}/../../Mk/bsd.octave.mk"
+
+do-build:
+	@${DO_NADA}
+
+post-build:
+	${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure
+	cd ${WRKDIR} && ${TAR} cfz ${OCTAVE_DISTNAME}.tar.gz ${OCTSRC}
+
+.include <bsd.port.mk>
diff --git a/math/octave-forge-geographiclib/distinfo b/math/octave-forge-geographiclib/distinfo
new file mode 100644
index 000000000000..eef15d78aba0
--- /dev/null
+++ b/math/octave-forge-geographiclib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666711283
+SHA256 (octave-forge/geographiclib-octave-2.0.tar.gz) = 3ca60b9a566c89a6c0e4a30876948939ad561c112adea86b9f0e6f02dc59cb32
+SIZE (octave-forge/geographiclib-octave-2.0.tar.gz) = 58955
diff --git a/math/octave-forge-geographiclib/pkg-descr b/math/octave-forge-geographiclib/pkg-descr
new file mode 100644
index 000000000000..036365f9fdd7
--- /dev/null
+++ b/math/octave-forge-geographiclib/pkg-descr
@@ -0,0 +1,13 @@
+The octave-forge package is the result of The GNU Octave Repositry project,
+which is intended to be a central location for custom scripts, functions and
+extensions for GNU Octave. contains the source for all the functions plus
+build and install scripts.
+
+This is geographiclib.
+
+ Native Octave/MATLAB implementations of a subset of the C++ library,
+GeographicLib. Key components of this toolbox are: (a) Geodesics, direct,
+inverse, area calculations; (b) Projections, transverse Mercator, polar
+stereographic, etc; (c) Grid systems, UTM, UPS, MGRS; (d) Geoid lookup, egm84,
+egm96, egm2008 geoids supported; (e) Geometric transformations, geocentric,
+local cartesian; (f) Great ellipse, direct, inverse, area calculations.