[SCM] qt5webkit packaging branch, experimental, updated. debian/5.212.0_alpha2-1

Dmitry Shachnev mitya57 at moszumanska.debian.org
Tue Aug 29 10:50:51 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/qt/qt5webkit.git;a=commitdiff;h=c7ca1fe

The following commit has been merged in the experimental branch:
commit c7ca1fe383fbb314ff2c23fb043a61a58f865068
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Sun Aug 27 17:08:39 2017 +0300

    Use ninja backend of CMake, fix docs build/install rules.
---
 debian/changelog |  2 +-
 debian/control   |  1 +
 debian/rules     | 15 ++++++++++-----
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ed32441..64fe2b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,7 +11,7 @@ qtwebkit-opensource-src (5.212.0~alpha2-1) UNRELEASED; urgency=medium
   * Drop unused build-dependency: libleveldb-dev.
   * Migrate to automatic dbgsym packages.
   * Update install files for the new release.
-  * Update debian/rules to use CMake build system.
+  * Update debian/rules to use CMake build system with ninja backend.
   * Update to debhelper compat level 10.
   * Rewrite debian/copyright. The new file is based on decopy output, with
     lots of manual fixes.
diff --git a/debian/control b/debian/control
index 854a70e..00b5b80 100644
--- a/debian/control
+++ b/debian/control
@@ -30,6 +30,7 @@ Build-Depends: bison,
                libxrender-dev,
                libxslt1-dev,
                mesa-common-dev,
+               ninja-build,
                pkg-config,
                pkg-kde-tools (>= 0.6.4),
                python-minimal,
diff --git a/debian/rules b/debian/rules
index 9a8d519..59ca27f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
 #export DH_VERBOSE=1
 
 DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 gstab_architectures := amd64 i386 powerpc s390x
@@ -25,21 +26,25 @@ endif
 	dh $@ --buildsystem=cmake --with pkgkde_symbolshelper
 
 override_dh_auto_configure:
-	dh_auto_configure -- -DPORT=Qt $(EXTRA_CMAKE_ARGUMENTS)
+	dh_auto_configure -- -G Ninja -DPORT=Qt $(EXTRA_CMAKE_ARGUMENTS)
+
+override_dh_auto_build-arch:
+	dh_auto_build --builddirectory=obj-$(DEB_HOST_GNU_TYPE) -O--buildsystem=ninja
 
 override_dh_auto_build-indep:
-	dh_auto_build -- sub-Source-QtWebKit-pro-clean
-	dh_auto_build -- -CSource -fMakefile.api docs
+	BUILDDIR=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE) \
+	dh_auto_build --builddirectory=obj-$(DEB_HOST_GNU_TYPE) -O--buildsystem=ninja -- docs
 
 override_dh_auto_install-arch:
-	dh_auto_install
+	dh_auto_install --builddirectory=obj-$(DEB_HOST_GNU_TYPE) -O--buildsystem=ninja
 
 	# Remove private headers
 	rm -rf debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/QtWebKit/*/QtWebKit
 	rm -rf debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/qt5/QtWebKitWidgets/*/QtWebKitWidgets
 
 override_dh_auto_install-indep:
-	dh_auto_build -- -CSource -fMakefile.api INSTALL_ROOT=$(CURDIR)/debian/tmp install_docs
+	install -d debian/tmp/usr/share/qt5/
+	cp -r obj-$(DEB_HOST_GNU_TYPE)/doc debian/tmp/usr/share/qt5/
 
 override_dh_missing:
 	dh_missing --fail-missing

-- 
qt5webkit packaging



More information about the pkg-kde-commits mailing list