summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-08-29 16:53:43 +0200
committerJonas Smedegaard <dr@jones.dk>2013-08-29 17:03:22 +0200
commitaf7d4f9e228f1d4dcc99ad2694a49c95e0b4e0b2 (patch)
tree1a371b2cdfbab577bdf22bc239413bb39fe35c65
parent8b4ebb756397543609416ce1b7cfee87ff297321 (diff)
Introduce new binary-all package pandoc-data, recommended by pandoc. Closes: bug#697306. Thanks to Joachim Breitner.
-rw-r--r--debian/control.in32
-rw-r--r--debian/pandoc-data.install2
-rw-r--r--debian/pandoc.install2
-rwxr-xr-xdebian/rules4
4 files changed, 36 insertions, 4 deletions
diff --git a/debian/control.in b/debian/control.in
index ff43700f2..5ab3eacfc 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -78,6 +78,38 @@ Description: general markup converter
via XeLaTeX it additionally requires texlive-xetex, and via LuaTeX
additionally texlive-luatex.
+Package: pandoc-data
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: ${cdbs:Recommends}
+Suggests: ${cdbs:Suggests}
+Description: general markup converter - data files
+ Pandoc is a Haskell library for converting from one markup format to
+ another, and a command-line tool that uses this library. It can read
+ markdown and (subsets of) Textile, reStructuredText, HTML, LaTeX,
+ MediaWiki markup, and DocBook XML; and it can write plain text,
+ markdown, reStructuredText, XHTML, HTML 5, LaTeX (including beamer
+ slide shows), ConTeXt, RTF, DocBook XML, OpenDocument XML, ODT, Word
+ docx, GNU Texinfo, MediaWiki markup, EPUB (v2 or v3), FictionBook2,
+ Textile, groff man pages, Emacs Org-Mode, AsciiDoc, and Slidy,
+ Slideous, DZSlides, or S5 HTML slide shows. It can also produce PDF
+ output on systems where LaTeX is installed.
+ .
+ Pandoc's enhanced version of markdown includes syntax for footnotes,
+ tables, flexible ordered lists, definition lists, fenced code blocks,
+ superscript, subscript, strikeout, title blocks, automatic tables of
+ contents, embedded LaTeX math, citations, and markdown inside HTML
+ block elements. (These enhancements can be disabled.)
+ .
+ In contrast to most existing tools for converting markdown to HTML,
+ which use regex substitutions, Pandoc has a modular design: it consists
+ of a set of readers, which parse text in a given format and produce a
+ native representation of the document, and a set of writers, which
+ convert this native representation into a target format. Thus, adding
+ an input or output format requires only adding a reader or writer.
+ .
+ This package contains the data files for pandoc.
+
Package: libghc-pandoc-dev
Section: haskell
Priority: extra
diff --git a/debian/pandoc-data.install b/debian/pandoc-data.install
new file mode 100644
index 000000000..6d19a98af
--- /dev/null
+++ b/debian/pandoc-data.install
@@ -0,0 +1,2 @@
+# datadir handled in rules file, to ease backporting
+#debian/tmp-inst-*/usr/share/pandoc/data /usr/share/pandoc/
diff --git a/debian/pandoc.install b/debian/pandoc.install
index db7e9a8ca..8ee9f0d2b 100644
--- a/debian/pandoc.install
+++ b/debian/pandoc.install
@@ -1,3 +1 @@
debian/tmp-inst-*/usr/bin/* /usr/bin/
-# datadir handled in rules file, to ease backporting
-#debian/tmp-inst-*/usr/share/pandoc/data /usr/share/pandoc/
diff --git a/debian/rules b/debian/rules
index 5beb8ba1c..9e9ddf4a5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,7 +39,7 @@ clean::
# install data to varying path depending on haskell-devscripts code
# TODO: simplify after jessie+1: change is in haskell-devscripts 0.8.19
datadir := $(if $(shell grep datasubdir /usr/share/cdbs/1/class/hlibrary.mk),pandoc,pandoc-$(abi))
-DEB_DH_INSTALL_ARGS_pandoc = debian/tmp-inst-*/usr/share/$(datadir)/data /usr/share/$(datadir)/
+DEB_DH_INSTALL_ARGS_pandoc-data = debian/tmp-inst-*/usr/share/$(datadir)/data /usr/share/$(datadir)/
# Haskell dependencies for any build from pandoc.cabal
# * Versions only relevant post Squeeze when libhc-* namespace was introduced
@@ -107,5 +107,5 @@ CDBS_BUILD_DEPENDS += , haskell-devscripts
# Needed (often/seldom) at runtime
# texlive-* needed for PDF output support
-CDBS_RECOMMENDS_pandoc = libghc-citeproc-hs-data
+CDBS_RECOMMENDS_pandoc = pandoc-data, libghc-citeproc-hs-data
CDBS_SUGGESTS_pandoc = texlive-latex-recommended, texlive-xetex, texlive-luatex