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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# this is apparently for ubuntu weirdness.
-include /usr/share/python/python.mk
ifeq (,$(py_sitename))
py_sitename = site-packages
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
py_sitename_sh = $(py_sitename)
py_libdir_sh = $(py_libdir)
endif
%:
dh $@
override_dh_auto_clean:
dh_auto_clean
rm -fr tmp # remove examples
python run_bootstrap_first_then_setup.py clean
override_dh_auto_build:
python bootstrap.py /usr/share/pyshared /usr/share/pyjamas .
python run_bootstrap_first_then_setup.py build
override_dh_auto_install:
# install the pyjs package into debian/pyjamas (which also
# includes building pyjd, which we do NOT install in pyjs)
python run_bootstrap_first_then_setup.py install \
$(py_setup_install_args) --root=debian/tmp
# exceptions: these get created as their own package,
# everything else gets shoved into pyjamas-pyjs
# examples byeeeeee!
rm -fr debian/tmp/usr/share/pyjamas/examples
# canvas
mv debian/tmp/usr/share/pyjamas/library/pyjamas/Canvas \
debian/pyjamas-canvas/usr/share/pyjamas/library/pyjamas
# chart
mv debian/tmp/usr/share/pyjamas/library/pyjamas/chart \
debian/pyjamas-gchart/usr/share/pyjamas/library/pyjamas
# ui
mv debian/tmp/usr/share/pyjamas/library/pyjamas/ui \
debian/pyjamas-ui/usr/share/pyjamas/library/pyjamas
# gmap
mv debian/tmp/usr/share/pyjamas/library/pyjamas/gmaps \
debian/pyjamas-gmap/usr/share/pyjamas/library/pyjamas
override_dh_install:
dh_install --fail-missing
override_dh_installdocs:
# use symlinks for the doc dirs of packages that depend on pyjamas-ui
dh_installdocs -ppyjamas-ui -ppyjamas-pyjs -ppyjamas-desktop -ppyjamas-doc
for p in pyjamas pyjamas-canvas pyjamas-gchart pyjamas-gmap; do \
install -d debian/$$p/usr/share/doc ; \
ln -s pyjamas-ui debian/$$p/usr/share/doc/$$p ; \
done
|