git: b7cebbf64137 - main - math/octave-forge-piqp: New port

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Mon, 24 Mar 2025 00:54:55 UTC
The branch main has been updated by stephen:

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

commit b7cebbf64137b06e77a9802394ac62933aba5e24
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2025-03-24 00:51:44 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2025-03-24 00:51:44 +0000

    math/octave-forge-piqp: New port
    
     - PIQP is a Proximal Interior Point Quadratic Programming solver, which
       can solve dense and sparse quadratic programs.
---
 math/Makefile                    |  1 +
 math/octave-forge-piqp/Makefile  | 26 ++++++++++++++++++++++++++
 math/octave-forge-piqp/distinfo  |  3 +++
 math/octave-forge-piqp/pkg-descr |  9 +++++++++
 4 files changed, 39 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index d5026e994f55..1268670ca1ce 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -637,6 +637,7 @@
     SUBDIR += octave-forge-outliers
     SUBDIR += octave-forge-parallel
     SUBDIR += octave-forge-pde1dm
+    SUBDIR += octave-forge-piqp
     SUBDIR += octave-forge-pkg-octave-doc
     SUBDIR += octave-forge-plot
     SUBDIR += octave-forge-ponchon-savarit
diff --git a/math/octave-forge-piqp/Makefile b/math/octave-forge-piqp/Makefile
new file mode 100644
index 000000000000..34de4b8d3eae
--- /dev/null
+++ b/math/octave-forge-piqp/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	octave-forge-piqp
+PORTVERSION=	0.5.0
+CATEGORIES=	math
+MASTER_SITES=	https://github.com/PREDICT-EPFL/piqp/releases/download/v0.5.0/
+DISTNAME=	piqp-octave
+
+MAINTAINER=	stephen@FreeBSD.org
+COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
+WWW=		https://packages.octave.org/
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		octave
+
+OCTAVE_SRC=	${DISTNAME}
+WRKSRC=		${WRKDIR}/${OCTAVE_SRC}
+
+do-build:
+	cd ${WRKSRC}; \
+	octave-cli -W -H -q --no-site-file --eval make_piqp
+	${RM} ${WRKSRC}/src/piqp/interfaces/octave/package/DESCRIPTION
+	${RM} ${WRKSRC}/pre_install.m
+	${MV} ${WRKSRC}/piqp_oct.oct ${WRKSRC}/inst/.
+
+.include <bsd.port.mk>
diff --git a/math/octave-forge-piqp/distinfo b/math/octave-forge-piqp/distinfo
new file mode 100644
index 000000000000..6e4684ce5428
--- /dev/null
+++ b/math/octave-forge-piqp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1742773717
+SHA256 (octave-forge/piqp-octave.tar.gz) = 49a9bf3c7c242b7fd7293f5fe234ed321595822ce3fc4189d794c122e07fe88b
+SIZE (octave-forge/piqp-octave.tar.gz) = 3447606
diff --git a/math/octave-forge-piqp/pkg-descr b/math/octave-forge-piqp/pkg-descr
new file mode 100644
index 000000000000..f2f1657df940
--- /dev/null
+++ b/math/octave-forge-piqp/pkg-descr
@@ -0,0 +1,9 @@
+The octave-forge package is the result of The GNU Octave Repository 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 piqp.
+
+ PIQP is a Proximal Interior Point Quadratic Programming solver, which can
+solve dense and sparse quadratic programs.