summaryrefslogtreecommitdiffstats
path: root/debian/lenny/applications/fusion-icon
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-01-30 20:19:21 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-01-30 20:19:43 +0100
commit41241c98d3255e62d21969821c5fa86754a46127 (patch)
treee0117ba2562be48fd6079099236464e3cb0477dd /debian/lenny/applications/fusion-icon
parent9c05367ac4909dd6e7e6eeaaa7b70f7fda514265 (diff)
downloadtde-packaging-41241c98d3255e62d21969821c5fa86754a46127.tar.gz
tde-packaging-41241c98d3255e62d21969821c5fa86754a46127.zip
Switch remaining packages to dh_python2 on Debian and Ubuntu
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1e2672ad64a3a6bee8e12dd2496a85ddc80768a6)
Diffstat (limited to 'debian/lenny/applications/fusion-icon')
-rw-r--r--debian/lenny/applications/fusion-icon/debian/control2
-rwxr-xr-xdebian/lenny/applications/fusion-icon/debian/rules16
2 files changed, 13 insertions, 5 deletions
diff --git a/debian/lenny/applications/fusion-icon/debian/control b/debian/lenny/applications/fusion-icon/debian/control
index 50bafe43a..b27b4ba82 100644
--- a/debian/lenny/applications/fusion-icon/debian/control
+++ b/debian/lenny/applications/fusion-icon/debian/control
@@ -5,7 +5,7 @@ Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Uploaders: Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>
XS-Python-Version: all
Build-Depends: cdbs (>= 0.4.49), debhelper (>= 5.0.37.1), quilt, pkg-config, python-all-dev
-Build-Depends-Indep: python-support (>= 0.6), intltool
+Build-Depends-Indep: python-support (>= 0.6) | dh-python, intltool
Standards-Version: 3.8.4
Package: fusion-icon-trinity
diff --git a/debian/lenny/applications/fusion-icon/debian/rules b/debian/lenny/applications/fusion-icon/debian/rules
index 23683eab2..0f214b1db 100755
--- a/debian/lenny/applications/fusion-icon/debian/rules
+++ b/debian/lenny/applications/fusion-icon/debian/rules
@@ -1,10 +1,15 @@
#!/usr/bin/make -f
-DEB_PYTHON_SYSTEM=pysupport
+DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_pysupport),pysupport)
+DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
+DEB_PYTHON2_MODULE_PACKAGES=fusion-icon-trinity
include /usr/share/cdbs/1/rules/debhelper.mk
-# include /usr/share/cdbs/1/class/python-distutils.mk
-include debian/python-distutils-custom.mk
+ifeq (pysupport, $(DEB_PYTHON_SYSTEM))
+ include debian/python-distutils-custom.mk
+else
+ include /usr/share/cdbs/1/class/python-distutils.mk
+endif
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
@@ -19,7 +24,7 @@ binary-install/fusion-icon-trinity::
mkdir -p debian/fusion-icon-trinity/opt/trinity
cp -Rp debian/fusion-icon-trinity/usr/* debian/fusion-icon-trinity/opt/trinity/
rm -rf debian/fusion-icon-trinity/usr
- dh_pysupport -pfusion-icon-trinity
+ ${DH_PYTHON2} -pfusion-icon-trinity
###
# Must be done after invoking dh_pysupport, otherwise python scripts will
# end up in /usr/share/pyshare instead of dist-packages
@@ -27,4 +32,7 @@ binary-install/fusion-icon-trinity::
mv debian/fusion-icon-trinity/temp/lib debian/fusion-icon-trinity/usr
rm -rf debian/fusion-icon-trinity/temp
###
+ mkdir -p debian/fusion-icon-trinity/usr/share/doc/fusion-icon-trinity
+ mv debian/fusion-icon-trinity/opt/trinity/share/doc/fusion-icon-trinity/* debian/fusion-icon-trinity/usr/share/doc/fusion-icon-trinity/
+ rmdir -p --ignore-fail-on-non-empty debian/fusion-icon-trinity/opt/trinity/share/doc/fusion-icon-trinity
dh_icons