File: rules

package info (click to toggle)
gunicorn 23.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,484 kB
  • sloc: python: 9,675; makefile: 163; xml: 73; sh: 40; javascript: 35
file content (34 lines) | stat: -rwxr-xr-x 808 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
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

MANPAGES = $(patsubst %.pod,%.1, $(wildcard debian/manpages/*.pod))

export PYBUILD_NAME = gunicorn
export PYBUILD_TEST_PYTEST = 1
# https://bugs.debian.org/1078714
export PYBUILD_TEST_ARGS = -k 'not test_geventlet'

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

%.1: %.pod
	pod2man $< $@

override_dh_auto_build: $(MANPAGES)
	dh_auto_build

override_dh_auto_test:
	# Tests require internet access.

override_dh_auto_install:
	dh_auto_install
	# Shuffle scripts into the correct binary package.
	mkdir -p debian/gunicorn/usr/bin
	mv debian/python3-gunicorn/usr/bin/gunicorn* debian/gunicorn/usr/bin

override_dh_installexamples:
	dh_installexamples
	find \
		debian/gunicorn-examples/usr/share/doc/gunicorn-examples/examples \
		-type f \
		-executable \
		-print0 | xargs -0r chmod -x