[SCM] Debian Qt/KDE packaging tools branch, master, updated. master/0.4.9-5-g8274d57

Modestas Vainius modax-guest at alioth.debian.org
Thu Jul 2 17:59:58 UTC 2009


The following commit has been merged in the master branch:
commit 40cff968d799b0d57a12a1192db38d82ea7a71a6
Author: Modestas Vainius <modestas at vainius.eu>
Date:   Thu Jul 2 19:42:22 2009 +0300

    Add a basic debhelper/kde.mk snippet.
    
    For building KDE packages with dh (needs debhelper >= 7.3.0).
    
    Signed-off-by: Modestas Vainius <modestas at vainius.eu>
---
 debian/changelog             |    8 ++++++++
 makefiles/1/debhelper/kde.mk |   19 +++++++++++++++++++
 2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 732e381..99ba9af 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+pkg-kde-tools (0.4.10) unstable; urgency=low
+
+  * Add a basic debhelper/kde.mk snippet which automatically passes KDE cmake
+    flags to dh_auto_configure and runs dh $@ by default. Either of defaults
+    can be overriden as needed.
+
+ -- Modestas Vainius <modestas at vainius.eu>  Thu, 02 Jul 2009 19:39:15 +0300
+
 pkg-kde-tools (0.4.9) unstable; urgency=low
 
   [ Modestas Vainius ]
diff --git a/makefiles/1/debhelper/kde.mk b/makefiles/1/debhelper/kde.mk
new file mode 100644
index 0000000..3ad297a
--- /dev/null
+++ b/makefiles/1/debhelper/kde.mk
@@ -0,0 +1,19 @@
+# Include default KDE 4 cmake configuration variables
+include /usr/share/pkg-kde-tools/makefiles/1/variables.mk
+
+# Check if debhelper (>= 7.3) is installed
+DEB_DH_VERSION := $(shell perl -MDebian::Debhelper::Dh_Version -e \
+    'my $$v=$$Debian::Debhelper::Dh_Version::version;\
+     my @v=split(/\./,$$v); \
+     print (($$v[0]>7 || $$v[0]==7 && $$v[1]>=3) ? "ok" : $$v), "\n";' 2>/dev/null)
+ifneq ($(DEB_DH_VERSION),ok)
+    $(error Debhelper is too old ($(DEB_DH_VERSION)) on your system. Upgrade to 7.3.0 or later)
+endif
+
+# Configure with KDE cmake flags by default.
+DEB_KDE_OVERRIDE_DH_AUTO_CONFIGURE ?= override_dh_auto_configure
+$(DEB_KDE_OVERRIDE_DH_AUTO_CONFIGURE):
+	dh_auto_configure -- $(DEB_CMAKE_KDE4_FLAGS) $(DEB_CMAKE_CUSTOM_FLAGS)
+
+%:
+	dh $@

-- 
Debian Qt/KDE packaging tools



More information about the pkg-kde-commits mailing list