summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnit 193 <unit193@ubuntu.com>2016-04-29 04:18:31 (GMT)
committerAndrew Starr-Bochicchio <a.starr.b@gmail.com>2017-07-14 00:16:40 (GMT)
commit9cfa3119e5fb90eaa1cbf8285eb85aa2b16ed700 (patch)
tree345bb5e20433f08adcfdc21f39269267dc93db14
parent03e21104e32b6f784ff543264c4d5d457c2b2233 (diff)
d/control, d/rules: Override dh_gencontrol to recommend python-appindicator if on Ubuntu.
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules7
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index 4c9f2c6..3494ed1 100644
--- a/debian/control
+++ b/debian/control
@@ -108,7 +108,7 @@ Depends: ${misc:Depends}, ${python:Depends},
xdg-utils
Breaks: deluge (<< 1.2.0-1)
Replaces: deluge (<< 1.2.0-1)
-Recommends: python-pygame
+Recommends: ${dist:Recommends}, python-pygame
Description: bittorrent client written in Python/PyGTK (GTK+ ui)
Deluge is a full-featured, multi-platform, multi-interface BitTorrent client
using libtorrent-rasterbar in it's backend and featuring multiple
diff --git a/debian/rules b/debian/rules
index 48ac68d..e2e3dec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,9 @@
#!/usr/bin/make -f
+ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
+ SUBSTVARS = -Vdist:Recommends="python-appindicator"
+endif
+
%:
dh $@ --with python2
@@ -20,3 +24,6 @@ override_dh_auto_clean:
dh_auto_clean
find . -type d -name '*.egg-info' | xargs rm -rf
rm -f deluge/data/share/applications/deluge.desktop
+
+override_dh_gencontrol:
+ dh_gencontrol -- $(SUBSTVARS)