File: rules

package info (click to toggle)
bzr-xmloutput 0.8.8+bzr162-6
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 420 kB
  • sloc: python: 4,372; makefile: 7; sh: 2
file content (13 lines) | stat: -rwxr-xr-x 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

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

ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	# Unfortunately, bzr-xmloutput is currently broken in non-UTF-8 locales. We
	# cannot rely on there being a UTF-8 locale available on the buildd, so we
	# make our own just for the tests.
	localedef -i POSIX -f UTF-8 -c $(CURDIR)/POSIX.UTF-8 || :
	LOCPATH=$(CURDIR) LANG=POSIX.UTF-8 LANGUAGE=UTF-8 LC_ALL=POSIX.UTF-8 BZR_PLUGINS_AT=xmloutput@$(CURDIR) /usr/bin/bzr selftest -s bp.xmloutput
endif