File: rules

package info (click to toggle)
python-cherrypy 2.2.1-3
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 796 kB
  • ctags: 1,079
  • sloc: python: 7,869; makefile: 15
file content (23 lines) | stat: -rwxr-xr-x 1,029 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pysupport

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

UPSTREAM_VERSION=$(shell head -n 1 debian/changelog | cut -d '(' -f 2 | cut -d ')' -f 1 | cut -d '-' -f 1)
DEB_COMPRESS_EXCLUDE=.py .pdf
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed --install-lib usr/share/python-support/python-cherrypy --install-data usr/share/doc/python-cherrypy
# hack around CDBS bug -- see #373678
DEB_PYTHON_INSTALL_ARGS := ${DEB_PYTHON_INSTALL_ARGS_ALL}
PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)

common-binary-post-install-indep::
	mv debian/python-cherrypy/usr/share/python-support/python-cherrypy/CherryPy-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
		debian/python-cherrypy/usr/share/python-support/python-cherrypy/CherryPy-${UPSTREAM_VERSION}.egg-info

clean::
	# hack (CDBS bug -- see #300149)
	-rm -rf build