summaryrefslogtreecommitdiff
path: root/dev-haskell/pandoc-citeproc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/pandoc-citeproc
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/pandoc-citeproc')
-rw-r--r--dev-haskell/pandoc-citeproc/Manifest21
-rw-r--r--dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.6-ghc-7.10.patch115
-rw-r--r--dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.9-no-binutils.patch26
-rw-r--r--dev-haskell/pandoc-citeproc/metadata.xml39
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild64
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.10.4.1.ebuild63
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.10.4.ebuild63
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.2.ebuild62
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild75
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.6.ebuild63
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.7.2.ebuild63
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.8.1.3.ebuild65
12 files changed, 719 insertions, 0 deletions
diff --git a/dev-haskell/pandoc-citeproc/Manifest b/dev-haskell/pandoc-citeproc/Manifest
new file mode 100644
index 000000000000..65f7072c4896
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/Manifest
@@ -0,0 +1,21 @@
+AUX pandoc-citeproc-0.6-ghc-7.10.patch 5725 SHA256 2f8cbfd40791281c7c2749a40eaf68929ec6309839fe6f335b9d545906f7996b SHA512 ce3286a45b0d49e7e2d6544f5378c4789dbd9092fdd5eddc04a1f162770d828e5af1fc81d7c52a2c57d35c52323a60a660aeb6a77a57686413e423c70b07a00f WHIRLPOOL e7f7eee3cbca53ed422ad497d3d03501d2727bcd5688ab8651472ebe1184fd328e98adeece9387c45adbddfee077c5d04d2b16bc4519f6765097f4a31a321ef8
+AUX pandoc-citeproc-0.9-no-binutils.patch 912 SHA256 6e76baac28ef221978204337def2182abf2abdb571bd1c94cea55236eb10e422 SHA512 cac11810f8fadc32f5841e45419ecab1a60c8b9855558eaff126d5ce9e4062ddeb28b3980050f198469aafabd43480ea8be9532b209d2118634679d5bed908a7 WHIRLPOOL c0448cee07cc80d8ebf8482ef05893be5fa35deef02ac67fad3f5a5de6769af5db31d3a690807df47291857676cd782d5ee826246a52c889053da78bc773e0c6
+DIST pandoc-citeproc-0.1.2.1.tar.gz 217171 SHA256 3b8ea95a02051ded8e097db85445f822d474ba3cebce7ab35e5ca7b62ed4248e SHA512 a83e34700b2f6f835aec0f66b199a1a43cb5e3318133774b7897316d676870ba56538468904ca754f246bf10a0826f834d6dba791d18a906405ed7c01126b77e WHIRLPOOL 6585eb1d435a207fc7d94616d09602e9c602f33c7f5e1fdde124022e07c6bc671a62c84fa31838c541a139b0988ea67a3acba881d4e2bbfe439dd4724bd2c194
+DIST pandoc-citeproc-0.10.4.1.tar.gz 252717 SHA256 6e6b0a89a831f9bfaa33dc0f3dff1792ee1626a5e66e1bd34da9447cd3c7de51 SHA512 afe0b81c4e58dc80cd0d05977d919bb1f1c8e7a77aba5ed960a04f3a6ff8ec398a62dc5e8497d01db7f67e9ce808a94d1b53c4cecb8b6a28893ec8076555c7ec WHIRLPOOL d6db9a5e141e3da03c9703f16f442b7cd8fddd5c9299c60e1a8b6417dd7ee246854100a996b79b0ce30b63486c16c7707cf379dd5b4ba6d11c20dbc59ab643bd
+DIST pandoc-citeproc-0.10.4.tar.gz 252481 SHA256 1dcfffe0dc26d0a1b5ef5688a09c1bb81231702169196e6faed8ddef360d848f SHA512 f188cf2d6642c0dddf2437d23096d488f5e6eb44b9931b004feb72c8adc1a5240d85f8ed48ced9f073733ee546818e3530962e2f2b2ce6cfa52979ec1fdd7cee WHIRLPOOL 744b27a4373378a5ba97c5c6ff80ff218f375ac95621c55e94db027441ac663981265a22fbf54dc23af682a2b239d2797908dddb5a5f3b3cd54f41f7947c0601
+DIST pandoc-citeproc-0.2.tar.gz 249374 SHA256 4d54092a277e547e2d5f57aab12836a59f1060344a5fca83939b6541eb9f0d3e SHA512 f7205afb15aeb71dc756e9f49a265f4c4c1380075b088b8c9e366fe363c2ea059b1d28bcbbe70bab449b987bbceba5d1cb7a693f5bf6bc0e3132cb995fd639c4 WHIRLPOOL a7db263793ba69b97e492e66a2185f9d141035aea50e686fe933f18031bd9a65417fa2cc76c85e873701ddf5a53285cd8ce7800e10325f4d80044d7c50be6a37
+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
+DIST pandoc-citeproc-0.8.1.3.tar.gz 310914 SHA256 aa15ff9cbb9c1cca504943c94cd891e23944cb0106172886821cb048a9726c7d SHA512 f03e036b05e108e1720715d0f5020ef443491478230a3ebb5024e4cbc2dfa05765b4118e5fbe124514439f14b3a07a898df74a0c3b3bbeb138abbad6af2f473b WHIRLPOOL 9324201a9848d99256a210a5569b52f69c903c7545a7656234b96b4d97524903b031aa92f8b01f41d5e781a29693ce2d02adceb1119030c901aa47f4a48b9c78
+EBUILD pandoc-citeproc-0.1.2.1.ebuild 2112 SHA256 b34d8a5a0cb953c49f858a5a96063e091de8cea6ecb61cfc014ed21addbc03cc SHA512 045079850b978e26ac8b38b7a40454389cfb68e206b3c70b64b53b7bb8b879cfd10d582ce70568b2720dd3139fa20e31587ed8943a821e6a66020a9a951c0ff1 WHIRLPOOL d90fbe46a6e25f1040f3befd5875fc6fbf60f9aff91d7e0275332596a4231fcd51837cd07868dbbeeb37d8896c43cb5ebc0ddc4895fde713f7de543ec28b093f
+EBUILD pandoc-citeproc-0.10.4.1.ebuild 2353 SHA256 4ffe7749d41c108f1dfe7a0ef36c45a74c9faffde99f4d7ab6bd2c4c219e81d0 SHA512 ca6c837df3ca2d161e003d88add248add3d0bf1b529962e2510e7c20f93852c5795159d88619f175d739b0eaa0e527f06791ece1109a4a44892dff68f0ef7169 WHIRLPOOL 2248b4fb16e21f213431a92b114f5d9859fa8442f0c7b27cae846b370d13cf448bf9880c9d55acd48e3206c13d3779f1516a598318770b502e56bf357da97d24
+EBUILD pandoc-citeproc-0.10.4.ebuild 2355 SHA256 c1dc0361ed4ee23616380242fbcd3efb73097f9f03cf36192e5f35b5aef55459 SHA512 173fa06c3c3b7adfd20d96c1e31f7ee243eaa16717fc65f46d520f067188f4f8b049a3fdc040427e2f656bd8082b3521c018de6020ce50c67ba6234d9afc5509 WHIRLPOOL cc9a2ee8dfab850f5c868d8877d4cbb0992eba961ec2863a548474109449cc71d0b095c4cce1134d62ee8d6f28e638d5f9c5fe13b0812aed063b21cc4c337a0a
+EBUILD pandoc-citeproc-0.2.ebuild 2104 SHA256 9ebd1d4a9901b0b4b54a1cf3cf9cf1bb01e60576518063e2650f092a687588e3 SHA512 6b4e5509fe98b9eb1dc46fc2c27a9c0710ed0842b08c02f00fb6554e15cab7a052d46e687e997dfd0221a994248890571e5175b91e041062122fd3df4d5614c5 WHIRLPOOL a47820a666b58758572067c0f92894197dfcaeea745d40d877cd8b49dc5037bc91139c7f8b2f3dcfabc20efc989f0b091d1930cf8a42770bd9d3aa21b92c0875
+EBUILD pandoc-citeproc-0.3.1.ebuild 2456 SHA256 aed1f332560aa79b40de5dd32c25db5fabe15986bcc049f7c9d65f5f9e95b6e9 SHA512 3a5813c0a8658663e9013d4df111cd8810b1528ecfc6b4af25d14eb10bbcec6eaacaa658fede91a906a19e7b8e90b176d1157ffe10fee2f7c46c1c637bf86ec6 WHIRLPOOL 58265d5a075c35a0f7e6470ba921e63662a5efa7e52120ca88b17f0feaea1381c1831bcc9caad309305cb7ba1d24ceca490acc69c344d85988f6c1dcbe392f36
+EBUILD pandoc-citeproc-0.6.ebuild 2136 SHA256 a34c8212ca393da9eb090db043090698b28fd3ad405096496c7b35789d38d5aa SHA512 a40e996c79544932e0785b9e1fb033398090682af58bac03f06676af74407d5dea6de01297f8cbc09abc3dcc707f6dfe11c4df178cdb221d20d462da739b978a WHIRLPOOL 907a6d1a37e91d6cfdcddb2282b52d287f5cc45fda603d8298d09b04141c16e8754c80ae355becbc118b487cdf0ef5d482763a9da440c44e10426fc438296514
+EBUILD pandoc-citeproc-0.7.2.ebuild 2110 SHA256 da3832998eb09aba140a307a1958053a1072632d6bec1a22ca96e029ddfd46ca SHA512 c0736a3700eefa3d828b95f939b613005054cb41772759f5cefbb3b2b0e2b43201d173d0594dfd7a74d83772d342a846e35b42bb3b3fe57dff294b5af9eba6e9 WHIRLPOOL df7f7cda4f01f46236c3d0c2ac23ff750b7c5dfa0b90b0c54f4eade9f22912715637f8fb0b99a47dd4f5ce27e316b5848fb863c8137894a8ca0c0a5b1226913a
+EBUILD pandoc-citeproc-0.8.1.3.ebuild 2228 SHA256 afbffe83ad5a1d3617d073738eb018bcf70c72f85e85246e41b4731106fa4e05 SHA512 94130e2d9809947df54a223d85950bedc1ee2c8a800af9c4f6db7c84ba81a9eb4c689f67f5898f4c43f5881e09f09c0be6dfbce8037a34601df886c129f0acfa WHIRLPOOL ec005e3880df4970d95cd1a4d00009fb4df1eecca26d6405c11096e03a7a5921e578b02e083091984a6fd53d7eda83cd471741431efdc5d616322775f3c93145
+MISC ChangeLog 3924 SHA256 a593823e7cae4386f3c1329bce384c9b018c4b5f27a51b9223eaacc92ca2c45a SHA512 a41750914607b889870dea9105acca7af62f1a7933bac9bf1f4788d92690667223f7ebb455b22d992be14ca6c58910b0703aacb2f8f2e098421abf067719132e WHIRLPOOL 826be293cd9f2c7061fcf25ad1f325719aa349a4587222988ffbc1ad3ce2e4dbe5591388f5bf31dc694058fece0515a0f8bcb7065fba7a2ef2ff104daad0b147
+MISC ChangeLog-2015 1667 SHA256 6daeccf744a5ee438669ddc883bbd611a4a097315ee84947e3d2d64c23589131 SHA512 8a61c52a1d3b6d5baf3b3b8cfead5d19abef8e0940832a60c3b5ade2ffc3dbf53d33b705b4a0cd269d71124daebe05e42cda4789b7ea173a20697a88206a52c1 WHIRLPOOL d62a159c37acb1a81ebcc5fed6f13d14ce928d616fdda15c2fd4e5ad612f016e09271637d16f452c319fe2a98958e0533e14c7ae860c8d85eddd14474a789d0e
+MISC metadata.xml 1820 SHA256 c32841fa3c372ed47b23dd9c8667ded98ba4a7fdeed66b2c665ab444b1338154 SHA512 96e5b6d8b20ca55fa2e93eb72bcb49c3f1196643366ff6e887df30197cb70c4bae6e0bd6d22f5b64f6830c27f3757f83ace246ad5517b464e227f8223e02687d WHIRLPOOL a8ae9d5affb27c0cfd394edc39a32d24d12ceab7eaf4af0ce49fdbd7fe25470895e39154cdbd3dd9953372a86d8d4b621e6244a100fdf24e95c56ee10f38b44f
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/files/pandoc-citeproc-0.9-no-binutils.patch b/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.9-no-binutils.patch
new file mode 100644
index 000000000000..c7c8655e14d8
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.9-no-binutils.patch
@@ -0,0 +1,26 @@
+Fails to build with -f-bibutils:
+https://bugs.gentoo.org/516640
+diff --git a/pandoc-citeproc.hs b/pandoc-citeproc.hs
+index 7006e02..f72fa41 100644
+--- a/pandoc-citeproc.hs
++++ b/pandoc-citeproc.hs
+@@ -1 +1,2 @@
++{-# LANGUAGE CPP #-}
+ module Main where
+@@ -75,2 +76,3 @@ readFormat = go . map toLower
+ go "bibtex" = Just Bibtex
++#ifdef USE_BIBUTILS
+ go "ris" = Just Ris
+@@ -87,2 +89,3 @@ readFormat = go . map toLower
+ go "yaml" = Just Yaml
++#endif
+ go _ = Nothing
+diff --git a/src/Text/CSL/Input/Bibutils.hs b/src/Text/CSL/Input/Bibutils.hs
+index 081fa91..49ddbd0 100644
+--- a/src/Text/CSL/Input/Bibutils.hs
++++ b/src/Text/CSL/Input/Bibutils.hs
+@@ -64,3 +64,3 @@ readBiblioFile f
+ #else
+- _ -> error $ "citeproc: Bibliography format not supported.\n" ++
++ _ -> error $ "citeproc: Bibliography format not supported.\n"
+ #endif
diff --git a/dev-haskell/pandoc-citeproc/metadata.xml b/dev-haskell/pandoc-citeproc/metadata.xml
new file mode 100644
index 000000000000..cc43b3deba93
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/metadata.xml
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <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>
+ <upstream>
+ <remote-id type="github">jgm/pandoc-citeproc</remote-id>
+ </upstream>
+</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..ccaee0e55d7e
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.10.4.1.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.10.4.1.ebuild
new file mode 100644
index 000000000000..e2d63fc8aa19
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.10.4.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.1.9999
+#hackport: flags: -small_base
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="https://github.com/jgm/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 # execs a process dropping environment (with LD_PRELOAD)
+
+RDEPEND=">=app-text/pandoc-1.16:=[profile?] <app-text/pandoc-2.1:=[profile?]
+ >=dev-haskell/aeson-0.7:=[profile?] <dev-haskell/aeson-1.2:=[profile?]
+ >=dev-haskell/aeson-pretty-0.8:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/data-default:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/old-locale:=[profile?]
+ >=dev-haskell/pandoc-types-1.16:=[profile?] <dev-haskell/pandoc-types-1.18:=[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/text:=[profile?]
+ >=dev-haskell/unordered-containers-0.2:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
+ >=dev-haskell/xml-conduit-1.2:=[profile?] <dev-haskell/xml-conduit-1.6:=[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?] )
+ test_citeproc? ( >=dev-haskell/temporary-1.1:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?] )
+ !test_citeproc? ( dev-haskell/vector:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+ test? ( !test_citeproc? ( >=dev-haskell/temporary-1.1 ) )
+ embed_data_files? ( dev-haskell/hsb2hs )
+"
+
+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)
+}
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.10.4.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.10.4.ebuild
new file mode 100644
index 000000000000..64db508e0edf
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.10.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.1.9999
+#hackport: flags: -small_base
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="https://github.com/jgm/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 # execs a process dropping environment (with LD_PRELOAD)
+
+RDEPEND=">=app-text/pandoc-1.16:=[profile?] <app-text/pandoc-2.1:=[profile?]
+ >=dev-haskell/aeson-0.7:=[profile?] <dev-haskell/aeson-1.2:=[profile?]
+ >=dev-haskell/aeson-pretty-0.8:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/data-default:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/old-locale:=[profile?]
+ >=dev-haskell/pandoc-types-1.16:=[profile?] <dev-haskell/pandoc-types-1.18:=[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/text:=[profile?]
+ >=dev-haskell/unordered-containers-0.2:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
+ >=dev-haskell/xml-conduit-1.2:=[profile?] <dev-haskell/xml-conduit-1.5:=[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?] )
+ test_citeproc? ( >=dev-haskell/temporary-1.1:=[profile?]
+ >=dev-haskell/vector-0.10:=[profile?] )
+ !test_citeproc? ( dev-haskell/vector:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+ test? ( !test_citeproc? ( >=dev-haskell/temporary-1.1 ) )
+ embed_data_files? ( dev-haskell/hsb2hs )
+"
+
+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)
+}
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..72658455f8d1
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.1.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild
new file mode 100644
index 000000000000..6db5f10ed771
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.3.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..1172030256f2
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.6.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..332e82c6e28d
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.7.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9-no-binutils.patch
+}
+
+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)
+}
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.8.1.3.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.8.1.3.ebuild
new file mode 100644
index 000000000000..51b893fd6c45
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.8.1.3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.6.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 # execs a process dropping environment (with LD_PRELOAD)
+
+RDEPEND=">=app-text/pandoc-1.13:=[profile?]
+ >=dev-haskell/aeson-0.7:=[profile?] <dev-haskell/aeson-0.11:=[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/unordered-containers-0.2:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
+ >=dev-haskell/vector-0.10:=[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
+ embed_data_files? ( dev-haskell/hsb2hs )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9-no-binutils.patch
+}
+
+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)
+}