File: rules

package info (click to toggle)
python-stem 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,876 kB
  • ctags: 2,796
  • sloc: python: 25,495; java: 312; makefile: 134; sh: 29
file content (39 lines) | stat: -rwxr-xr-x 1,147 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
#!/usr/bin/make -f
# -*- makefile -*-
#
#  # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PYVERS :=  python2.7
PY3VERS :=  $(shell py3versions -s -d)

%:
		dh $@ --with python2,python3

override_dh_auto_install:
	dh_auto_install
	set -ex; \
	for py in $(PYVERS); do \
	$$py setup.py install --root debian/python-stem \
	--install-layout=deb; \
	done; \
	for py in $(PY3VERS); do \
	$$py setup.py install --root debian/python3-stem \
	--install-layout=deb; \
	done; \
	mv debian/python-stem/usr/bin/tor-prompt debian/python-stem/usr/bin/python2-tor-prompt
	mv debian/python3-stem/usr/bin/tor-prompt debian/python3-stem/usr/bin/python3-tor-prompt
	
override_dh_auto_clean:
	dh_auto_clean -- --all
	rm -rf build debian/python2-tor-prompt.8 debian/python3-tor-prompt.8

override_dh_installexamples:
	dh_installexamples -ppython-stem tor-prompt
	dh_installexamples -ppython3-stem tor-prompt

override_dh_installman:
	cp debian/tor-prompt.8 debian/python2-tor-prompt.8
	cp debian/tor-prompt.8 debian/python3-tor-prompt.8
	dh_installman -ppython-stem debian/python2-tor-prompt.8
	dh_installman -ppython3-stem debian/python3-tor-prompt.8