Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2022 23:27:17 GMT
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 42792c474e2e - main - math/octave-forge-coder: new port.
Message-ID:  <202210282327.29SNRHZI020163@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by stephen:

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

commit 42792c474e2edc0761e6c3fbd93d70d916913826
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-10-28 23:26:13 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-10-28 23:26:13 +0000

    math/octave-forge-coder: new port.
    
    Coder is an Octave code generator and build system that, given a
    function name translates the function and all of its dependencies to
    C++ and builds a .oct shared module.
---
 math/Makefile                     |  1 +
 math/octave-forge-coder/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 math/octave-forge-coder/distinfo  |  3 +++
 math/octave-forge-coder/pkg-descr | 10 ++++++++++
 4 files changed, 48 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 5497cdc416e1..98ef25f55956 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -535,6 +535,7 @@
     SUBDIR += octave-forge-cfitsio
     SUBDIR += octave-forge-cgi
     SUBDIR += octave-forge-civil-engineering
+    SUBDIR += octave-forge-coder
     SUBDIR += octave-forge-communications
     SUBDIR += octave-forge-control
     SUBDIR += octave-forge-data-smoothing
diff --git a/math/octave-forge-coder/Makefile b/math/octave-forge-coder/Makefile
new file mode 100644
index 000000000000..07a288aa42e0
--- /dev/null
+++ b/math/octave-forge-coder/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	octave-forge-coder
+DISTVERSIONPREFIX=	coder-
+DISTVERSION=	1.7.0
+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=	shsajjadi
+GH_PROJECT=	OctaveCoder
+
+# OCTSRC is the name of the directory of the package.
+# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
+OCTSRC=		${GH_PROJECT}-coder-${DISTVERSION}
+
+WRKSRC=		${WRKDIR}/${OCTSRC}
+
+.include "${.CURDIR}/../../Mk/bsd.octave.mk"
+
+do-build:
+	cd ${WRKSRC} && \
+	octave-cli -W -H -q --no-site-file --eval "pre_install" && \
+	${RM} pre_install.m
+
+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-coder/distinfo b/math/octave-forge-coder/distinfo
new file mode 100644
index 000000000000..cef1914bbd56
--- /dev/null
+++ b/math/octave-forge-coder/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666996766
+SHA256 (octave-forge/shsajjadi-OctaveCoder-coder-1.7.0_GH0.tar.gz) = e373808593dcc813b5063d3d1898c854757d42e379376b7225d25f70923cf5dc
+SIZE (octave-forge/shsajjadi-OctaveCoder-coder-1.7.0_GH0.tar.gz) = 81206
diff --git a/math/octave-forge-coder/pkg-descr b/math/octave-forge-coder/pkg-descr
new file mode 100644
index 000000000000..07da425f1304
--- /dev/null
+++ b/math/octave-forge-coder/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 coder.
+
+ Coder is an Octave code generator and build system that, given a function
+name translates the function and all of its dependencies to C++ and builds a
+.oct shared module.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210282327.29SNRHZI020163>