1.1 --- a/packages/debian-etch/python-libxml2dom/debian/rules Wed Oct 29 01:07:50 2008 +0100
1.2 +++ b/packages/debian-etch/python-libxml2dom/debian/rules Sun Jan 18 19:01:44 2009 +0100
1.3 @@ -1,9 +1,66 @@
1.4 -#! /usr/bin/make -f
1.5 +#!/usr/bin/make -f
1.6 +# A debian/rules file using python-central.
1.7 +
1.8 +# Uncomment this to turn on verbose mode.
1.9 +#export DH_VERBOSE=1
1.10 +
1.11 +export DH_COMPAT=5
1.12 +
1.13 +PYVERS=$(shell pyversions -vr)
1.14 +
1.15 +build: build-stamp
1.16 +
1.17 +build-stamp: $(PYVERS:%=build-python%) build-python-scripts
1.18 + touch $@
1.19
1.20 -DEB_PYTHON_SYSTEM=pysupport
1.21 +build-python%:
1.22 + python$* setup.py build_py
1.23 + touch $@
1.24 +
1.25 +build-python-scripts:
1.26 + python setup.py build_scripts
1.27 + touch $@
1.28 +
1.29 +clean:
1.30 + dh_testdir
1.31 + dh_testroot
1.32 + rm -f *-stamp
1.33 + rm -rf build
1.34 + find . -name '*.py[co]' | xargs rm -f
1.35 + dh_clean
1.36
1.37 -# Debhelper must be included before python-distutils to use
1.38 -# dh_python / dh_pycentral / dh_pysupport
1.39 -include /usr/share/cdbs/1/rules/debhelper.mk
1.40 -include /usr/share/cdbs/1/class/python-distutils.mk
1.41 -include /usr/share/cdbs/1/rules/simple-patchsys.mk
1.42 +install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts
1.43 + # Script fixing would appear here.
1.44 +
1.45 +install-prereq:
1.46 + dh_testdir
1.47 + dh_testroot
1.48 + dh_clean -k
1.49 +
1.50 +install-python%:
1.51 + python$* setup.py install_lib --install-dir $(CURDIR)/debian/python-libxml2dom/usr/lib/python$*/site-packages
1.52 +
1.53 +install-python-scripts:
1.54 + python setup.py install_scripts --install-dir $(CURDIR)/debian/python-libxml2dom/usr/bin
1.55 +
1.56 +# Build architecture-independent files here.
1.57 +
1.58 +binary-indep: install
1.59 + tools/apidocs.sh
1.60 + dh_testdir -i
1.61 + dh_testroot -i
1.62 + dh_pycentral -i
1.63 + dh_installdocs -i
1.64 + dh_fixperms -i
1.65 + dh_installdeb -i
1.66 + dh_gencontrol -i
1.67 + dh_md5sums -i
1.68 + dh_builddeb -i
1.69 +
1.70 +# Build architecture-dependent files here.
1.71 +
1.72 +binary-arch:
1.73 + # Empty rule for this package.
1.74 +
1.75 +binary: binary-indep binary-arch
1.76 +.PHONY: build clean binary-arch binary-indep binary install