1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#!/usr/bin/make -f
# -*- makefile -*-
XMDS_USER_DATA = $(CURDIR)/debian/xmds-user-data
#DH_VERBOSE=1
%:
dh $@ --with python2
override_dh_auto_install:
python setup.py install --root=debian/xmds2 --install-layout=deb
override_dh_auto_test:
( export PYTHONPATH=$$(pwd) ; \
export PATH=$$(pwd)/bin-test:$$PATH ; \
export XMDS_USER_DATA=$(XMDS_USER_DATA) ; \
unset CXXFLAGS ; export CXXFLAGS ; \
export OMPI_MCA_plm_rsh_agent=/bin/false ; \
mkdir bin-test ; \
install -m 755 bin/* bin-test ; \
xmds2 --reconfigure ; \
./run_tests.py ; \
cd ./examples ; \
xmds2 lorenz.xmds ; \
./lorenz | grep '^\(Seg\| Att\|Gen\)' ; \
xsil2graphics2 -m lorenz.xsil ; \
echo "source ('lorenz.m'); \
figure ('visible', 'off'); \
plot (t_1, xR_1); \
disp ('Octave plot succeeded')" \
| octave -qf )
override_dh_auto_clean:
dh_clean
cd xpdeint; waf/waf-light configure
make clean
rm -rf xmds2.egg-info/
rm -f xpdeint/.lock-waf_linux2_build
rm -f xpdeint/.wafpickle-98
rm -f xpdeint/Version.py
rm -rf xpdeint/c4che/
rm -f xpdeint/config.log
rm -rf build/
( cd examples ; rm -f lorenz.cc lorenz lorenz.xsil lorenz.h5 lorenz.m )
rm -rf testsuite_results $(XMDS_USER_DATA) bin-test
JSDIR = /usr/share/javascript
INSTDIR = $(CURDIR)/debian/xmds2-doc
DOCDIR = $(INSTDIR)/usr/share/doc/xmds2-doc
override_dh_installdocs:
dh_installdocs
# Fix Lintian error privacy-breach-may-use-debian-package
sed -i 's|http://cdn.mathjax.org/mathjax/latest/|file:///usr/share/javascript/mathjax/|g;s|http://www.xmds.org/|file:///usr/share/doc/xmds2-doc/|g' $(DOCDIR)/*.html $(DOCDIR)/_static/*.js
for i in underscore jquery ; do \
ln -fs $(JSDIR)/$$i/$$i.js $$(find $(INSTDIR) -name $$i.js) ; \
done
get-orig-source:
uscan --verbose --force-download --repack --compression=xz
|