git: 335294b898ef - main - math/octave-forge-psychrometrics: New port.

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Wed, 16 Nov 2022 17:36:39 UTC
The branch main has been updated by stephen:

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

commit 335294b898ef5b54dc7230a9a6e967ac18492aa3
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2022-11-16 17:35:42 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2022-11-16 17:35:42 +0000

    math/octave-forge-psychrometrics: New port.
    
    A toolbox for air-water vapor psychrometrics for GNU Octave.
---
 math/Makefile                                      |  1 +
 math/octave-forge-psychrometrics/Makefile          | 32 ++++++++++++++++++++++
 math/octave-forge-psychrometrics/distinfo          |  3 ++
 .../files/patch-DESCRIPTION                        |  9 ++++++
 .../files/patch-src_dewTemp.m                      | 11 ++++++++
 .../files/patch-src_satPress.m                     | 11 ++++++++
 math/octave-forge-psychrometrics/pkg-descr         |  8 ++++++
 7 files changed, 75 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index dabc050904a8..53ce6c201f4b 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -605,6 +605,7 @@
     SUBDIR += octave-forge-pde1dm
     SUBDIR += octave-forge-plot
     SUBDIR += octave-forge-ponchon-savarit
+    SUBDIR += octave-forge-psychrometrics
     SUBDIR += octave-forge-pythonic
     SUBDIR += octave-forge-quaternion
     SUBDIR += octave-forge-queueing
diff --git a/math/octave-forge-psychrometrics/Makefile b/math/octave-forge-psychrometrics/Makefile
new file mode 100644
index 000000000000..b0a87e4b37b8
--- /dev/null
+++ b/math/octave-forge-psychrometrics/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	octave-forge-psychrometrics
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.0
+CATEGORIES=	math
+
+MAINTAINER=	stephen@FreeBSD.org
+COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
+WWW=		https://packages.octave.org/
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKDIR}/${OCTSRC}/COPYING
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	aumpierre-unb
+GH_PROJECT=	Psychrometrics-for-GNU-Octave
+
+# 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}
+
+NO_ARCH=	yes
+
+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-psychrometrics/distinfo b/math/octave-forge-psychrometrics/distinfo
new file mode 100644
index 000000000000..41639002190d
--- /dev/null
+++ b/math/octave-forge-psychrometrics/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1668618913
+SHA256 (octave-forge/aumpierre-unb-Psychrometrics-for-GNU-Octave-v0.1.0_GH0.tar.gz) = 00a369e8ce649eb7d23eb868790016a97a5a7a37f354e7ec4801810245c87814
+SIZE (octave-forge/aumpierre-unb-Psychrometrics-for-GNU-Octave-v0.1.0_GH0.tar.gz) = 244774
diff --git a/math/octave-forge-psychrometrics/files/patch-DESCRIPTION b/math/octave-forge-psychrometrics/files/patch-DESCRIPTION
new file mode 100644
index 000000000000..7b2e8c6a8db3
--- /dev/null
+++ b/math/octave-forge-psychrometrics/files/patch-DESCRIPTION
@@ -0,0 +1,9 @@
+--- DESCRIPTION.orig	2022-11-16 17:29:56 UTC
++++ DESCRIPTION
+@@ -1,5 +1,5 @@
+ Name: psychrometrics
+-Version: 0.1.0-alpha
++Version: 0.1.0
+ Date: 2022-12-15
+ Author: Alexandre Umpierre (aumpierre@gmail.com)
+ Maintainer: Alexandre Umpierre
diff --git a/math/octave-forge-psychrometrics/files/patch-src_dewTemp.m b/math/octave-forge-psychrometrics/files/patch-src_dewTemp.m
new file mode 100644
index 000000000000..0949b432da3f
--- /dev/null
+++ b/math/octave-forge-psychrometrics/files/patch-src_dewTemp.m
@@ -0,0 +1,11 @@
+--- src/dewTemp.m.orig	2022-11-16 17:24:42 UTC
++++ src/dewTemp.m
+@@ -18,7 +18,7 @@
+ # It is also available at https://www.gnu.org/licenses/.
+ 
+ function Tdew=dewTemp(pw)
+-    c=load("constants.dat");
++    constants;
+     alpha=log(pw/1000);
+     Tdew=c(14)+...
+          c(15)*alpha+...
diff --git a/math/octave-forge-psychrometrics/files/patch-src_satPress.m b/math/octave-forge-psychrometrics/files/patch-src_satPress.m
new file mode 100644
index 000000000000..85d681d00f75
--- /dev/null
+++ b/math/octave-forge-psychrometrics/files/patch-src_satPress.m
@@ -0,0 +1,11 @@
+--- src/satPress.m.orig	2022-11-16 17:24:48 UTC
++++ src/satPress.m
+@@ -18,7 +18,7 @@
+ # It is also available at https://www.gnu.org/licenses/.
+ 
+ function psat=satPress(Tdry)
+-    c=load("constants.dat");
++    constants;
+     if -100<=Tdry-273.15 & Tdry-273.15<0
+         k=c(1)/Tdry+...
+         c(2)+...
diff --git a/math/octave-forge-psychrometrics/pkg-descr b/math/octave-forge-psychrometrics/pkg-descr
new file mode 100644
index 000000000000..212b0944d0f5
--- /dev/null
+++ b/math/octave-forge-psychrometrics/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 psychrometrics.
+
+ A toolbox for air-water vapor psychrometrics for GNU Octave.