git: 9d517049f0e0 - main - math/octave-forge-websockets: new port.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Sun, 23 Oct 2022 04:15:47 UTC
The branch main has been updated by stephen:

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

commit 9d517049f0e01b36ad2dbf5dcfeaa758a689503d
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-10-23 04:14:44 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-10-23 04:14:44 +0000

    math/octave-forge-websockets: new port.
    
    Simple implementation of the Websockets protocol for GNU Octave.
---
 math/Makefile                          |  1 +
 math/octave-forge-websockets/Makefile  | 30 ++++++++++++++++++++++++++++++
 math/octave-forge-websockets/distinfo  |  3 +++
 math/octave-forge-websockets/pkg-descr |  8 ++++++++
 4 files changed, 42 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index d23b8a42bc1a..b96cea6c62cd 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -609,6 +609,7 @@
     SUBDIR += octave-forge-tcl-octave
     SUBDIR += octave-forge-tsa
     SUBDIR += octave-forge-video
+    SUBDIR += octave-forge-websockets
     SUBDIR += octave-forge-zenity
     SUBDIR += octave-forge-zeromq
     SUBDIR += octomap
diff --git a/math/octave-forge-websockets/Makefile b/math/octave-forge-websockets/Makefile
new file mode 100644
index 000000000000..920dde40ddb6
--- /dev/null
+++ b/math/octave-forge-websockets/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	octave-forge-websockets
+PORTVERSION=	0.1.0
+CATEGORIES=	math
+MASTER_SITES=	https://github.com/gnu-octave/octave-websockets/archive/
+DISTNAME=	v${DISTVERSIONFULL}
+DIST_SUBDIR=	octave-forge/${PORTNAME}
+
+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=		octave-${OCTAVE_PKGNAME}-${PORTVERSION}
+
+RUN_DEPENDS+=	${TARBALLS_DIR}/sockets.tar.gz:math/octave-forge-sockets
+
+.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-websockets/distinfo b/math/octave-forge-websockets/distinfo
new file mode 100644
index 000000000000..3e61f1ba7e95
--- /dev/null
+++ b/math/octave-forge-websockets/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666497529
+SHA256 (octave-forge/octave-forge-websockets/v0.1.0.tar.gz) = 926ef8d711935ecae1384f5476e10104c1d83c2526ae7782588da804aa42df94
+SIZE (octave-forge/octave-forge-websockets/v0.1.0.tar.gz) = 12915
diff --git a/math/octave-forge-websockets/pkg-descr b/math/octave-forge-websockets/pkg-descr
new file mode 100644
index 000000000000..a86232856fcf
--- /dev/null
+++ b/math/octave-forge-websockets/pkg-descr
@@ -0,0 +1,8 @@
+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 websockets.
+
+ Simple implementation of the Websockets protocol for GNU Octave.