File: rules

package info (click to toggle)
mayavi2 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 17,496 kB
  • ctags: 11,495
  • sloc: python: 48,454; makefile: 127; fortran: 60; sh: 5
file content (45 lines) | stat: -rwxr-xr-x 1,637 bytes parent folder | download
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
#!/usr/bin/make -f

DEB_DESTDIR			 = $(CURDIR)/debian/mayavi2/
JQUERY				 = /usr/share/javascript/jquery/jquery.js
HTMLDOCS                         = /usr/share/doc/mayavi2/html/
PYVERS                           = $(shell pyversions -r -v)
PYINSTALL			 = /usr/lib/python2.7/dist-packages/

%:
	dh --with python2 $@

override_dh_clean:
	dh_clean
	rm -rf ./mayavi/images/m2_about.jpg

override_dh_install:
	dh_install
	dh_numpy
	find $(DEB_DESTDIR) -name 'image_LICENSE.txt' -delete
	find $(DEB_DESTDIR) -name '*.idx' -delete
	find $(DEB_DESTDIR) -name 'jquery.js*' -delete
	$(RM) $(DEB_DESTDIR)usr/share/doc/mayavi2/docs/mayavi2.man*
	$(RM) $(DEB_DESTDIR)usr/share/doc/mayavi2/docs/html.zip
	$(RM) $(DEB_DESTDIR)usr/share/doc/mayavi2/docs/source/mayavi/sphinxext/sphinxext/__init__.pyc
	find  $(DEB_DESTDIR)usr/share/doc -name "*LICENSE*" -delete

override_dh_installdeb:
	# remove extraneous directories
	for py in $(PYVERS); do\
		rm -rf $(DEB_DESTDIR)/usr/lib/python$$py/dist-packages/examples;\
		rm -rf $(DEB_DESTDIR)/usr/lib/python$$py/dist-packages/docs;\
		rm -rf $(DEB_DESTDIR)/usr/lib/python$$py/dist-packages/integrationtests;\
	done
	dh_installdeb
	chmod +x $(DEB_DESTDIR)/$(PYINSTALL)/mayavi/scripts/mayavi2.py
	chmod -x $(DEB_DESTDIR)/$(PYINSTALL)/mayavi/tests/data/cellsnd.ascii.inp
	dh_link $(PYINSTALL)/mayavi/scripts/mayavi2.py /usr/bin/mayavi2
	dh_link $(JQUERY) /usr/share/doc/mayavi2/docs/build/mayavi/html/jquery.js
	dh_link $(JQUERY) /usr/share/doc/mayavi2/docs/build/tvtk/html/jquery.js

override_dh_strip_nondeterminism:
	dh_strip_nondeterminism -Xpng

get-orig-source:
	-uscan --force-download --repack --rename