5 | 5 |
# permitted in any medium without royalty provided the copyright notice and this
|
6 | 6 |
# notice are preserved.
|
7 | 7 |
|
|
8 |
#export DH_VERBOSE=1
|
8 | 9 |
export PYTHONPATH=$(abspath $(CURDIR))
|
|
10 |
PKGDIR=$(CURDIR)/debian/python-werkzeug/
|
|
11 |
|
|
12 |
-include /usr/share/python/python.mk
|
|
13 |
ifeq (,$(py_libdir))
|
|
14 |
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
|
|
15 |
endif
|
9 | 16 |
|
10 | 17 |
%:
|
11 | 18 |
dh $@
|
12 | 19 |
|
13 | |
#DEB_PYTHON_SYSTEM := pysupport
|
|
20 |
override_dh_auto_install:
|
|
21 |
python setup.py install \
|
|
22 |
--single-version-externally-managed \
|
|
23 |
--install-layout=deb \
|
|
24 |
--root $(PKGDIR)
|
|
25 |
touch $(PKGDIR)$(call py_libdir,$(shell pyversions -vd))/werkzeug/debug/shared/.noinit
|
|
26 |
touch $(PKGDIR)$(call py_libdir,$(shell pyversions -vd))/werkzeug/debug/templates/.noinit
|
|
27 |
dh_link usr/share/javascript/jquery/jquery.js \
|
|
28 |
$(call py_libdir,$(shell pyversions -vd))/werkzeug/debug/shared/jquery.js
|
|
29 |
dh_link usr/share/javascript/jquery/jquery.js \
|
|
30 |
/usr/share/doc/python-werkzeug/html/_static/jquery.js
|
|
31 |
dh_link /usr/share/doc/python-werkzeug/html/_sources \
|
|
32 |
/usr/share/doc/python-werkzeug/rst
|
14 | 33 |
|
15 | |
#include /usr/share/cdbs/1/rules/buildcore.mk
|
16 | |
#include /usr/share/cdbs/1/rules/debhelper.mk
|
17 | |
#include /usr/share/cdbs/1/class/python-distutils.mk
|
18 | |
|
19 | |
#DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
|
20 | |
|
21 | |
# @@ workaround for #486848
|
22 | |
#binary-arch binary-indep: build
|
23 | |
|
24 | |
#common-install-indep::
|
25 | |
# mkdir -p debian/python-werkzeug/usr/share/doc/python-werkzeug
|
26 | |
# rm debian/python-werkzeug/usr/docs/README
|
27 | |
# mv debian/python-werkzeug/usr/docs debian/python-werkzeug/usr/share/doc/python-werkzeug/html
|
28 | |
# chmod 644 debian/python-werkzeug/usr/share/pyshared/werkzeug/debug/shared/*
|
29 | |
|
30 | |
#binary-install/python-werkzeug::
|
31 | |
# dh_link usr/share/javascript/jquery/jquery.js \
|
32 | |
# usr/share/pyshared/python-werkzeug/werkzeug/debug/shared/jquery.js
|
33 | |
|
34 | |
# @@ only works from source directory, see #494141
|
35 | |
#.PHONY: get-orig-source
|
36 | |
# get-orig-source:
|
37 | |
# uscan --force-download --rename --download-version=$(DEB_UPSTREAM_VERSION) --destdir .
|
|
34 |
clean:
|
|
35 |
dh $@
|
|
36 |
make -C docs clean
|
|
37 |
find $(CURDIR) -name '*\.py[co]' -delete
|
|
38 |
rm -rf build
|