File: rules

package info (click to toggle)
pyfribidi 0.11.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 156 kB
  • ctags: 83
  • sloc: python: 273; ansic: 81; sh: 46; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 621 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

%:
	dh $@ --buildsystem=python_distutils --with python2

override_dh_strip:
	dh_strip --dbg-package=python-pyfribidi-dbg

override_dh_installdocs:
	dh_installdocs --link-doc=python-pyfribidi

PYVERS:=$(shell pyversions -vr)

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	for py in $(PYVERS); do  \
	  PYTHONPATH=`ls -d $(CURDIR)/build/lib.*-$$py` \
	  python$$py test_pyfribidi.py ;\
	  PYTHONPATH=`ls -d $(CURDIR)/build/lib_d.*-$$py || ls -d $(CURDIR)/build/lib.*-$$py-pydebug` \
		python$$py-dbg test_pyfribidi.py ;\
	done
endif