File: rules

package info (click to toggle)
python-kyotocabinet 1.22-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 640 kB
  • ctags: 717
  • sloc: cpp: 2,966; python: 1,241; makefile: 89
file content (22 lines) | stat: -rwxr-xr-x 654 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
#!/usr/bin/make -f
%:
	dh $@ --with python3 --parallel

build3vers := $(shell py3versions -sv)

# Install manually as auto_install doesn't support python3
override_dh_auto_install:
	dh_install -ppython3-kyotocabinet
	set -e && for i in $(build3vers); do \
	  python$$i ./setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-kyotocabinet; \
	done

override_dh_installdocs-arch:
	dh_installdocs --link-doc=python3-kyotocabinet -ppython3-kyotocabinet-dbg
	dh_installdocs --remaining-packages

override_dh_strip:
	dh_strip --package=python3-kyotocabinet --dbg-package=python3-kyotocabinet-dbg

override_dh_builddeb:
	dh_builddeb -- -Zxz -z2