File: rules

package info (click to toggle)
python-chaco 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,736 kB
  • ctags: 4,326
  • sloc: python: 26,773; ansic: 1,217; makefile: 18; sh: 5
file content (24 lines) | stat: -rwxr-xr-x 794 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
21
22
23
24
#!/usr/bin/make -f

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

DEB_COMPRESS_EXCLUDE		:= .py .pdf
DEB_PYTHON_INSTALL_ARGS_ALL 	+= --single-version-externally-managed
DEB_DESTDIR			 = $(CURDIR)/debian/python-chaco
PYSHARED			 = $(DEB_DESTDIR)/usr/share/pyshared
PYLIBS			     = $(DEB_DESTDIR)/usr/lib/python*
EXAMPLES			 = $(DEB_DESTDIR)/usr/share/doc/python-chaco

install/python-chaco::
	find $(DEB_DESTDIR) -name "*LICENSE*" -delete
	dh_numpy

binary-predeb/python-chaco::
	find $(EXAMPLES) -type f -print0 | xargs -0 sed -i '/^#!/d'
	find $(PYLIBS) -type f -print0 | xargs -0 chmod 644
	find $(EXAMPLES) -type f -print0 | xargs -0 chmod 644
	find $(EXAMPLES) -name "*LICENSE*" -delete

get-orig-source:
	-uscan --force-download --rename