commit: 7cf07131421f0f51511dd6149d27c6ed5f45381e
Author: Alessandro Barbieri gmail com>
AuthorDate: Thu May 5 07:30:47 2022 +
Commit: Alessandro Barbieri gmail com>
CommitDate: Thu May 5 07:32:17 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7cf07131
dev-octave/control: new package, add 3.4.0
Signed-off-by: Alessandro Barbieri gmail.com>
dev-octave/control/Manifest| 2 +
dev-octave/control/control-3.4.0.ebuild| 32 +
.../files/control-3.4.0-respect-flags.patch| 19 +
.../control/files/control-lapack-3.10.0.patch | 53 ++
.../files/control-use-external-slicot.patch| 80 ++
dev-octave/control/metadata.xml| 28
6 files changed, 214 insertions(+)
diff --git a/dev-octave/control/Manifest b/dev-octave/control/Manifest
new file mode 100644
index 0..5eb70e5e1
--- /dev/null
+++ b/dev-octave/control/Manifest
@@ -0,0 +1,2 @@
+DIST control-3.4.0.tar.gz 2981767 BLAKE2B
c1c13679b10e1b1cee3d7a2057059f1998a7af460de213c18e8e4affbbe8f5068f690ac788ba8422bd91b7a1142f10c9642c0dae1077205599b063c82ccf00bd
SHA512
60728f2c42d3d3ad0cdc1e32c458fdcd0a8ccdfd1a00dd27bcb321cbf891b030c005a5ada6de6b745f93efa5a10e9d42004024a575b8088cb46336c677432a5f
+DIST octaveforge_configure 75 BLAKE2B
a6d08088e51628113f7ee2d125fad93a20978cdec60d30cd6628a6056b127968ccf0bc58d2a01166ecc68e8e1ff25518ecf0a2fff69f1ccf63ba2e95eb327db2
SHA512
f293f8ac550953d7c758dadd1bfbf57754a725e6480e8f11b85b883370989b323324492a16118a9b4bfa897a6720f7f20776754cbf763c61bfa10c90191d9a8f
diff --git a/dev-octave/control/control-3.4.0.ebuild
b/dev-octave/control/control-3.4.0.ebuild
new file mode 100644
index 0..00ae92738
--- /dev/null
+++ b/dev-octave/control/control-3.4.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit octaveforge
+
+DESCRIPTION="Computer-Aided Control System Design"
+HOMEPAGE="https://octave.sourceforge.io/control/index.html;
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=">=sci-mathematics/octave-4.0.0"
+RDEPEND="
+ ${DEPEND}
+ sci-libs/slicot
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-use-external-slicot.patch"
+ "${FILESDIR}/${PN}-lapack-3.10.0.patch"
+ "${FILESDIR}/${P}-respect-flags.patch"
+)
+
+src_prepare() {
+ default
+ #bundled slicot
+ rm -f src/slicot.tar.gz || die
+ octaveforge_src_prepare
+}
diff --git a/dev-octave/control/files/control-3.4.0-respect-flags.patch
b/dev-octave/control/files/control-3.4.0-respect-flags.patch
new file mode 100644
index 0..a34eff85a
--- /dev/null
+++ b/dev-octave/control/files/control-3.4.0-respect-flags.patch
@@ -0,0 +1,19 @@
+--- a/src/Makefile
b/src/Makefile
+@@ -15,7 +15,7 @@
+
+ AR := $(shell $(MKOCTFILE) -p AR)
+
+-PKG_CXXFLAGS := -Wall -Wno-deprecated-declarations $(PKG_CXXFLAGS_APPEND)
++PKG_CXXFLAGS := $(CXXFLAGS) -Wall -Wno-deprecated-declarations
$(PKG_CXXFLAGS_APPEND)
+
+ all: __control_slicot_functions__.oct \
+ __control_helper_functions__.oct
+@@ -66,6 +66,7 @@
+
+ # helper functions
+ __control_helper_functions__.oct: __control_helper_functions__.cc
++ LDFLAGS="$(LDFLAGS)" \
+ $(MKOCTFILE) $(PKG_CXXFLAGS) __control_helper_functions__.cc
+
+ clean:
diff --git a/dev-octave/control/files/control-lapack-3.10.0.patch
b/dev-octave/control/files/control-lapack-3.10.0.patch
new file mode 100644
index 0..519994bca
--- /dev/null
+++ b/dev-octave/control/files/control-lapack-3.10.0.patch
@@ -0,0 +1,53 @@
+Description: Skip tests that fail with lapack 3.10.0
+Author: Sébastien Villemot
+Bug: https://savannah.gnu.org/bugs/?61205
+Last-Update: 2021-09-22
+--- a/inst/btaconred.m
b/inst/btaconred.m
+@@ -277,5 +277,5 @@ endfunction
+ %! Mo = [Ao, Bo; Co, Do];
+ %! Me = [Ae, Be; Ce, De];
+ %!
+-%!assert (Mo, Me, 1e-4);
++%!xtest assert (Mo, Me, 1e-4);
+ %!assert (Info.hsvc, HSVCe, 1e-4);
+--- a/inst/btamodred.m
b/inst/btamodred.m
+@@ -300,5 +300,5 @@ endfunction
+ %! Mo = [Ao, Bo; Co, Do];
+ %! Me = [Ae, Be; Ce, De];
+ %!
+-%!assert (Mo, Me, 1e-4);
++%!xtest assert (Mo, Me, 1e-4);
+ %!assert (Info.hsv, HSVe, 1e-4);
+--- a/inst/moen4.m
b/inst/moen4.m
+@@ -3028,7 +3028,7 @@ endfunction
+ %! De = [ -0.4997 0.0451
+ %!-1.0011 -0.5567 ];
+ %!
+-%!assert (SYS.A, Ae, 1e-4);
+-%!assert (SYS.B, Be, 1e-4);
+-%!assert (SYS.C, Ce, 1e-4);
++%!xtest assert (SYS.A, Ae, 1e-4);
++%!xtest assert (SYS.B, Be, 1e-4);
++%!xtest assert (SYS.C, Ce, 1e-4);
+ %!assert (SYS.D, De, 1e-4);
+--- a/inst/hnamodred.m
b/inst/hnamodred.m
+@@ -465,5 +465,5 @@ endfunction
+ %! Mo = [Ao, Bo; Co, Do];
+ %! Me = [Ae, Be; Ce, De];
+ %!
+-%!assert (Mo, Me, 1e-4);
++%!xtest assert (Mo, Me, 1e-4);
+ %!assert (Info.hsv, HSVe, 1e-4);
+--- a/inst/cfconred.m
b/inst/cfconred.m
+@@ -330,5 +330,5 @@ endfunction
+ %!