[onboard] 01/02: Use pybuild and simplify debian/rules

Jeremy Bicha jbicha-guest at moszumanska.debian.org
Sun Jul 31 08:22:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

jbicha-guest pushed a commit to branch master
in repository onboard.

commit a4e99c2ef2a356631be09d3fe42832edd5049c70
Author: Jeremy Bicha <jbicha at ubuntu.com>
Date:   Sun Jul 31 03:03:01 2016 -0400

    Use pybuild and simplify debian/rules
---
 debian/rules | 27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

diff --git a/debian/rules b/debian/rules
index af7c1bd..3d7dc20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,41 +1,24 @@
 #!/usr/bin/make -f
 
 DH_VERBOSE=1
+export PYBUILD_NAME=onboard
+export PYBUILD_INSTALL_ARGS=--root=$(CURDIR)/debian/tmp
 
 %:
-	dh $@ --with python3 --without python-support
-	rm -f po/*.pot
+	dh $@ --with python3 --buildsystem=pybuild
 
-override_dh_python3:
-	dh_python3 --no-guessing-deps
-
-# python3 needs some manual work, see 
-# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597105
 override_dh_auto_clean:
-	set -ex; for python in $(shell py3versions -r); do \
-	    if [ -f python.py ]; then $$python setup.py clean; fi; \
-	done
+	dh_auto_clean
 	rm -rf build
 	rm -rf Onboard/osk*.so
 	rm -rf Onboard/pypredict/lm*.so
-	find . -name __pycache__ -prune | xargs rm -rf
-
-override_dh_auto_build:
-	set -ex; for python in $(shell py3versions -r); do \
-	    $$python setup.py build ; \
-	done
-
-override_dh_auto_install:
-	set -ex; for python in $(shell py3versions -r); do \
-	    $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
-	done
 
 override_dh_install:
 	rm -f debian/tmp/usr/share/onboard/COPYING
 	rm -f debian/tmp/usr/share/onboard/COPYING.GPL3
 	rm -f debian/tmp/usr/share/onboard/HACKING
 	rm -f debian/tmp/usr/share/onboard/COPYING.BSD3
-	dh_install --fail-missing --autodest
+	dh_install --fail-missing
 
 get-orig-source:
 	uscan --noconf --force-download --rename --download-current-version --destdir=..

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/onboard.git



More information about the pkg-mate-commits mailing list