* Enable octave bindings. * Add getfem-octave-installation-destdir-support.patch to allow relevant Makefile to install octave bindings to DESTDIR * Add getfem-toolbox-without-matlab.patch to disable installation of various scripts to matlab toolbox when matlab is disabled; this allows us to drop the post-install rm to delete the toolbox dir. * Run make check as part of %check. OBS-URL: https://build.opensuse.org/request/show/1127926 OBS-URL: https://build.opensuse.org/package/show/science/getfem?expand=0&rev=5
44 lines
1.7 KiB
Diff
44 lines
1.7 KiB
Diff
Index: getfem-5.4.2/interface/src/octave/private/Makefile.am
|
|
===================================================================
|
|
--- getfem-5.4.2.orig/interface/src/octave/private/Makefile.am
|
|
+++ getfem-5.4.2/interface/src/octave/private/Makefile.am
|
|
@@ -16,5 +16,5 @@
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
EXTRA_DIST=./getopt.m
|
|
-toolboxdir=@TOOLBOXDIR@/private
|
|
+toolboxdir=@OCTAVETOOLBOXDIR@/private
|
|
toolbox_SCRIPTS=./getopt.m
|
|
Index: getfem-5.4.2/interface/tests/matlab-octave/Makefile.am
|
|
===================================================================
|
|
--- getfem-5.4.2.orig/interface/tests/matlab-octave/Makefile.am
|
|
+++ getfem-5.4.2/interface/tests/matlab-octave/Makefile.am
|
|
@@ -100,4 +100,6 @@ TESTS_ENVIRONMENT = \
|
|
# LD_LIBRARY_PATH=$(prefix)/lib:@GETFEMLIB@:@abs_top_builddir@/src:$(LD_LIBRARY_PATH)
|
|
|
|
toolboxdir=@TOOLBOXDIR@/tests
|
|
+if BUILDMEX
|
|
toolbox_SCRIPTS=$(EXTRA_DIST)
|
|
+endif
|
|
Index: getfem-5.4.2/interface/tests/meshes/Makefile.am
|
|
===================================================================
|
|
--- getfem-5.4.2.orig/interface/tests/meshes/Makefile.am
|
|
+++ getfem-5.4.2/interface/tests/meshes/Makefile.am
|
|
@@ -23,5 +23,6 @@ EXTRA_DIST= \
|
|
mixed_mesh.gmf
|
|
|
|
meshesdir=@TOOLBOXDIR@/meshes
|
|
+if BUILDMEX
|
|
meshes_SCRIPTS=$(EXTRA_DIST)
|
|
-
|
|
+endif
|
|
Index: getfem-5.4.2/interface/tests/matlab-octave/private/Makefile.am
|
|
===================================================================
|
|
--- getfem-5.4.2.orig/interface/tests/matlab-octave/private/Makefile.am
|
|
+++ getfem-5.4.2/interface/tests/matlab-octave/private/Makefile.am
|
|
@@ -1,3 +1,3 @@
|
|
EXTRA_DIST=./asserterr.m ./gfassert.m
|
|
-toolboxdir=@TOOLBOXDIR@/private
|
|
+toolboxdir=@OCTAVETOOLBOXDIR@/private
|
|
toolbox_SCRIPTS=./asserterr.m ./gfassert.m
|