Index: head/math/octave-forge-fuzzy-logic-toolkit/files/patch-inst_defuzz.m =================================================================== --- head/math/octave-forge-fuzzy-logic-toolkit/files/patch-inst_defuzz.m (revision 565859) +++ head/math/octave-forge-fuzzy-logic-toolkit/files/patch-inst_defuzz.m (nonexistent) @@ -1,62 +0,0 @@ ---- inst/defuzz.m.orig 2014-07-02 00:11:06 UTC -+++ inst/defuzz.m -@@ -1,4 +1,4 @@ --## Copyright (C) 2011-2014 L. Markowsky -+## Copyright (C) 2011-2018 L. Markowsky - ## - ## This file is part of the fuzzy-logic-toolkit. - ## -@@ -162,7 +162,16 @@ endfunction - function crisp_x = mom (x, y) - - max_y = max (y); -- y_val = @(y_val) if (y_val == max_y) 1 else 0 endif; -+ -+ function y_val = calc_yval(y_val) -+ if (y_val == max_y) -+ y_val = 1; -+ else -+ y_val = 0; -+ endif -+ endfunction -+ -+ y_val = @(y_val) calc_yval(y_val); - max_y_locations = arrayfun (y_val, y); - crisp_x = sum (x .* max_y_locations) / sum (max_y_locations); - -@@ -185,7 +194,16 @@ endfunction - function crisp_x = som (x, y) - - max_y = max (y); -- y_val = @(y_val) if (y_val == max_y) 1 else (NaN) endif; -+ -+ function y_val = calc_yval(y_val) -+ if (y_val == max_y) -+ y_val = 1; -+ else -+ y_val = (NaN); -+ endif -+ endfunction -+ -+ y_val = @(y_val) calc_yval(y_val); - max_y_locations = arrayfun (y_val, y); - crisp_x = min (x .* max_y_locations); - -@@ -207,7 +225,16 @@ endfunction - function crisp_x = lom (x, y) - - max_y = max (y); -- y_val = @(y_val) if (y_val == max_y) 1 else (NaN) endif; -+ -+ function y_val = calc_yval(y_val) -+ if (y_val == max_y) -+ y_val = 1; -+ else -+ y_val = (NaN); -+ endif -+ endfunction -+ -+ y_val = @(y_val) calc_yval(y_val); - max_y_locations = arrayfun (y_val, y); - crisp_x = max (x .* max_y_locations); - Property changes on: head/math/octave-forge-fuzzy-logic-toolkit/files/patch-inst_defuzz.m ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/math/octave-forge-fuzzy-logic-toolkit/Makefile =================================================================== --- head/math/octave-forge-fuzzy-logic-toolkit/Makefile (revision 565859) +++ head/math/octave-forge-fuzzy-logic-toolkit/Makefile (revision 565860) @@ -1,32 +1,31 @@ # Created by: Stephen Montgomery-Smith # $FreeBSD$ PORTNAME= octave-forge-fuzzy-logic-toolkit -PORTVERSION= 0.4.5 -PORTREVISION= 14 +PORTVERSION= 0.4.6 CATEGORIES= math MAINTAINER= stephen@FreeBSD.org COMMENT= Octave-forge package ${OCTAVE_PKGNAME} 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_PKGNAME} WRKSRC= ${WRKDIR}/${OCTSRC} # Only required so that patch will apply. .include "${.CURDIR}/../../Mk/bsd.octave.mk" do-build: @${DO_NADA} NO_ARCH= yes post-build: ${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC} .include Index: head/math/octave-forge-fuzzy-logic-toolkit/distinfo =================================================================== --- head/math/octave-forge-fuzzy-logic-toolkit/distinfo (revision 565859) +++ head/math/octave-forge-fuzzy-logic-toolkit/distinfo (revision 565860) @@ -1,2 +1,3 @@ -SHA256 (octave-forge/fuzzy-logic-toolkit-0.4.5.tar.gz) = b4c24ac48662ce413599721d2565e9eabf23ead6b9b36863d33740920aec4133 -SIZE (octave-forge/fuzzy-logic-toolkit-0.4.5.tar.gz) = 82960 +TIMESTAMP = 1613613796 +SHA256 (octave-forge/fuzzy-logic-toolkit-0.4.6.tar.gz) = 8d15485faea8c41256ec017758a85e85734b7381cdc9a7ad7f9c572c2507dd88 +SIZE (octave-forge/fuzzy-logic-toolkit-0.4.6.tar.gz) = 87717