File: rules

package info (click to toggle)
python-gflags 1.5.1-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 976 kB
  • sloc: python: 3,374; makefile: 15; sh: 5
file content (21 lines) | stat: -rwxr-xr-x 633 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
#!/usr/bin/make -f

export PYBUILD_NAME=gflags
export PYBUILD_DISABLE_python3=test

%:
	dh $@ --buildsystem=pybuild --with python3

override_dh_python3:
	chmod +w debian/python3-gflags/usr/bin/gflags2man
	dh_python3 --shebang=/usr/bin/python3

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="{interpreter} gflags_unittest.py" \
		dh_auto_test

override_dh_auto_install:
	dh_auto_install
	mv $(CURDIR)/debian/python3-gflags/usr/bin/gflags2man.py $(CURDIR)/debian/python3-gflags/usr/bin/gflags2man
	PYTHONPATH=$(CURDIR) python3 gflags2man.py --dest_dir $(CURDIR) $(CURDIR)/debian/python3-gflags/usr/bin/gflags2man