3 #DEB_PYTHON_VERSIONS:=2.5
4 DEB_PYTHON_SYSTEM=pysupport
6 include /usr/share/cdbs/1/rules/debhelper.mk
7 include /usr/share/cdbs/1/class/python-distutils.mk
9 PYVERS = $(shell pyversions -vd)
11 cdbs_python_current_binary := $(shell pyversions -d)
13 DEB_PYTHON_INSTALL_ARGS_ALL = --no-compile -O0 --install-layout=deb
16 dh_install drlaunch_widget.py usr/lib/hildon-desktop/
17 dh_install misc/drlaunch.desktop usr/share/applications/hildon-home/
20 ifeq (all, $(cdbs_python_module_arch))
21 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
23 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
24 endif # archall detection
28 ifeq (all, $(cdbs_python_module_arch))
29 common-install-arch common-install-indep:: python-install-py
31 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
33 common-install-arch common-install-indep:: $(addprefix python-install-, $(cdbs_python_build_versions))
35 cd $(DEB_SRCDIR) && $(cdbs_python_current_binary) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL)
36 endif # archall detection