File: rules

package info (click to toggle)
pyzor 1%3A0.4.0%2Bcvs20030201-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 356 kB
  • ctags: 394
  • sloc: python: 1,590; sh: 617; makefile: 16
file content (27 lines) | stat: -rwxr-xr-x 779 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
#!/usr/bin/make -f
DEB_PYTHON_SYSTEM=pysupport

include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk

BASE := $(CURDIR)/debian/pyzor
DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0

binary-indep-post-install/pyzor::
	# fix python interpreter
	cat scripts/pyzor | sed 's@#!/usr/bin/python2@#!/usr/bin/python@' > $(BASE)/usr/bin/pyzor
	cat scripts/pyzord | sed 's@#!/usr/bin/python2@#!/usr/bin/python@' > $(BASE)/usr/bin/pyzord
	rm -f lib/pyzor/*.pyc lib/pyzor/*.pyo

clean::
	rm -f lib/pyzor/*.pyc lib/pyzor/*.pyo

# workaround for a dpatch bug calling "debian/rules unpatch"
# instead of "dpatch deapply-all"
unpatch:
	dpatch deapply-all

binary-install/pyzor::
	dh_pysupport -p$(cdbs_curpkg)