File: rules

package info (click to toggle)
citeproc-py 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,360 kB
  • sloc: xml: 15,402; python: 5,111; makefile: 18; sh: 7
file content (26 lines) | stat: -rwxr-xr-x 914 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export PYBUILD_NAME=citeproc

include /usr/share/dpkg/default.mk
include /usr/share/dpkg/default.mk
VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
include /usr/share/dpkg/default.mk
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" dh_auto_test

override_dh_installdocs:
	dh_installdocs -A README.md

override_dh_installexamples:
	dh_installexamples -A examples/*
	sed -i 's/usr\/bin\/env\ python/usr\/bin\/env\ python3/' debian/python3-citeproc/usr/share/doc/python3-citeproc/examples/*py

override_dh_installman:
	txt2man -s 1 -v "python3-citeproc" -t "csl_unsorted" -r "$(VERSION)" -d "$(DEBDATE)" debian/csl_unsorted.txt > .pybuild/csl_unsorted.1
	dh_installman -ppython3-citeproc .pybuild/csl_unsorted.1