Code

patches: Added asciidoc-8.4.dpatch.
authorSebastian Harl <sh@tokkee.org>
Sun, 21 Jun 2009 16:26:43 +0000 (18:26 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 21 Jun 2009 16:26:43 +0000 (18:26 +0200)
This is an upstream patch fixing build issues with asciidoc 8.4, thanks to
Lucas Nussbaum for reporting this.

Closes: #534046
Also, updated changelog to 0.14.1-2.

debian/changelog
debian/control
debian/patches/00list [new file with mode: 0644]
debian/patches/asciidoc-8.4.dpatch [new file with mode: 0755]
debian/rules

index 9d80505975252895b5d88cce0fb237d1c6199cc9..033d95edfea38cda70e9e7ad750906a791d33a79 100644 (file)
@@ -1,3 +1,12 @@
+tig (0.14.1-2) unstable; urgency=low
+
+  * debian/patches:
+    - Added asciidoc-8.4.dpatch - upstream patch fixing build issues with
+      asciidoc 8.4, thanks to Lucas Nussbaum for reporting this
+      (Closes: #534046).
+
+ -- Sebastian Harl <tokkee@debian.org>  Sun, 21 Jun 2009 18:24:35 +0200
+
 tig (0.14.1-1) unstable; urgency=low
 
   * New upstream release.
index bb503e8514b3ad61ec394efbba00aa0e112a023d..439e608052192aaa9fd218e21351c3c19ab26b37 100644 (file)
@@ -2,7 +2,7 @@ Source: tig
 Section: vcs
 Priority: optional
 Maintainer: Sebastian Harl <sh@tokkee.org>
-Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.14.6), git-core, libncursesw5-dev, asciidoc (>= 7), xmlto, docbook-utils
+Build-Depends: debhelper (>= 5), dpatch, dpkg-dev (>= 1.14.6), git-core, libncursesw5-dev, asciidoc (>= 7), xmlto, docbook-utils
 Standards-Version: 3.8.1
 Homepage: http://jonas.nitro.dk/tig/
 Vcs-Git: git://git.tokkee.org/pkg-tig.git
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644 (file)
index 0000000..d47c18b
--- /dev/null
@@ -0,0 +1,2 @@
+asciidoc-8.4.dpatch
+
diff --git a/debian/patches/asciidoc-8.4.dpatch b/debian/patches/asciidoc-8.4.dpatch
new file mode 100755 (executable)
index 0000000..cdd9a4e
--- /dev/null
@@ -0,0 +1,55 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## asciidoc-8.4.dpatch by Jonas Fonseca <fonseca@diku.dk>
+##
+## DP: Fix build issues with asciidoc 8.4.
+## DP:
+## DP: This version seems to be stricter about presubs attributes.
+## DP: Based on a patch by Ingmar Vanhassel.
+
+@DPATCH@
+
+diff a/tigrc.5.txt b/tigrc.5.txt
+--- a/tigrc.5.txt
++++ b/tigrc.5.txt
+@@ -9,11 +9,9 @@ tigrc - tig configuration file
+ SYNOPSIS
+ --------
+ [verse]
+-.............................................................................
+ *set*   'variable' *=* 'value'
+ *bind*  'keymap' 'key' 'action'
+ *color* 'area' 'fgcolor' 'bgcolor' '[attributes]'
+-.............................................................................
+ DESCRIPTION
+@@ -38,9 +36,7 @@ A few selective variables can be configured via the set command. The syntax
+ is:
+ [verse]
+-..............................................................................
+ *set* variables *=* value
+-..............................................................................
+ Examples:
+@@ -146,9 +142,7 @@ Using bind commands keys can be mapped to an action when pressed in a given
+ key map. The syntax is:
+ [verse]
+-..............................................................................
+ *bind* 'keymap' 'key' 'action'
+-..............................................................................
+ Examples:
+@@ -363,9 +357,7 @@ background combinations to certain areas. Optionally, an attribute can be
+ given as the last parameter. The syntax is:
+ [verse]
+-..............................................................................
+ *color* 'area' 'fgcolor' 'bgcolor' '[attributes]'
+-..............................................................................
+ Examples:
index 54cb1cfe2a2f6668c5e98c9fae5a6a1c1efa5242..0cd4b57b00c0afb3242994c0ae8c09628d2fb408 100755 (executable)
@@ -19,6 +19,8 @@ else
        CFLAGS += -O2
 endif
 
+include /usr/share/dpatch/dpatch.make
+
 config.status: configure
        dh_testdir
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
@@ -27,14 +29,14 @@ config.status: configure
 
 build: build-stamp
 
-build-stamp: config.status
+build-stamp: config.status $(DPATCH_STAMPFN)
        dh_testdir
        
        $(MAKE) all doc
        
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp