1.1 --- a/debian/rules Thu Aug 11 11:28:40 2011 +0200
1.2 +++ b/debian/rules Thu Aug 11 16:37:54 2011 +0200
1.3 @@ -3,68 +3,9 @@
1.4 # Uncomment this to turn on verbose mode.
1.5 #export DH_VERBOSE=1
1.6
1.7 -PYVERS=$(shell pyversions -vr)
1.8 -
1.9 -build: build-stamp
1.10 -
1.11 -build-stamp: $(PYVERS:%=build-python%) build-python-scripts build-manpages
1.12 - touch $@
1.13 -
1.14 -build-python%:
1.15 - python$* setup.py build_py
1.16 - touch $@
1.17 -
1.18 -build-python-scripts:
1.19 - python setup.py build_scripts
1.20 - touch $@
1.21 -
1.22 -build-manpages:
1.23 - python scripts/rst2man.py doc/shedskin.rst debian/shedskin.1
1.24 -
1.25 -clean:
1.26 - dh_testdir
1.27 - dh_testroot
1.28 - rm -f *-stamp
1.29 - rm -rf build*
1.30 - rm -f debian/shedskin.1
1.31 - find . -name '*.py[co]' | xargs rm -f
1.32 - dh_clean
1.33 -
1.34 -install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts
1.35 - # Script fixing would appear here.
1.36 +%:
1.37 + dh $@ --with python2
1.38
1.39 -install-prereq:
1.40 - dh_testdir
1.41 - dh_testroot
1.42 - dh_clean -k
1.43 -
1.44 -install-python%:
1.45 - python$* setup.py install_lib --install-dir $(CURDIR)/debian/shedskin/usr/lib/python$*/site-packages
1.46 -
1.47 -install-python-scripts:
1.48 - python setup.py install_scripts --install-dir $(CURDIR)/debian/shedskin/usr/bin
1.49 -
1.50 -# Build architecture-independent files here.
1.51 -
1.52 -binary-indep: install
1.53 - dh_testdir -i
1.54 - dh_testroot -i
1.55 - dh_pycentral -i
1.56 - dh_install -i
1.57 - dh_installdocs -i
1.58 - dh_installchangelogs -i
1.59 - dh_installman -i debian/shedskin.1
1.60 - dh_compress -i
1.61 - dh_fixperms -i
1.62 - dh_installdeb -i
1.63 - dh_gencontrol -i
1.64 - dh_md5sums -i
1.65 - dh_builddeb -i
1.66 -
1.67 -# Build architecture-dependent files here.
1.68 -
1.69 -binary-arch:
1.70 - # Empty rule for this package.
1.71 -
1.72 -binary: binary-indep binary-arch
1.73 -.PHONY: build clean binary-arch binary-indep binary install
1.74 +override_dh_auto_build:
1.75 + dh_auto_build
1.76 + rst2man doc/shedskin.rst debian/shedskin.1