File: rules

package info (click to toggle)
django-simple-captcha 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 540 kB
  • ctags: 234
  • sloc: python: 1,122; makefile: 82; sh: 4
file content (20 lines) | stat: -rwxr-xr-x 579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=django-captcha

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

.PHONY: override_dh_auto_test
override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="cd testproject && {interpreter} manage.py test captcha"

override_dh_install:
	dh_install

	find debian/python-django-captcha -name Vera.ttf -exec \
		ln -sf /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf {} \;;

	find debian/python3-django-captcha -name Vera.ttf -exec \
		ln -sf /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf {} \;;