git: e242c1d3532a - main - math/octave-forge-onsas: new port.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Fri, 28 Oct 2022 23:57:13 UTC
The branch main has been updated by stephen:

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

commit e242c1d3532a2e9bc5e4db9184021baacaf508d5
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-10-28 23:53:34 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-10-28 23:53:34 +0000

    math/octave-forge-onsas: new port.
    
    ONSAS is an Open Nonlinear Structural Analysis Solver. It is a
    GNU-Octave code for static/dynamic and linear/non-linear analysis
    of structures formed by solid, beam, truss or plane components.
---
 math/Makefile                     |  1 +
 math/octave-forge-onsas/Makefile  | 30 ++++++++++++++++++++++++++++++
 math/octave-forge-onsas/distinfo  |  3 +++
 math/octave-forge-onsas/pkg-descr | 10 ++++++++++
 4 files changed, 44 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 98ef25f55956..4c23a536782c 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -591,6 +591,7 @@
     SUBDIR += octave-forge-octclip
     SUBDIR += octave-forge-octproj
     SUBDIR += octave-forge-odebvp
+    SUBDIR += octave-forge-onsas
     SUBDIR += octave-forge-optics
     SUBDIR += octave-forge-optim
     SUBDIR += octave-forge-optiminterp
diff --git a/math/octave-forge-onsas/Makefile b/math/octave-forge-onsas/Makefile
new file mode 100644
index 000000000000..d3b23bb08f94
--- /dev/null
+++ b/math/octave-forge-onsas/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	octave-forge-onsas
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.5
+CATEGORIES=	math
+
+MAINTAINER=	stephen@FreeBSD.org
+COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
+WWW=		http://octave.sourceforge.net/
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKDIR}/${OCTSRC}/COPYING
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	ONSAS
+GH_PROJECT=	ONSAS.m
+
+# OCTSRC is the name of the directory of the package.
+# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
+OCTSRC=		${GH_PROJECT}-${DISTVERSION}
+
+.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-onsas/distinfo b/math/octave-forge-onsas/distinfo
new file mode 100644
index 000000000000..bc584ae19e65
--- /dev/null
+++ b/math/octave-forge-onsas/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1667000730
+SHA256 (octave-forge/ONSAS-ONSAS.m-v0.2.5_GH0.tar.gz) = 8759eb3c2a591bdd381c35966d725148db57436cc761abb07a06cf3052257106
+SIZE (octave-forge/ONSAS-ONSAS.m-v0.2.5_GH0.tar.gz) = 1644579
diff --git a/math/octave-forge-onsas/pkg-descr b/math/octave-forge-onsas/pkg-descr
new file mode 100644
index 000000000000..a063ac5afb6e
--- /dev/null
+++ b/math/octave-forge-onsas/pkg-descr
@@ -0,0 +1,10 @@
+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 onsas.
+
+ ONSAS is an Open Nonlinear Structural Analysis Solver. It is a GNU-Octave
+code for static/dynamic and linear/non-linear analysis of structures formed
+by solid, beam, truss or plane components.