[med-svn] r8997 - trunk/packages/libsbml/trunk/debian
Ivo Maintz
ivomaintz-guest at alioth.debian.org
Fri Dec 16 13:02:38 UTC 2011
Author: ivomaintz-guest
Date: 2011-12-16 13:02:37 +0000 (Fri, 16 Dec 2011)
New Revision: 8997
Modified:
trunk/packages/libsbml/trunk/debian/rules
Log:
fixed the build rules for octave
Modified: trunk/packages/libsbml/trunk/debian/rules
===================================================================
--- trunk/packages/libsbml/trunk/debian/rules 2011-12-16 11:37:16 UTC (rev 8996)
+++ trunk/packages/libsbml/trunk/debian/rules 2011-12-16 13:02:37 UTC (rev 8997)
@@ -20,7 +20,12 @@
CROSS= --build $(DEB_BUILD_GNU_TYPE)
endif
+### part1 of a dirty hack for octave bindings, see install: section ###
+LOCALOCTFILEDIR ?= usr$(shell grep LOCALOCTFILEDIR config/makefile-common-vars.mk | tr -s ' ' ' ' | cut -d\ -f3)
+# prevent the examples from beeing compressed...
+DEB_COMPRESS_EXCLUDE := .xml .pdf .py .c .h .cpp .in .cs .java .pl .rb .xsl
+
# shared library versions, option 1
version=5.2.0
major=5
@@ -108,6 +113,14 @@
$(MAKE) install DESTDIR=$(debtmp)
# ### not required for python2.7 ###
[ ! -d $(debtmp)/usr/lib/python2.6/ ] || find $(debtmp)/usr/lib/python2.6/ -type d -name site-packages -exec mv {} $(debtmp)/usr/lib/python2.6/dist-packages \; || true
+# ### _very_ dirty hack for working octave bindings ###
+ mkdir -p $(debtmp)/$(LOCALOCTFILEDIR)
+ cp src/bindings/matlab/buildSBML.m $(debtmp)/$(LOCALOCTFILEDIR)/
+ cp src/bindings/matlab/CheckAndConvert.m $(debtmp)/$(LOCALOCTFILEDIR)/
+ cp src/bindings/matlab/ConvertFormulaToMathML.m $(debtmp)/$(LOCALOCTFILEDIR)/
+ cp src/bindings/matlab/Contents.m $(debtmp)/$(LOCALOCTFILEDIR)/
+ cp src/bindings/matlab/isoctave.m $(debtmp)/$(LOCALOCTFILEDIR)/
+ cp src/bindings/matlab/isSBML_Model.m $(debtmp)/$(LOCALOCTFILEDIR)/
rm $(debtmp)/usr/lib/*/dist-packages/libsbml/*.pyc || true
mkdir $(debtmp)/usr/lib/perl5
mv $(debtmp)/usr/lib/perl/*/* $(debtmp)/usr/lib/perl5/
More information about the debian-med-commit
mailing list