Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2021 04:35:03 +0000 (UTC)
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r566263 - in head/math/octave-forge-level-set: . files
Message-ID:  <202102220435.11M4Z3xE025503@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: stephen
Date: Mon Feb 22 04:35:03 2021
New Revision: 566263
URL: https://svnweb.freebsd.org/changeset/ports/566263

Log:
  - Unbreak with patches.
  - Bump portrevision.

Added:
  head/math/octave-forge-level-set/files/patch-geomGamma.cpp   (contents, props changed)
  head/math/octave-forge-level-set/files/patch-internal__fastmarching.cpp   (contents, props changed)
  head/math/octave-forge-level-set/files/patch-internal__mesh.cpp   (contents, props changed)
Modified:
  head/math/octave-forge-level-set/Makefile
  head/math/octave-forge-level-set/files/patch-FastMarching.cpp

Modified: head/math/octave-forge-level-set/Makefile
==============================================================================
--- head/math/octave-forge-level-set/Makefile	Mon Feb 22 04:23:01 2021	(r566262)
+++ head/math/octave-forge-level-set/Makefile	Mon Feb 22 04:35:03 2021	(r566263)
@@ -3,7 +3,7 @@
 
 PORTNAME=	octave-forge-level-set
 PORTVERSION=	0.3.0
-PORTREVISION=	13
+PORTREVISION=	14
 CATEGORIES=	math
 
 MAINTAINER=	stephen@FreeBSD.org
@@ -14,8 +14,6 @@ LICENSE=	GPLv3
 ALL_TARGET=	oct
 USES=		compiler:c++0x
 GNU_CONFIGURE=	yes
-
-BROKEN=		does not build with octave-6.2.0
 
 # OCTSRC is the name of the directory of the package.
 # It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.

Modified: head/math/octave-forge-level-set/files/patch-FastMarching.cpp
==============================================================================
--- head/math/octave-forge-level-set/files/patch-FastMarching.cpp	Mon Feb 22 04:23:01 2021	(r566262)
+++ head/math/octave-forge-level-set/files/patch-FastMarching.cpp	Mon Feb 22 04:35:03 2021	(r566263)
@@ -1,5 +1,5 @@
---- FastMarching.cpp-orig	2015-02-20 03:51:59.000000000 +0000
-+++ FastMarching.cpp	2015-02-20 03:52:16.000000000 +0000
+--- FastMarching.cpp.orig	2015-12-17 12:32:55 UTC
++++ FastMarching.cpp
 @@ -22,6 +22,7 @@
  #include <cmath>
  #include <memory>

Added: head/math/octave-forge-level-set/files/patch-geomGamma.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/octave-forge-level-set/files/patch-geomGamma.cpp	Mon Feb 22 04:35:03 2021	(r566263)
@@ -0,0 +1,11 @@
+--- geomGamma.cpp.orig	2021-02-22 04:26:32 UTC
++++ geomGamma.cpp
+@@ -192,7 +192,7 @@ DEFUN_DLD (__levelset_geomGamma, args, nargout,
+       const Matrix inout = args(4).matrix_value ();
+ 
+       /* Extract and check the dimensions.  */
+-      const unsigned nNodes = phi.nelem ();
++      const unsigned nNodes = phi.numel ();
+       const unsigned nElem = getDimension (nodelist, -1, 4);
+       const unsigned nBdryEl = getDimension (bdryInd, -1, 1);
+       getDimension (edges, nBdryEl, 4);

Added: head/math/octave-forge-level-set/files/patch-internal__fastmarching.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/octave-forge-level-set/files/patch-internal__fastmarching.cpp	Mon Feb 22 04:35:03 2021	(r566263)
@@ -0,0 +1,20 @@
+--- internal_fastmarching.cpp.orig	2021-02-22 04:24:09 UTC
++++ internal_fastmarching.cpp
+@@ -74,7 +74,7 @@ DEFUN_DLD (__levelset_internal_fastmarching, args, nar
+         {
+           const Array<octave_idx_type> idx = getOctaveIdx (c);
+           assert (c.size () == D
+-                  && static_cast<dimensionT> (idx.length ()) == D);
++                  && static_cast<dimensionT> (idx.numel ()) == D);
+ 
+           if (domain(idx))
+             {
+@@ -99,7 +99,7 @@ DEFUN_DLD (__levelset_internal_fastmarching, args, nar
+         {
+           const Array<octave_idx_type> idx = getOctaveIdx (c);
+           assert (c.size () == D
+-                  && static_cast<dimensionT> (idx.length ()) == D);
++                  && static_cast<dimensionT> (idx.numel ()) == D);
+ 
+           const Grid& constGrid(grid);
+           const Entry* e = constGrid.get (c);

Added: head/math/octave-forge-level-set/files/patch-internal__mesh.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/octave-forge-level-set/files/patch-internal__mesh.cpp	Mon Feb 22 04:35:03 2021	(r566263)
@@ -0,0 +1,20 @@
+--- internal_mesh.cpp.orig	2021-02-22 04:30:13 UTC
++++ internal_mesh.cpp
+@@ -300,7 +300,7 @@ getInnerSegment (const octave_scalar_map& segs,
+ 
+   assert (innerPts.empty ());
+   const ColumnVector inners = segs.contents ("inners").column_vector_value ();
+-  const unsigned nInners = inners.nelem ();
++  const unsigned nInners = inners.numel ();
+   for (unsigned i = 0; i < nInners; ++i)
+     innerPts.push_back (inners(nInners - i - 1) - 1);
+ }
+@@ -387,7 +387,7 @@ DEFUN_DLD (__levelset_internal_mesh, args, nargout,
+         {
+           const unsigned cur = bdryElems(i) - 1;
+           const Cell cellSegs = bdryelSegs(i).cell_value ();
+-          const unsigned nSegs = cellSegs.nelem ();
++          const unsigned nSegs = cellSegs.numel ();
+ 
+           std::vector<octave_scalar_map> segs;
+           indexArr endEdges;



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