summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/tdebindings/debian/rules
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-08-27 04:57:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-27 05:00:17 +0200
commit2d0d0ba99b507cab093962cb910ddc7dd4755c94 (patch)
tree25732cac7c5450d1df2efe47d153253bec8a83be /ubuntu/raring/tdebindings/debian/rules
parente59f9132f600c669c73885b0b58a715e6bfd03a6 (diff)
downloadtde-packaging-2d0d0ba99b507cab093962cb910ddc7dd4755c94.tar.gz
tde-packaging-2d0d0ba99b507cab093962cb910ddc7dd4755c94.zip
Switch to dh_python2 (or dh_pysupport as fallback) on Debian and Ubuntu
Diffstat (limited to 'ubuntu/raring/tdebindings/debian/rules')
-rwxr-xr-xubuntu/raring/tdebindings/debian/rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/ubuntu/raring/tdebindings/debian/rules b/ubuntu/raring/tdebindings/debian/rules
index f6ae5709b..c31999f17 100755
--- a/ubuntu/raring/tdebindings/debian/rules
+++ b/ubuntu/raring/tdebindings/debian/rules
@@ -3,6 +3,9 @@
DEB_QUILT_PATCHDIR_LINK :=
export QUILT_PATCHES=debian/patches
+DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
+DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
+
include /usr/share/cdbs/1/rules/debhelper.mk
override DEB_BUILDDIR := $(DEB_SRCDIR)
@@ -131,7 +134,7 @@ binary-install/libqt0-ruby1.8-trinity::
mv debian/$(cdbs_curpkg)/usr/share/man debian/$(cdbs_curpkg)/opt/trinity/share/
binary-install/python-dcop-trinity::
- dh_pysupport -p$(cdbs_curpkg)
+ ${DH_PYTHON2} -p$(cdbs_curpkg)
###