summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2013-09-14 01:12:13 +0000
committerMark Wright <gienah@gentoo.org>2013-09-14 01:12:13 +0000
commit55d18c56441cddf8c02316eb6b8de7a00c80ab6e (patch)
tree4e30118ed37e272a7b70071f74be3fcc9cb59854 /app-text/pandoc
parentAdd missing sys-apps/dbus[X] dependency per bug #475642 (diff)
downloadhistorical-55d18c56441cddf8c02316eb6b8de7a00c80ab6e.tar.gz
historical-55d18c56441cddf8c02316eb6b8de7a00c80ab6e.tar.bz2
historical-55d18c56441cddf8c02316eb6b8de7a00c80ab6e.zip
Thanks to eroen for reporting, patch pandoc tests for >=dev-haskell/highlighting-kate-0.5.5, following similar changes from upstream.
Package-Manager: portage-2.2.4/cvs/Linux x86_64 Manifest-Sign-Key: 0x618E971F
Diffstat (limited to 'app-text/pandoc')
-rw-r--r--app-text/pandoc/ChangeLog10
-rw-r--r--app-text/pandoc/Manifest11
-rw-r--r--app-text/pandoc/files/pandoc-1.11.1-highlighting-kate-0.5.5-tests.patch42
-rw-r--r--app-text/pandoc/files/pandoc-1.11.1-tagsoup-0.13.patch62
-rw-r--r--app-text/pandoc/pandoc-1.11.1-r1.ebuild103
5 files changed, 223 insertions, 5 deletions
diff --git a/app-text/pandoc/ChangeLog b/app-text/pandoc/ChangeLog
index f78b413b236d..0ed2cca581da 100644
--- a/app-text/pandoc/ChangeLog
+++ b/app-text/pandoc/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-text/pandoc
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/pandoc/ChangeLog,v 1.17 2013/06/22 22:28:37 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/pandoc/ChangeLog,v 1.18 2013/09/14 01:12:04 gienah Exp $
+
+*pandoc-1.11.1-r1 (14 Sep 2013)
+
+ 14 Sep 2013; Mark Wright <gienah@gentoo.org>
+ +files/pandoc-1.11.1-highlighting-kate-0.5.5-tests.patch,
+ +files/pandoc-1.11.1-tagsoup-0.13.patch, +pandoc-1.11.1-r1.ebuild:
+ Thanks to eroen for reporting, patch pandoc tests for >=dev-haskell
+ /highlighting-kate-0.5.5, following similar changes from upstream.
22 Jun 2013; Sergei Trofimovich <slyfox@gentoo.org> pandoc-1.11.1.ebuild:
Raise lower bounds of some deps (bug #474102 by bdouxx).
diff --git a/app-text/pandoc/Manifest b/app-text/pandoc/Manifest
index f66b589257b0..253f4125fa11 100644
--- a/app-text/pandoc/Manifest
+++ b/app-text/pandoc/Manifest
@@ -1,19 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+AUX pandoc-1.11.1-highlighting-kate-0.5.5-tests.patch 3344 SHA256 7363840edf89cc04ec97989eb3528db3f11be06a23d106a3c59ca8c1cbecd753 SHA512 b80030b2e01ef6af06ed743b673830128be7ea85cecab727ec982621a896e1845249992aa70f8efa865980d1c0b5dc20a4179052e84ee63e365564a43ac69327 WHIRLPOOL 40a275242e629be937e4abfa9f0e55b36c86e8142ff00d2b04c853913dc5a4ffb5f083be7cf45cffc0b41611f4a73465bb0f7ea35dfbb487e8ac1f2b35a730a7
AUX pandoc-1.11.1-no-man-tests.patch 899 SHA256 633640721ea96c90c0df7e3b8ca7524f0f47d24490019cd3e28faa9f7e4c1dfe SHA512 9d9f125de076fac08adf104b619a4b58875e9f26dea4c7923505535291a4e2e797b9635da744c20f648e3a8588d2ad04b175201d39a16044b962cdcad2e0a3fa WHIRLPOOL 0a14deae90397ae2d30b3e20892d59a2aa12ef76a316afdef778dd69a3d5121ac6d447b9be907c65f1c23b56204450c12df9bb4fcbcea26d23bcb00e75b5dbce
+AUX pandoc-1.11.1-tagsoup-0.13.patch 2529 SHA256 45578ec8bdb219af9d8cdd45f992f9f376f6c77d4c7619ab19d9a218bc1147b7 SHA512 7dc5839924df61a948b65eaa79e755fabfe4589543f076dcfc2ad501a9e671bceed86d587d901e9146b5d7b6e3379187c75f59b5ae23a019288a9deb3cc4d951 WHIRLPOOL 71ae44c99d7db952438531d132e2f3dada25f8944f44b157082f313ceffaa0b0bef72d1f360b6321bdaa1bb937113085703c588555ebf56fdc0fbeec90f79c97
AUX pandoc-1.11.1-test.patch 1583 SHA256 da6ddb7b668d7fe043f4032be975eaf8a85d2d0c0eeffec4036d9aa2ade74b0c SHA512 9d6d13989d86ddcbb3ede45bc356710c8ef2f459652bbb4b06589f7312c74b8a77f6941727684fc9f315460360ef102961da04a79f57c3d03cddee41bf909bdc WHIRLPOOL f5063c32fa23f1b9dd0c3d8d015c6338d9c8a573f8095c97437850023489ce22de4395d6443f9b5f1d6990f95237351a40e6cd5965da9566c2f9d48aafc49e8e
AUX pandoc-1.9.4.5-disable-writes-other-man.patch 930 SHA256 cf2c41dcfb0f96b0bb653d1ee9c5f38b9e4be4ad7f7484e872a3fc4aa8750765 SHA512 70ed080dea38d795200d1cc502ca53007fe70c17806d68c5383b41a5461b5df30fb19c38b1a74bd46a3253d6b4849b0a08c84a0dd310e6d8eeecc9fad1b9b25e WHIRLPOOL f96a8e17316d8c3ab7d86203fc153741c816e8631b4959e428bfca3d5215283eeb37d10a65748cd2f153a820ea8f04488b3a371567b77faccc8bf8521f3f75af
DIST pandoc-1.11.1.tar.gz 1093354 SHA256 ebb090b08b5439d719d1d01575aa91262035cb9b8de61ffaf49a853a5fde432c SHA512 100cadc021fd88621ab0a5a8747e913312e569e26bf4c22caddcb00b98e8877a047a6289fb478946515cdf15da2dc0840110c94bb81988b893f0d201de91fcf0 WHIRLPOOL 4409ab19581002a5f488af7107cfe8f2098b47891262a30fdd1fa6e24348bfc7f4a5b752a92cb48e2ce92cc566f04e8a3702cea1bc3e7a8369a3ec47198ab1b3
DIST pandoc-1.9.4.5.tar.gz 574992 SHA256 cb993c42549746712a6261b5d8a5b89aa8ee2ed46f9a45fb01d5947346896816 SHA512 c147c4557733358135916a41b0108c9f1e7d02e237e156c2345f0ffb3eec0e2a10c910f80c758552f03d62b3ba689feb50b4e0cd207e4965a97a71502bc47f17 WHIRLPOOL c284553a1d4a7e2e687e9ecdb53b43a37e02c45120e2aacd6a6c613ae4e9d6238d3f7e3e9e504a5d4f866c73b77a75fc7e2a01cf2b79028ec7344c915664a71f
+EBUILD pandoc-1.11.1-r1.ebuild 3383 SHA256 4f905d34e0d87583d589f24dd6744e0a471fa12c28b3b2fd47ce51a020ea76e6 SHA512 3c1a0e48a299ca3ead866933883d89f7186883f4bd1e64be82c00b3a00cf8a4cb07826bf867c59b07c98d8a6776dd8f902071e00110dfd7438c8513e33da6be4 WHIRLPOOL e8aa2f86ea60b423b10be977caf597bdd8f93ed801ca6fd152b2dcd6dddfe529420407f553816018cbcc21c88406a1263a496c15ba0428b6ecdec83149e573e9
EBUILD pandoc-1.11.1.ebuild 3205 SHA256 e624a772d60678b03138eb4b19ca3f802e792e393411eca9f3873cbe1952888b SHA512 58c562f20993fb194c8baa0fd4f2ce4bc9a557e9a3c168bc639a1e297315d5444b13e5dd16ce611636676dc5ba341eca33ce2661cbae2429c1b1c6d03244fe0d WHIRLPOOL 0e5dca157f8020ee3dad2e6a01aa188953c5fd6fc3fbdb7da5ff96765e0a4472923b9bb4712dc0c2e9430f9c54cbf1ddd67381fffd44190d950eb37965e057a9
EBUILD pandoc-1.9.4.5.ebuild 3015 SHA256 0ff608582e00da659a6df40198428c47a23034de1cf2a10d4f6565d292b6ab7e SHA512 3a4aa1ad4d1a044204b40640b0afed01ca5f805fe51a5df109fbea39133aef79a903c2a96ea957bbeea1e21ef43a79895b0894367daa0f833a11c6aaf9f326b7 WHIRLPOOL 07decb62d94b5c81e2bcd9afbe70ca2cabaff6b6979d227ffc1e8657530f8050d4de54d71fbe0b332b473c4fe94ad05985299957d4d881ff20fe9802a6c06bf2
-MISC ChangeLog 3633 SHA256 7c14dd984ee2d05ec5204cbdb93e517a005aeeceee2429a9acf8ee4cd0d88218 SHA512 12ec558fb45f165eefc19cf9ff97376d0ad560dc2c886568b50a10c9c44a36a41882f7ece0645f2b70c484e59beb0698e3aacb155b3857cc6a83c90c31a7319e WHIRLPOOL dfa247d16cb177187dbb6425e463b2216f8dcda048a2729804618533582a4e910bdb5855b81584dac7b5638c82c9bedfd3090f5483a91ef20695631906bb9597
+MISC ChangeLog 3982 SHA256 5fca5cfb9939be287999de99ef17ce7f7293d041285e4ba43bfac1c53f13f81a SHA512 5bcec85f1dbc18414d7b2866d8adc59bfe0b740ffba41546249f1435ad69f61846bfdd5a68ad2ce18444f34b68ab1fb91b0e306d731345152cc07010fbe13ffe WHIRLPOOL 795e6c3a7d7dc15f263e0cd280dc7ed940cef0946556ad11c908a575380c6973381b13ad6edf8b3122cf96d272db796ec7305cb6e141cf938b84e595661d9827
MISC metadata.xml 817 SHA256 f299da94e1b04a53c4c6298217fb4950c83bcc049490787f63a132eb1276f523 SHA512 74e1d62b12c37ae9b492de05ea198f4bdc753ea3b460492256c99c7b1472f67e818cbe14227bc71d6c5d0bfbd51f37fe7b5198f2c1f7dfc8e3f9a9b153dc16ff WHIRLPOOL e1ab3f1ad16ea9be9d5985cfcd480f76fb24565216b0d8e81fb8288d1ed517b2e3a02236d543f442f8ff08dd08ef22d0e16ca8aeca007012f5da37c1f92f5d26
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iEYEAREIAAYFAlHGJJ8ACgkQcaHudmEf86rg3gCfcm8dCzcb5n3qQuEvjksnY5p9
-zncAnRqXhXfcpjleXTeOx7a/AUjavXIH
-=sw8W
+iF4EAREIAAYFAlIzt1EACgkQoBEVQmGOlx/gBgD/bB8AuaWEf/5o1dxVF4RPEEN4
+2N08OJS+40zEeNIVmnkA/2Uqje48eaQJFR6bcvjdyX4fgAusIZNpYxloSc0qjqUI
+=z+Zq
-----END PGP SIGNATURE-----
diff --git a/app-text/pandoc/files/pandoc-1.11.1-highlighting-kate-0.5.5-tests.patch b/app-text/pandoc/files/pandoc-1.11.1-highlighting-kate-0.5.5-tests.patch
new file mode 100644
index 000000000000..0ba930f4cfed
--- /dev/null
+++ b/app-text/pandoc/files/pandoc-1.11.1-highlighting-kate-0.5.5-tests.patch
@@ -0,0 +1,42 @@
+--- pandoc-1.11.1-orig/tests/lhs-test.html+lhs 2013-03-18 09:26:59.000000000 +1100
++++ pandoc-1.11.1/tests/lhs-test.html+lhs 2013-09-14 10:27:51.318546683 +1000
+@@ -30,7 +30,7 @@
+ <h1>lhs test</h1>
+ <p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
+ <pre class="sourceCode literate literatehaskell"><code class="sourceCode literatehaskell"><span class="ot">&gt; unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
+-<span class="ot">&gt;</span> unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span>
++<span class="ot">&gt;</span> unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
+ <span class="ot">&gt;</span> <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></code></pre>
+ <p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
+ <pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
+--- pandoc-1.11.1-orig/tests/lhs-test.html 2013-03-18 09:26:59.000000000 +1100
++++ pandoc-1.11.1/tests/lhs-test.html 2013-09-14 10:27:28.671546899 +1000
+@@ -30,7 +30,7 @@
+ <h1>lhs test</h1>
+ <p><code>unsplit</code> is an arrow that takes a pair of values and combines them to return a single value:</p>
+ <pre class="sourceCode literate haskell"><code class="sourceCode haskell"><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d
+-unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span>
++unsplit <span class="fu">=</span> arr <span class="fu">.</span> uncurry
+ <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></code></pre>
+ <p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a pair of values (one arrow on the first item of the pair and one arrow on the second item of the pair).</p>
+ <pre><code>f *** g = first f &gt;&gt;&gt; second g</code></pre>
+--- pandoc-1.11.1-orig/tests/lhs-test.latex 2013-09-14 10:46:07.412536229 +1000
++++ pandoc-1.11.1/tests/lhs-test.latex 2013-09-14 10:45:51.638536380 +1000
+@@ -21,7 +21,7 @@
+ \usepackage{color}
+ \usepackage{fancyvrb}
+ \newcommand{\VerbBar}{|}
+-\DefineShortVerb[commandchars=\\\{\}]{\|}
++\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
+ \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
+ % Add ',fontsize=\small' for more characters per line
+ \newenvironment{Shaded}{}{}
+@@ -73,7 +73,7 @@
+ \begin{Shaded}
+ \begin{Highlighting}[]
+ \OtherTok{unsplit ::} \NormalTok{(}\DataTypeTok{Arrow} \NormalTok{a) }\OtherTok{=>} \NormalTok{(b }\OtherTok{->} \NormalTok{c }\OtherTok{->} \NormalTok{d) }\OtherTok{->} \NormalTok{a (b, c) d}
+-\NormalTok{unsplit }\FunctionTok{=} \NormalTok{arr }\FunctionTok{.} \FunctionTok{uncurry}
++\NormalTok{unsplit }\FunctionTok{=} \NormalTok{arr }\FunctionTok{.} \NormalTok{uncurry}
+ \CommentTok{-- arr (\textbackslash{}op (x,y) -> x `op` y)}
+ \end{Highlighting}
+ \end{Shaded}
diff --git a/app-text/pandoc/files/pandoc-1.11.1-tagsoup-0.13.patch b/app-text/pandoc/files/pandoc-1.11.1-tagsoup-0.13.patch
new file mode 100644
index 000000000000..ed3c3e89a0be
--- /dev/null
+++ b/app-text/pandoc/files/pandoc-1.11.1-tagsoup-0.13.patch
@@ -0,0 +1,62 @@
+--- pandoc-1.11.1-orig/pandoc.cabal 2013-03-18 09:26:59.000000000 +1100
++++ pandoc-1.11.1/pandoc.cabal 2013-08-10 12:52:49.969834000 +1000
+@@ -232,7 +232,7 @@
+ citeproc-hs >= 0.3.7 && < 0.4,
+ pandoc-types >= 1.10 && < 1.11,
+ json >= 0.4 && < 0.8,
+- tagsoup >= 0.12.5 && < 0.13,
++ tagsoup >= 0.12.5 && < 0.14,
+ base64-bytestring >= 0.1 && < 1.1,
+ zlib >= 0.5 && < 0.6,
+ highlighting-kate >= 0.5.3.7 && < 0.6,
+--- /dev/null 2013-08-09 12:59:27.506999856 +1000
++++ pandoc-1.11.1/src/Text/Pandoc/Compat/TagSoupEntity.hs 2013-08-10 12:28:14.261739000 +1000
+@@ -0,0 +1,15 @@
++{-# LANGUAGE CPP #-}
++module Text.Pandoc.Compat.TagSoupEntity (lookupEntity
++ ) where
++
++import qualified Text.HTML.TagSoup.Entity as TE
++
++lookupEntity :: String -> Maybe Char
++#if MIN_VERSION_tagsoup(0,13,0)
++lookupEntity = str2chr . TE.lookupEntity
++ where str2chr :: Maybe String -> Maybe Char
++ str2chr (Just [c]) = Just c
++ str2chr _ = Nothing
++#else
++lookupEntity = TE.lookupEntity
++#endif
+--- pandoc-1.11.1-orig/src/Text/Pandoc/Parsing.hs 2013-03-18 09:26:57.000000000 +1100
++++ pandoc-1.11.1/src/Text/Pandoc/Parsing.hs 2013-08-10 12:28:14.262814000 +1000
+@@ -159,7 +159,7 @@
+ import Text.Pandoc.Shared
+ import qualified Data.Map as M
+ import Text.TeXMath.Macros (applyMacros, Macro, parseMacroDefinitions)
+-import Text.HTML.TagSoup.Entity ( lookupEntity )
++import Text.Pandoc.Compat.TagSoupEntity ( lookupEntity )
+ import Data.Default
+ import qualified Data.Set as Set
+ import Control.Monad.Reader
+--- pandoc-1.11.1-orig/src/Text/Pandoc/Readers/DocBook.hs 2013-03-18 09:26:57.000000000 +1100
++++ pandoc-1.11.1/src/Text/Pandoc/Readers/DocBook.hs 2013-08-10 12:28:14.264936000 +1000
+@@ -4,7 +4,7 @@
+ import Text.Pandoc.Definition
+ import Text.Pandoc.Builder
+ import Text.XML.Light
+-import Text.HTML.TagSoup.Entity (lookupEntity)
++import Text.Pandoc.Compat.TagSoupEntity (lookupEntity)
+ import Data.Generics
+ import Data.Monoid
+ import Data.Char (isSpace)
+--- pandoc-1.11.1-orig/src/Text/Pandoc/XML.hs 2013-03-18 09:26:57.000000000 +1100
++++ pandoc-1.11.1/src/Text/Pandoc/XML.hs 2013-08-10 12:28:17.333957000 +1000
+@@ -39,7 +39,7 @@
+
+ import Text.Pandoc.Pretty
+ import Data.Char (ord, isAscii, isSpace)
+-import Text.HTML.TagSoup.Entity (lookupEntity)
++import Text.Pandoc.Compat.TagSoupEntity (lookupEntity)
+
+ -- | Remove everything between <...>
+ stripTags :: String -> String
diff --git a/app-text/pandoc/pandoc-1.11.1-r1.ebuild b/app-text/pandoc/pandoc-1.11.1-r1.ebuild
new file mode 100644
index 000000000000..78bbb0ca78b7
--- /dev/null
+++ b/app-text/pandoc/pandoc-1.11.1-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/pandoc/pandoc-1.11.1-r1.ebuild,v 1.1 2013/09/14 01:12:04 gienah Exp $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.2.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit eutils haskell-cabal
+
+DESCRIPTION="Conversion between markup formats"
+HOMEPAGE="http://johnmacfarlane.net/pandoc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="embed_data_files"
+
+RDEPEND=">=dev-haskell/base64-bytestring-0.1:=[profile?]
+ <dev-haskell/base64-bytestring-1.1:=[profile?]
+ >=dev-haskell/blaze-html-0.5:=[profile?]
+ <dev-haskell/blaze-html-0.7:=[profile?]
+ >=dev-haskell/blaze-markup-0.5.1:=[profile?]
+ <dev-haskell/blaze-markup-0.6:=[profile?]
+ >=dev-haskell/citeproc-hs-0.3.7:=[profile?]
+ <dev-haskell/citeproc-hs-0.4:=[profile?]
+ >=dev-haskell/data-default-0.4:=[profile?]
+ <dev-haskell/data-default-0.6:=[profile?]
+ =dev-haskell/extensible-exceptions-0.1*:=[profile?]
+ >=dev-haskell/highlighting-kate-0.5.3.9:=[profile?]
+ <dev-haskell/highlighting-kate-0.6:=[profile?]
+ >=dev-haskell/http-4000.0.5:=[profile?]
+ <dev-haskell/http-4000.3:=[profile?]
+ >=dev-haskell/json-0.4:=[profile?]
+ <dev-haskell/json-0.8:=[profile?]
+ >=dev-haskell/mtl-1.1:=[profile?]
+ <dev-haskell/mtl-2.2:=[profile?]
+ >=dev-haskell/network-2:=[profile?]
+ <dev-haskell/network-2.5:=[profile?]
+ =dev-haskell/pandoc-types-1.10*:=[profile?]
+ =dev-haskell/parsec-3.1*:=[profile?]
+ >=dev-haskell/random-1:=[profile?]
+ <dev-haskell/random-1.1:=[profile?]
+ >=dev-haskell/syb-0.1:=[profile?]
+ <dev-haskell/syb-0.5:=[profile?]
+ >=dev-haskell/tagsoup-0.12.5:=[profile?]
+ <dev-haskell/tagsoup-0.14:=[profile?]
+ =dev-haskell/temporary-1.1*:=[profile?]
+ >=dev-haskell/texmath-0.6.1.5:=[profile?]
+ <dev-haskell/texmath-0.7:=[profile?]
+ =dev-haskell/text-0.11*:=[profile?]
+ >=dev-haskell/xml-1.3.12:=[profile?]
+ <dev-haskell/xml-1.4:=[profile?]
+ >=dev-haskell/zip-archive-0.1.3.3:=[profile?]
+ <dev-haskell/zip-archive-0.2:=[profile?]
+ =dev-haskell/zlib-0.5*:=[profile?]
+ >=dev-lang/ghc-7.0.1:=
+ "
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10
+ test? ( >=dev-haskell/ansi-terminal-0.5
+ <dev-haskell/ansi-terminal-0.7
+ >=dev-haskell/diff-0.2
+ <dev-haskell/diff-0.4
+ =dev-haskell/hunit-1.2*
+ >=dev-haskell/quickcheck-2.4
+ <dev-haskell/quickcheck-2.7
+ >=dev-haskell/test-framework-0.3
+ <dev-haskell/test-framework-0.9
+ >=dev-haskell/test-framework-hunit-0.2
+ <dev-haskell/test-framework-hunit-0.4
+ >=dev-haskell/test-framework-quickcheck2-0.2.9
+ <dev-haskell/test-framework-quickcheck2-0.4
+ )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-man-tests.patch
+ epatch "${FILESDIR}"/${P}-test.patch
+ epatch "${FILESDIR}"/${P}-tagsoup-0.13.patch
+ if has_version ">=dev-haskell/highlighting-kate-0.5.5"; then
+ epatch "${FILESDIR}"/${P}-highlighting-kate-0.5.5-tests.patch
+ fi
+ ghc-supports-threaded-runtime ||
+ cabal_chdeps \
+ '-threaded' ' '
+}
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag embed_data_files embed_data_files) \
+ --flag=blaze_html_0_5
+}
+
+src_install() {
+ cabal_src_install
+
+ doman "${S}/man/man1/${PN}.1"
+
+ # COPYING is installed by the Cabal eclass
+ dodoc README COPYRIGHT changelog
+}