Lucas Nussbaum wrote:
> Anyway, to avoid modifying debian/control directly, it's easy to add an
> additional substvar (ubuntu:Browser?):
> debian/control:
> Depends: [...], iceweasel | ${ubuntu:Browser}

Doesn't that leave a dangling "|" if you're building for Debian?

I'd suggest in debian/control something like:
   Depends: [...], ${browsers}

And then in debian/rules:
   ifneq ($(DEB_VENDOR),ubuntu)
   BROWSERS = "iceweasel"
   else
   BROWSERS = "iceweasel | abrowser"
   endif

   [...]

   dh_gencontrol -- -Vbrowsers=$(BROWSERS)

Cheers,
FJP


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to