File: rules

package info (click to toggle)
wxpython3.0 3.0.2.0+dfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 482,632 kB
  • sloc: cpp: 2,127,216; python: 294,089; makefile: 51,946; ansic: 19,033; sh: 3,013; xml: 1,629; perl: 17
file content (53 lines) | stat: -rwxr-xr-x 1,867 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
46
47
48
49
50
51
52
53
#!/usr/bin/make -f

%:
	dh $@ --with python2 --sourcedirectory=wxPython

override_dh_auto_clean:
	dh_auto_clean -- WXPORT=gtk3

override_dh_auto_build:
	dh_auto_build -- WXPORT=gtk3

override_dh_auto_install:
	dh_auto_install -- WXPORT=gtk3
	:
	# Included in debian/copyright:
	rm debian/tmp/usr/lib/python*/dist-packages/wx-*/wx/tools/XRCed/license.txt
	:
	# Fix image-file-in-usr-lib lintian warnings:
	t=/usr/share/wx-3.0-gtk/XRCed/plugins ;\
	d=debian/tmp$$t ;\
	mkdir -p "$$d" ;\
	for s in debian/tmp/usr/lib/python*/dist-packages/wx-*/wx/tools/XRCed/plugins/bitmaps ; do\
	    mv "$$s" "$$d"/ ;\
	    ln -s "$$t"/bitmaps "$$s" ;\
	done
	t=/usr/share/wx-3.0-gtk/agw ;\
	d=debian/tmp$$t ;\
	mkdir -p "$$d" ;\
	for s in debian/tmp/usr/lib/python*/dist-packages/wx-*/wx/lib/agw/data ; do\
	    mv "$$s" "$$d"/ ;\
	    ln -s "$$t"/data "$$s" ;\
	done
	:
	# wx.pth is managed by alternatives, so move in to wx3.0.pth in the
	# appropriate place.
	mkdir -p debian/tmp/usr/lib/wx/python
	mv debian/tmp/usr/lib/python*/dist-packages/wx.pth \
	   debian/tmp/usr/lib/wx/python/wx3.0.pth
	# Then create a symlink from where wx.pth was to where the alternative
	# lives.  Create it absolute, since it will likely get moved by
	# whatever the latest dh*py* tool is, and dh_link will fix it to be
	# relative for us later on.
	ln -s /usr/lib/wx/python/wx.pth \
	    debian/tmp/usr/lib/python*/dist-packages/

override_dh_install:
	dh_install
	# These are packaged in the -media subpackage:
	rm -f debian/python-wxgtk3.0/usr/lib/python*/dist-packages/wx-*-gtk*/wx/_media.*so \
	      debian/python-wxgtk3.0/usr/lib/python*/dist-packages/wx-*-gtk*/wx/media.py
	# These are packaged in the -webview subpackage:
	rm -f debian/python-wxgtk3.0/usr/lib/python*/dist-packages/wx-*-gtk*/wx/_html2.*so \
	      debian/python-wxgtk3.0/usr/lib/python*/dist-packages/wx-*-gtk*/wx/html2.py