File: rules

package info (click to toggle)
bzr-xmloutput 0.8.8%2Bbzr162-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 420 kB
  • sloc: python: 4,372; makefile: 7; sh: 2
file content (13 lines) | stat: -rwxr-xr-x 514 bytes parent folder | download | duplicates (2)
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.utf8 || :
	LOCPATH=$(CURDIR) LC_ALL=POSIX.utf8 BZR_PLUGINS_AT=xmloutput@$(CURDIR) /usr/bin/bzr selftest -s bp.xmloutput
endif