[openems] 01/01: Install .oct files at the correct place

Ruben Undheim rubund-guest at moszumanska.debian.org
Thu Oct 6 21:54:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository openems.

commit 95f11f17ad90ddabd4b3e1bd31559fb1c8ecce21
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date:   Thu Oct 6 23:53:36 2016 +0200

    Install .oct files at the correct place
---
 debian/octave-openems.install | 1 +
 debian/rules                  | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/debian/octave-openems.install b/debian/octave-openems.install
index f53d8df..13b1f0f 100644
--- a/debian/octave-openems.install
+++ b/debian/octave-openems.install
@@ -1,4 +1,5 @@
 usr/share/openEMS/matlab/* /usr/share/octave/packages/openEMS-0.0.34/
+usr/lib/*/octave
 usr/share/CSXCAD/matlab/* /usr/share/octave/packages/CSXCAD-0.0.34/
 debian/openEMS.packinfo/* /usr/share/octave/packages/openEMS-0.0.34/packinfo/
 debian/CSXCAD.packinfo/* /usr/share/octave/packages/CSXCAD-0.0.34/packinfo/
diff --git a/debian/rules b/debian/rules
index c14726e..d4bea57 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,11 @@ PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
 VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
+OCTAVE_BPATH = usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/octave/packages
+OCTAVE_HOSTTYPE = $(shell octave-config -p CANONICAL_HOST_TYPE)
+OCTAVE_API_VERSION = $(shell octave-config -p API_VERSION)
+OCTAVE_FULLBPATH = $(OCTAVE_BPATH)/openEMS-0.0.34/$(OCTAVE_HOSTTYPE)-$(OCTAVE_API_VERSION)
+
 %:
 	dh $@
 
@@ -29,6 +34,9 @@ override_dh_auto_install:
 	cd AppCSXCAD && make
 	cd AppCSXCAD && make install DESTDIR=../debian/tmp
 	cd debian/tmp/usr/share/openEMS/matlab && CXXFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" mkoctfile -lhdf5_cpp -DH5_USE_16_API h5readatt_octave.cc
+	mkdir debian/tmp/$(OCTAVE_FULLBPATH)
+	mv debian/tmp/usr/share/openEMS/matlab/h5readatt_octave.oct /$(OCTAVE_FULLBPATH)/
+	rm debian/tmp/usr/share/openEMS/matlab/h5readatt_octave.o
 
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openems.git



More information about the debian-science-commits mailing list