aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-02-15 20:17:57 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-02-15 20:17:57 -0700
commit9caa8605f45ab55398f6374250b4a8bdb5a684e8 (patch)
treeaafc8f4ed637de4d85bb150f9c055ec3dd2d0676
parent525c561ee558b5342cabccfa3e624a5f13f9ab9d (diff)
downloadpandoc-citeproc-preamble-9caa8605f45ab55398f6374250b4a8bdb5a684e8.tar.gz
generate a versioned dependency on libghc-pandoc-types-dev
-rw-r--r--debian/changelog5
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules5
3 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 0624f2b..d6e40f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,10 @@
pandoc-citeproc-preamble (1.2.3-1) UNRELEASED; urgency=medium
+ * Add override_dh_gencontrol stanza to generate a versioned dependency
+ on libghc-pandoc-types-dev using haskell-devscripts (Closes: #920743).
+ This should enable automatically binNMUing pandoc-citeproc-preamble
+ when new versions of pandoc-types hit Debian unstable.
+ - Build-depend on haskell-devscripts-minimal | haskell-devscripts.
* Switch to source format 3.0 (quilt).
-- Sean Whitton <spwhitton@spwhitton.name> Fri, 15 Feb 2019 20:16:14 -0700
diff --git a/debian/control b/debian/control
index 3b63ad0..c5267c5 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: extra
Section: haskell
Build-Depends: debhelper (>= 10),
ghc,
+ haskell-devscripts-minimal | haskell-devscripts (>= 0.8),
libghc-pandoc-types-dev,
Standards-Version: 3.9.8
Homepage: https://spwhitton.name/tech/code/pandoc-citeproc-preamble/
@@ -14,6 +15,7 @@ Package: pandoc-citeproc-preamble
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
+ ${haskell:Depends},
Recommends: pandoc-citeproc
Description: insert a preamble before pandoc-citeproc's bibliography
pandoc-citeproc-preamble is a JSON filter for Pandoc which inserts a
diff --git a/debian/rules b/debian/rules
index 2a8d309..b52fa27 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,11 @@ override_dh_auto_build:
pod2man --center="User Commands" --section=1 \
pandoc-citeproc-preamble.1.pod > pandoc-citeproc-preamble.1
+override_dh_gencontrol:
+ echo "haskell:Depends=$(shell . /usr/share/haskell-devscripts/Dh_Haskell.sh; hashed_dependency ghc dev pandoc-types)" \
+ >>debian/pandoc-citeproc-preamble.substvars
+ dh_gencontrol
+
override_dh_auto_clean:
if [ -x Setup ]; then ./Setup clean; fi
rm -f Setup Setup.o Setup.hi pandoc-citeproc-preamble.1