[Pkg-scicomp-devel] xmds/trunk/debian

Rafael Laboissiere rafael at debian.org
Fri Nov 24 23:59:29 CET 2006


SVN commit 1345 by rafael:

Do the right thing as regards Octave:
* install file loadxsl.m in the m-files path (instead of /usr/bin)
* suggest the octave packages, via octave*-depends


 M  +4 -2      xmds/trunk/debian/control  
 M  +13 -2     xmds/trunk/debian/rules  


--- xmds/trunk/debian/control #1344:1345
@@ -2,12 +2,14 @@
 Section: science
 Priority: optional
 Maintainer: Christian T. Steigies <cts at debian.org>
-Build-Depends: cdbs, debhelper (>= 5), autotools-dev, fftw-dev, fftw3-dev
+Build-Depends: cdbs, debhelper (>= 5), autotools-dev, fftw-dev,
+  fftw3-dev, octave2.1-headers, octave2.9-headers
 Standards-Version: 3.7.2
 
 Package: xmds
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}
+Suggests: ${octave-2-9:Depends} | ${octave-2-1:Depends}
 Description: eXtensible multi-dimensional Simulator
  XMDS is a code generator that integrates equations. You write them down in
  human readable form in an XML file, and it goes away and writes and
--- xmds/trunk/debian/rules #1344:1345
@@ -1,6 +1,17 @@
 #!/usr/bin/make -f
-  
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
- 
+
+debdir  = $(CURDIR)/debian
+instdir = $(debdir)/xmds
+mdir    = $(instdir)/usr/share/octave/site/m
+
+install/xmds::
+	for v in 2.1 2.9 ; do octave$$v-depends ; done
+
+binary-install/xmds::
+	mkdir -p $(mdir)
+	mv $(instdir)/usr/bin/loadxsil.m $(mdir)
+	chmod 644 $(mdir)/loadxsil.m



More information about the Pkg-scicomp-devel mailing list