[Pkg-mediawiki-commits] [wikidiff2] 01/01: Port to dh-php based packaging

Kunal Mehta legoktm-guest at moszumanska.debian.org
Sun Feb 26 11:47:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

legoktm-guest pushed a commit to branch master
in repository wikidiff2.

commit ab3d6574e7712a581c465534ca9ff13b7b05be80
Author: Kunal Mehta <legoktm at member.fsf.org>
Date:   Fri Dec 30 01:47:04 2016 -0800

    Port to dh-php based packaging
---
 debian/changelog         |  7 +++++++
 debian/control           |  2 +-
 debian/php-wikidiff2.php |  1 +
 debian/rules             | 31 +++++++++++++++++--------------
 4 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2e78b93..54e5b88 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+wikidiff2 (1.4.1-2) UNRELEASED; urgency=medium
+
+  * gbp: Add sign-tags = True
+  * Port to dh-php based packaging
+
+ -- Kunal Mehta <legoktm at member.fsf.org>  Fri, 30 Dec 2016 01:47:31 -0800
+
 wikidiff2 (1.4.1-1) unstable; urgency=medium
 
   * Add watch file
diff --git a/debian/control b/debian/control
index 6979a13..6ea82d6 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: php
 Priority: optional
 Maintainer: Mediawiki Maintenance Team <pkg-mediawiki-devel at lists.alioth.debian.org>
 Uploaders: Romain Beauxis <toots at rastageeks.org>, Kunal Mehta <legoktm at member.fsf.org>
-Build-Depends: debhelper (>= 9), php-dev, libthai-dev, pkg-config, php-cli
+Build-Depends: debhelper (>= 9), php-dev, libthai-dev, pkg-config, php-cli, dh-php
 Homepage: http://www.mediawiki.org/wiki/Extension:Wikidiff2
 Standards-Version: 3.9.8
 Vcs-Git: git://anonscm.debian.org/collab-maint/wikidiff2.git
diff --git a/debian/php-wikidiff2.php b/debian/php-wikidiff2.php
new file mode 100644
index 0000000..6200b52
--- /dev/null
+++ b/debian/php-wikidiff2.php
@@ -0,0 +1 @@
+mod wikidiff2.ini
diff --git a/debian/rules b/debian/rules
index 2c8d3f0..3fcce08 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,23 +4,26 @@
 # warning a lot.
 CXXFLAGS+=-Wno-write-strings
 
-%:
-	dh $@
+PECL_NAME_OVERRIDE := wikidiff2
+DH_PHP_VERSIONS_OVERRIDE := $(shell /usr/sbin/phpquery -V)
+include /usr/share/dh-php/pkg-pecl.mk
 
-override_dh_auto_configure:
-	/usr/bin/phpize
-	dh_auto_configure
+DIR_TARGETS = $(addprefix build-,$(DH_PHP_VERSIONS))
+
+$(warning CONFIGURE_TARGETS: $(CONFIGURE_TARGETS))
+$(warning BUILD_TARGETS: $(BUILD_TARGETS))
+$(warning INSTALL_TARGETS: $(INSTALL_TARGETS))
+
+PECL_SOURCE=$(filter-out debian build.xml $(DIR_TARGETS),$(wildcard *))
+$(foreach ver,$(DH_PHP_VERSIONS),$(eval PECL_SOURCE_$(ver) := $(PECL_SOURCE)))
+$(foreach ver,$(DH_PHP_VERSIONS),$(mkdir build-$(ver)))
+
+override_dh_testdir: $(DIR_TARGETS)
+	dh_testdir
 
 override_dh_auto_test:
 	NO_INTERACTION=1 make test
 
-override_dh_auto_install:
-	INSTALL_ROOT=$(CURDIR)/debian/php-wikidiff2 make install
-
-override_dh_gencontrol:
-	echo "php:Depends=phpapi-$(shell php-config --phpapi)" >> debian/php-wikidiff2.substvars
-	dh_gencontrol
+build-%:
+	mkdir -p build-$(*)
 
-override_dh_auto_clean:
-	/usr/bin/phpize --clean
-	dh_auto_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/wikidiff2.git



More information about the Pkg-mediawiki-commits mailing list