debian/{control,rules}: use pkg-php-tools
authorAntonio Ospite <ao2@ao2.it>
Sun, 11 Dec 2016 09:25:04 +0000 (10:25 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sun, 11 Dec 2016 09:25:04 +0000 (10:25 +0100)
Suggested by lintian:
I: tweeper source: composer-package-without-pkg-php-tools-builddep

debian/control
debian/rules

index 9c31430..bc212b9 100644 (file)
@@ -2,7 +2,7 @@ Source: tweeper
 Section: php
 Priority: optional
 Maintainer: Antonio Ospite <ao2@ao2.it>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9), pkg-php-tools (>= 1.7~)
 Build-Depends-Indep: asciidoc, xmlto
 Standards-Version: 3.9.8
 Homepage: https://git.ao2.it/tweeper.git
@@ -11,8 +11,7 @@ Vcs-Browser: https://git.ao2.it/tweeper.git
 
 Package: tweeper
 Architecture: all
-Depends: ${misc:Depends}, php-cli, php-curl, php-xml, php-symfony-serializer,
- php-symfony-property-access
+Depends: ${misc:Depends},  ${phpcomposer:Debian-require}
 Suggests: libapache2-mod-php | php-cgi
 Description: web scraper to convert supported websites (e.g. Twitter.com) to RSS
  tweeper is a web scraper which can be used to conveniently follow the
index 1eb817e..05543cd 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-       dh $@ 
+       dh $@ --with phpcomposer
 
 override_dh_auto_install:
        $(MAKE) DESTDIR=$(CURDIR)/debian/tweeper prefix=/usr install