From 2d0d0ba99b507cab093962cb910ddc7dd4755c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 27 Aug 2013 04:57:39 +0200 Subject: Switch to dh_python2 (or dh_pysupport as fallback) on Debian and Ubuntu --- ubuntu/precise/dependencies/python-tqt/debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ubuntu/precise/dependencies/python-tqt/debian/rules') diff --git a/ubuntu/precise/dependencies/python-tqt/debian/rules b/ubuntu/precise/dependencies/python-tqt/debian/rules index 86eca95c9..b0acb35f6 100755 --- a/ubuntu/precise/dependencies/python-tqt/debian/rules +++ b/ubuntu/precise/dependencies/python-tqt/debian/rules @@ -32,6 +32,9 @@ CXXFLAGS += "-I/usr/include/tqt" PYTHONS := $(shell pyversions -vr debian/control) +DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport) +DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport) + GCCVER := $(shell gcc --version | sed -n '/^gcc (GCC)/s/.*(GCC) \(...\).*/\1/p') ifneq (,$(filter $(GCCVER),4.2 4.3)) @@ -154,7 +157,7 @@ endif # dh_strip dh_compress -X.py -X.bmp -X.ui -X.sql dh_fixperms - dh_pysupport + ${DH_PYTHON2} dh_sip dh_lintian dh_installdeb -- cgit v1.2.3