summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-haskell/pandoc-citeproc
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-haskell/pandoc-citeproc')
-rw-r--r--dev-haskell/pandoc-citeproc/Manifest6
-rw-r--r--dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.6-ghc-7.10.patch115
-rw-r--r--dev-haskell/pandoc-citeproc/metadata.xml33
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild65
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.2.ebuild63
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.0.1.ebuild56
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild76
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.6.ebuild64
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.7.2.ebuild60
9 files changed, 538 insertions, 0 deletions
diff --git a/dev-haskell/pandoc-citeproc/Manifest b/dev-haskell/pandoc-citeproc/Manifest
new file mode 100644
index 000000000000..fe0e207d015a
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/Manifest
@@ -0,0 +1,6 @@
+DIST pandoc-citeproc-0.1.2.1.tar.gz 217171 SHA256 3b8ea95a02051ded8e097db85445f822d474ba3cebce7ab35e5ca7b62ed4248e SHA512 a83e34700b2f6f835aec0f66b199a1a43cb5e3318133774b7897316d676870ba56538468904ca754f246bf10a0826f834d6dba791d18a906405ed7c01126b77e WHIRLPOOL 6585eb1d435a207fc7d94616d09602e9c602f33c7f5e1fdde124022e07c6bc671a62c84fa31838c541a139b0988ea67a3acba881d4e2bbfe439dd4724bd2c194
+DIST pandoc-citeproc-0.2.tar.gz 249374 SHA256 4d54092a277e547e2d5f57aab12836a59f1060344a5fca83939b6541eb9f0d3e SHA512 f7205afb15aeb71dc756e9f49a265f4c4c1380075b088b8c9e366fe363c2ea059b1d28bcbbe70bab449b987bbceba5d1cb7a693f5bf6bc0e3132cb995fd639c4 WHIRLPOOL a7db263793ba69b97e492e66a2185f9d141035aea50e686fe933f18031bd9a65417fa2cc76c85e873701ddf5a53285cd8ce7800e10325f4d80044d7c50be6a37
+DIST pandoc-citeproc-0.3.0.1.tar.gz 255740 SHA256 9d6e5b8e0d22cba9b0277488ac7efb344fa75413af7a08365e431556819314f1 SHA512 0cf616e8790b1afa654830cc0578d034c957fe0a3dcdce811a57cf17c59a0b27f39f571e23cf795651071657db6d13c80dff8d315969fe4b532450e9e7919340 WHIRLPOOL eec51b1d103a22d1c34b0e801e419ab1771c742f84b32c28cdf05c46f86cecdae7e46705b11996b3f678ca8184c3f680d3702984fa6cdb79fb7bdb34f736fdbd
+DIST pandoc-citeproc-0.3.1.tar.gz 258552 SHA256 46bc453ccaa6c9534970cb6ba7b78bb9f76655419acd8d59d58d7fa91c2e9319 SHA512 739580e46d3c7f447d7c0092e62c22339e8b3d656b9adc25b235b06cc8815c1d57a9221fb3b62854bc32ab02c64f4dad036d44a2357fbbd470b9c1bd0224621a WHIRLPOOL 9fcaf31b9876c598f5ff1eb587630399dd992a44cef9e186287aad9e0359b8ab5b09dd9cec1fefc560b82c98fb4efada9d7c53177febdcf8a0e46e8464ade45f
+DIST pandoc-citeproc-0.6.tar.gz 227239 SHA256 ab60459ead81420d1320314b194a40f6d91bd89b34c88547e6283ab8724511f2 SHA512 eb626e0d776b798757d6b8644d0f5642f07141d614f1a3afe6e265ca77cf17030cee3ff267870d3f0a226c7111d68746a5a88c4a9689e2103f329f1b8fc4bd58 WHIRLPOOL 0135301efa73fc01d8633472103b9c6d755afccf4a20231cd56927231c5584e6ce371d503e9e8c6b0edbfed9543e8fa0e23afec4224bc39ab5e4231b5c1de718
+DIST pandoc-citeproc-0.7.2.tar.gz 246215 SHA256 3eddf364561a8f175493cdd32eb4c7994164d2c27625c07cf13bfd491539f936 SHA512 857fe05cc1b427a5de36d61c568b1054ecc5517ef9b9e73ade768d886340f6092784c0cbcdc9f87e04a1820edfebc702b34776f664c4d427f484011993f4bec2 WHIRLPOOL 0de656e61ee4bb9c440342d4505b6d5001fd5f07cf08bdb535ec8124734b0b90682c1263a13e2204e59a69de86d51eed5bb4b27c06240af4c246ca8ec185b531
diff --git a/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.6-ghc-7.10.patch b/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.6-ghc-7.10.patch
new file mode 100644
index 000000000000..cee2d93bc213
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.6-ghc-7.10.patch
@@ -0,0 +1,115 @@
+--- pandoc-citeproc-0.6-orig/src/Text/CSL/Pandoc.hs 2014-09-22 14:04:21.000000000 +1000
++++ pandoc-citeproc-0.6/src/Text/CSL/Pandoc.hs 2015-01-10 11:57:26.900041860 +1100
+@@ -201,10 +201,10 @@
+ && isEndPunct c -> True
+ (c:_) | isEndPunct c -> True
+ | otherwise -> False
+- where isEndPunct c = c `elem` ".,;:!?"
++ where isEndPunct c = c `elem` (".,;:!?" :: String)
+
+ startWithPunct :: [Inline] -> Bool
+-startWithPunct = and . map (`elem` ".,;:!?") . headInline
++startWithPunct = and . map (`elem` (".,;:!?" :: String)) . headInline
+
+ deNote :: Pandoc -> Pandoc
+ deNote = topDown go
+@@ -324,7 +324,7 @@
+ sp <- option "" (pSpace >> return " ")
+ r <- many1 (notFollowedBy pSpace >> notFollowedBy pLocatorPunct >> anyToken)
+ let s = stringify r
+- guard $ any isDigit s || all (`elem` "IVXLCM") s
++ guard $ any isDigit s || all (`elem` ("IVXLCM" :: String)) s
+ return $ punct ++ sp ++ s
+
+ pDigit :: Parsec [Inline] st ()
+--- pandoc-citeproc-0.6-orig/src/Text/CSL/Proc.hs 2014-09-22 14:04:21.000000000 +1000
++++ pandoc-citeproc-0.6/src/Text/CSL/Proc.hs 2015-01-10 11:56:18.797456065 +1100
+@@ -288,7 +288,7 @@
+ case ys of
+ Formatted [] -> xs
+ Formatted (Note _ : _) -> xs <> ys
+- Formatted (Str [c]:_) | c `elem` ", ;:" -> xs <> ys
++ Formatted (Str [c]:_) | c `elem` (", ;:" :: String) -> xs <> ys
+ _ -> xs <> Formatted [Space] <> ys
+ formatAuth = formatOutput . localMod
+ formatCits = (if isNote then toNote else id) .
+@@ -328,7 +328,7 @@
+ | otherwise = id
+ where
+ isPunct' [] = False
+- isPunct' xs = all (`elem` ".,;:!? ") xs
++ isPunct' xs = all (`elem` (".,;:!? " :: String)) xs
+ check o = case cleanOutput o of
+ [] -> ONull
+ x -> case trim' x of
+--- pandoc-citeproc-0.6-orig/src/Text/CSL/Eval/Names.hs 2014-09-22 14:04:21.000000000 +1000
++++ pandoc-citeproc-0.6/src/Text/CSL/Eval/Names.hs 2015-01-10 11:55:41.839119783 +1100
+@@ -1,4 +1,4 @@
+-{-# LANGUAGE PatternGuards #-}
++{-# LANGUAGE PatternGuards, FlexibleContexts #-}
+ -----------------------------------------------------------------------------
+ -- |
+ -- Module : Text.CSL.Eval.Names
+--- pandoc-citeproc-0.6-orig/src/Text/CSL/Eval.hs 2014-09-22 14:04:21.000000000 +1000
++++ pandoc-citeproc-0.6/src/Text/CSL/Eval.hs 2015-01-10 11:55:23.090597159 +1100
+@@ -1,4 +1,4 @@
+-{-# LANGUAGE PatternGuards #-}
++{-# LANGUAGE PatternGuards, FlexibleContexts #-}
+ -----------------------------------------------------------------------------
+ -- |
+ -- Module : Text.CSL.Eval
+--- pandoc-citeproc-0.6-orig/src/Text/CSL/Parser.hs 2014-09-22 14:04:21.000000000 +1000
++++ pandoc-citeproc-0.6/src/Text/CSL/Parser.hs 2015-01-10 11:54:59.755477862 +1100
+@@ -144,7 +144,7 @@
+
+ parseCslTerm :: Cursor -> CslTerm
+ parseCslTerm cur =
+- let body = unpack $ T.dropAround (`elem` " \t\r\n") $
++ let body = unpack $ T.dropAround (`elem` (" \t\r\n" :: String)) $
+ T.concat $ cur $/ content
+ in CT
+ { cslTerm = stringAttr "name" cur
+--- pandoc-citeproc-0.6-orig/src/Text/CSL/Style.hs 2014-09-22 14:04:21.000000000 +1000
++++ pandoc-citeproc-0.6/src/Text/CSL/Style.hs 2015-01-10 11:53:23.641828264 +1100
+@@ -130,7 +130,7 @@
+ -- this is needed for versions of pandoc that don't turn
+ -- a span with font-variant:small-caps into a SmallCaps element:
+ where handleSmallCapsSpans (Span ("",[],[("style",sty)]) ils)
+- | filter (`notElem` " \t;") sty == "font-variant:small-caps" =
++ | filter (`notElem` (" \t;" :: String)) sty == "font-variant:small-caps" =
+ SmallCaps ils
+ handleSmallCapsSpans x = x
+
+@@ -206,15 +206,15 @@
+ appendWithPunct (Formatted left) (Formatted right) =
+ Formatted $
+ case concat [lastleft, firstright] of
+- [' ',d] | d `elem` ",.:;" -> initInline left ++ right
+- [c,d] | c `elem` " ,.:;", d == c -> left ++ tailInline right
+- [c,'.'] | c `elem` ",.!:;?" -> left ++ tailInline right
+- [c,':'] | c `elem` ",!:;?" -> left ++ tailInline right -- Mich.: 2005
+- [c,'!'] | c `elem` ",.!:;?" -> left ++ tailInline right
+- [c,'?'] | c `elem` ",.!:;?" -> left ++ tailInline right
+- [c,';'] | c `elem` ",:;" -> left ++ tailInline right -- et al.;
+- [':',c] | c `elem` ",.!:;?" -> left ++ tailInline right
+- [';',c] | c `elem` ",.!:;?" -> left ++ tailInline right
++ [' ',d] | d `elem` (",.:;" :: String) -> initInline left ++ right
++ [c,d] | c `elem` (" ,.:;" :: String), d == c -> left ++ tailInline right
++ [c,'.'] | c `elem` (",.!:;?" :: String) -> left ++ tailInline right
++ [c,':'] | c `elem` (",!:;?" :: String) -> left ++ tailInline right -- Mich.: 2005
++ [c,'!'] | c `elem` (",.!:;?" :: String) -> left ++ tailInline right
++ [c,'?'] | c `elem` (",.!:;?" :: String) -> left ++ tailInline right
++ [c,';'] | c `elem` (",:;" :: String) -> left ++ tailInline right -- et al.;
++ [':',c] | c `elem` (",.!:;?" :: String) -> left ++ tailInline right
++ [';',c] | c `elem` (",.!:;?" :: String) -> left ++ tailInline right
+ -- ".;" -> right -- e.g. et al.;
+ _ -> left ++ right
+ where lastleft = lastInline left
+--- pandoc-citeproc-0.6-orig/src/Text/CSL/Util.hs 2014-09-22 14:04:21.000000000 +1000
++++ pandoc-citeproc-0.6/src/Text/CSL/Util.hs 2015-01-10 11:51:31.789057499 +1100
+@@ -1,4 +1,4 @@
+-{-# LANGUAGE ScopedTypeVariables, PatternGuards #-}
++{-# LANGUAGE ScopedTypeVariables, PatternGuards, FlexibleContexts #-}
+ module Text.CSL.Util
+ ( safeRead
+ , readNum
diff --git a/dev-haskell/pandoc-citeproc/metadata.xml b/dev-haskell/pandoc-citeproc/metadata.xml
new file mode 100644
index 000000000000..889d2992b91c
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/metadata.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <use>
+ <flag name="bibutils">use Chris Putnam's <pkg>app-text/bibutils</pkg></flag>
+ <flag name="embed_data_files">Embed locale files into the library (needed for windows packaging)</flag>
+ <flag name="network">use <pkg>dev-haskell/network</pkg> and <pkg>dev-haskell/http</pkg> to retrieve CSL file from URIs</flag>
+ <flag name="hexpat">use <pkg>dev-haskell/hexpat</pkg> instead of <pkg>dev-haskell/xml</pkg> for XML parsing</flag>
+ <flag name="small_base">Choose the new smaller, split-up base package.</flag>
+ <flag name="test_citeproc">Build the test-citeproc program</flag>
+ <flag name="unicode_collation">Use Haskell bindings to the <pkg>dev-libs/icu</pkg></flag>
+ </use>
+ <longdescription>
+ The pandoc-citeproc library exports functions for
+ using the citeproc system with pandoc. It relies on
+ citeproc-hs, a library for rendering
+ bibliographic reference citations into a variety
+ of styles using a macro language called Citation
+ Style Language (CSL). More details on CSL can be
+ found here: &lt;http://citationstyles.org/&gt;.
+
+ Currently this package includes a copy of the citeproc-hs
+ code. When citeproc-hs is updated to be compatible,
+ this package will simply depend on citeproc-hs.
+
+ This package also contains two executables: pandoc-citeproc,
+ which works as a pandoc filter (pandoc &gt;= 1.12), and
+ biblio2yaml, which converts bibliographic databases to
+ a yaml format suitable for inclusion in pandoc YAML
+ metadata.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild
new file mode 100644
index 000000000000..ba32e278381c
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.4.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bibutils embed_data_files +hexpat +network +small_base unicode_collation"
+RESTRICT=test # missing files: locales-en-US.xml: openBinaryFile
+
+RDEPEND=">=app-text/pandoc-1.12.0.2:=[profile?]
+ dev-haskell/aeson:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/json:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-haskell/pandoc-types-1.12.3:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/split:=[profile?]
+ dev-haskell/syb:=[profile?]
+ dev-haskell/tagsoup:=[profile?]
+ >=dev-haskell/texmath-0.6.4:=[profile?]
+ dev-haskell/text:=[profile?]
+ dev-haskell/utf8-string:=[profile?]
+ dev-haskell/vector:=[profile?]
+ >=dev-haskell/yaml-0.8:=[profile?]
+ >=dev-lang/ghc-6.12.1:=
+ bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
+ hexpat? ( >=dev-haskell/hexpat-0.20.2:=[profile?] )
+ !hexpat? ( dev-haskell/xml:=[profile?] )
+ network? ( >=dev-haskell/http-4000.0.9:=[profile?]
+ >=dev-haskell/network-2:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+ test? ( dev-haskell/aeson-pretty
+ >=dev-haskell/diff-0.3 )
+"
+
+src_configure() {
+ # workaround bug on ghc-7.6.3:
+ # > [13 of 24] Compiling Text.CSL.Input.Bibtex ...
+ # > stack overflow: use +RTS -K<size> to increase it
+ replace-hcflags -O[2-9] -O1
+
+ haskell-cabal_src_configure \
+ $(cabal_flag bibutils bibutils) \
+ $(cabal_flag embed_data_files embed_data_files) \
+ $(cabal_flag hexpat hexpat) \
+ $(cabal_flag network network) \
+ $(cabal_flag small_base small_base) \
+ $(cabal_flag unicode_collation unicode_collation)
+}
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.2.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.2.ebuild
new file mode 100644
index 000000000000..0db640bd5f56
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.5.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bibutils embed_data_files +hexpat +network +small_base unicode_collation"
+RESTRICT=test # missing files: locales-en-US.xml: openBinaryFile
+
+RDEPEND=">=app-text/pandoc-1.12.1:=[profile?]
+ dev-haskell/aeson:=[profile?]
+ dev-haskell/aeson-pretty:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-haskell/pandoc-types-1.12.3:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/split:=[profile?]
+ dev-haskell/syb:=[profile?]
+ dev-haskell/tagsoup:=[profile?]
+ >=dev-haskell/temporary-1.1:=[profile?]
+ >=dev-haskell/texmath-0.6.4:=[profile?]
+ dev-haskell/text:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?] <dev-haskell/vector-0.11:=[profile?]
+ >=dev-haskell/yaml-0.8:=[profile?]
+ >=dev-lang/ghc-7.0.1:=
+ bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
+ hexpat? ( >=dev-haskell/hexpat-0.20.2:=[profile?] )
+ !hexpat? ( dev-haskell/xml:=[profile?] )
+ network? ( >=dev-haskell/http-4000.0.9:=[profile?]
+ >=dev-haskell/network-2:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+"
+
+src_configure() {
+ # workaround bug on ghc-7.6.3:
+ # > [13 of 24] Compiling Text.CSL.Input.Bibtex ...
+ # > stack overflow: use +RTS -K<size> to increase it
+ replace-hcflags -O[2-9] -O1
+
+ haskell-cabal_src_configure \
+ $(cabal_flag bibutils bibutils) \
+ $(cabal_flag embed_data_files embed_data_files) \
+ $(cabal_flag hexpat hexpat) \
+ $(cabal_flag network network) \
+ $(cabal_flag small_base small_base) \
+ $(cabal_flag unicode_collation unicode_collation)
+}
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.0.1.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.0.1.ebuild
new file mode 100644
index 000000000000..342a118774dc
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.0.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.6.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bibutils +hexpat +network unicode_collation"
+
+RDEPEND=">=app-text/pandoc-1.12.1:=[profile?]
+ dev-haskell/aeson:=[profile?]
+ dev-haskell/aeson-pretty:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-haskell/pandoc-types-1.12.3:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/split:=[profile?]
+ dev-haskell/syb:=[profile?]
+ dev-haskell/tagsoup:=[profile?]
+ >=dev-haskell/temporary-1.1:=[profile?]
+ >=dev-haskell/texmath-0.6.4:=[profile?]
+ dev-haskell/text:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?] <dev-haskell/vector-0.11:=[profile?]
+ >=dev-haskell/yaml-0.8:=[profile?]
+ >=dev-lang/ghc-7.0.1:=
+ bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
+ hexpat? ( >=dev-haskell/hexpat-0.20.2:=[profile?] )
+ !hexpat? ( dev-haskell/xml:=[profile?] )
+ network? ( >=dev-haskell/http-4000.0.9:=[profile?]
+ >=dev-haskell/network-2:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag bibutils bibutils) \
+ $(cabal_flag hexpat hexpat) \
+ $(cabal_flag network network) \
+ --flag=small_base
+ $(cabal_flag unicode_collation unicode_collation)
+}
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild
new file mode 100644
index 000000000000..6814161e1586
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.9999
+#hackport: flags: -small_base
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bibutils embed_data_files +hexpat +network test_citeproc unicode_collation"
+
+RDEPEND=">=app-text/pandoc-1.12.1:=[profile?]
+ dev-haskell/aeson:=[profile?]
+ dev-haskell/aeson-pretty:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-haskell/pandoc-types-1.12.3:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/split:=[profile?]
+ dev-haskell/syb:=[profile?]
+ dev-haskell/tagsoup:=[profile?]
+ >=dev-haskell/temporary-1.1:=[profile?]
+ >=dev-haskell/texmath-0.6.4:=[profile?]
+ dev-haskell/text:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?] <dev-haskell/vector-0.11:=[profile?]
+ >=dev-haskell/yaml-0.8.8.2:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+ bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
+ hexpat? ( >=dev-haskell/hexpat-0.20.2:=[profile?] )
+ !hexpat? ( dev-haskell/xml:=[profile?] )
+ network? ( >=dev-haskell/http-4000.0.9:=[profile?]
+ >=dev-haskell/network-2:=[profile?]
+ dev-haskell/network-uri:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+ test? ( >=app-text/pandoc-1.12.1
+ dev-haskell/aeson
+ >=dev-haskell/pandoc-types-1.12.3
+ dev-haskell/text
+ >=dev-haskell/yaml-0.8.8.2 )
+"
+
+src_prepare() {
+ cabal_chdeps \
+ 'network >= 2,' 'network >= 2, network-uri,'
+}
+
+src_configure() {
+ # workaround bug on ghc-7.6.3:
+ # > [13 of 24] Compiling Text.CSL.Input.Bibtex ...
+ # > stack overflow: use +RTS -K<size> to increase it
+ [[ $(ghc-version) == 7.6.* ]] && replace-hcflags -O[2-9] -O1
+ [[ $(ghc-version) == 7.8.* ]] && replace-hcflags -O[2-9] -O1
+
+ haskell-cabal_src_configure \
+ $(cabal_flag bibutils bibutils) \
+ $(cabal_flag embed_data_files embed_data_files) \
+ $(cabal_flag hexpat hexpat) \
+ $(cabal_flag network network) \
+ --flag=-small_base \
+ $(cabal_flag test_citeproc test_citeproc) \
+ $(cabal_flag unicode_collation unicode_collation)
+}
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.6.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.6.ebuild
new file mode 100644
index 000000000000..798d14e51e32
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.6.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.4.9999
+#hackport: flags: -small_base
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit base haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bibutils embed_data_files test_citeproc unicode_collation"
+
+RESTRICT=test # missing files
+
+RDEPEND=">=app-text/pandoc-1.12.1:=[profile?]
+ >=dev-haskell/aeson-0.7:=[profile?] <dev-haskell/aeson-0.9:=[profile?]
+ dev-haskell/aeson-pretty:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/data-default:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-haskell/pandoc-types-1.12.3:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/split:=[profile?]
+ dev-haskell/syb:=[profile?]
+ dev-haskell/tagsoup:=[profile?]
+ >=dev-haskell/temporary-1.1:=[profile?]
+ dev-haskell/text:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?] <dev-haskell/vector-0.11:=[profile?]
+ >=dev-haskell/xml-conduit-1.2:=[profile?] <dev-haskell/xml-conduit-1.3:=[profile?]
+ >=dev-haskell/yaml-0.8.8.2:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+ bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+"
+
+PATCHES=("${FILESDIR}/${PN}-0.6-ghc-7.10.patch")
+
+src_configure() {
+ # workaround bug on ghc-7.6.3:
+ # > [13 of 24] Compiling Text.CSL.Input.Bibtex ...
+ # > stack overflow: use +RTS -K<size> to increase it
+ [[ $(ghc-version) == 7.6.* ]] && replace-hcflags -O[2-9] -O1
+ [[ $(ghc-version) == 7.8.* ]] && replace-hcflags -O[2-9] -O1
+
+ haskell-cabal_src_configure \
+ $(cabal_flag bibutils bibutils) \
+ $(cabal_flag embed_data_files embed_data_files) \
+ --flag=-small_base \
+ $(cabal_flag test_citeproc test_citeproc) \
+ $(cabal_flag unicode_collation unicode_collation)
+}
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.7.2.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.7.2.ebuild
new file mode 100644
index 000000000000..9e5ed60510c5
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.7.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+#hackport: flags: -small_base
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bibutils debug embed_data_files test_citeproc unicode_collation"
+
+RESTRICT=test # fd:8: hClose: resource vanished (Broken pipe)
+
+RDEPEND=">=app-text/pandoc-1.13:=[profile?]
+ >=dev-haskell/aeson-0.7:=[profile?] <dev-haskell/aeson-0.10:=[profile?]
+ dev-haskell/aeson-pretty:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/data-default:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/old-locale:=[profile?]
+ >=dev-haskell/pandoc-types-1.12.3:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ >=dev-haskell/setenv-0.1:=[profile?] <dev-haskell/setenv-0.2:=[profile?]
+ dev-haskell/split:=[profile?]
+ dev-haskell/syb:=[profile?]
+ dev-haskell/tagsoup:=[profile?]
+ >=dev-haskell/temporary-1.1:=[profile?]
+ dev-haskell/text:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?] <dev-haskell/vector-0.11:=[profile?]
+ >=dev-haskell/xml-conduit-1.2:=[profile?] <dev-haskell/xml-conduit-1.4:=[profile?]
+ >=dev-haskell/yaml-0.8.8.7:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+ bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
+ debug? ( dev-haskell/pretty-show:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag bibutils bibutils) \
+ $(cabal_flag debug debug) \
+ $(cabal_flag embed_data_files embed_data_files) \
+ --flag=-small_base \
+ $(cabal_flag test_citeproc test_citeproc) \
+ $(cabal_flag unicode_collation unicode_collation)
+}