1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # ebuild generated by hackport 0.3.4.9999
8 CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
11 DESCRIPTION="Supports using pandoc with citeproc"
12 HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
13 SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="+bibutils embed-data-files +hexpat +network +small-base unicode_collation"
19 RESTRICT=test # missing files: locales-en-US.xml: openBinaryFile
21 RDEPEND=">=app-text/pandoc-1.12.0.2:=[profile?]
22 dev-haskell/aeson:=[profile?]
23 dev-haskell/attoparsec:=[profile?]
24 dev-haskell/json:=[profile?]
25 dev-haskell/mtl:=[profile?]
26 >=dev-haskell/pandoc-types-1.12.3:=[profile?]
27 dev-haskell/parsec:=[profile?]
28 dev-haskell/split:=[profile?]
29 dev-haskell/syb:=[profile?]
30 dev-haskell/tagsoup:=[profile?]
31 >=dev-haskell/texmath-0.6.4:=[profile?]
32 dev-haskell/text:=[profile?]
33 dev-haskell/utf8-string:=[profile?]
34 dev-haskell/vector:=[profile?]
35 >=dev-haskell/yaml-0.8:=[profile?]
36 >=dev-lang/ghc-6.12.1:=
37 bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
38 hexpat? ( >=dev-haskell/hexpat-0.20.2:=[profile?] )
39 !hexpat? ( dev-haskell/xml:=[profile?] )
40 network? ( >=dev-haskell/http-4000.0.9:=[profile?]
41 >=dev-haskell/network-2:=[profile?] )
42 unicode_collation? ( dev-haskell/text-icu:=[profile?] )
43 !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
46 >=dev-haskell/cabal-1.12
47 test? ( dev-haskell/aeson-pretty
48 >=dev-haskell/diff-0.3 )
52 # workaround bug on ghc-7.6.3:
53 # > [13 of 24] Compiling Text.CSL.Input.Bibtex ...
54 # > stack overflow: use +RTS -K<size> to increase it
55 replace-hcflags -O[2-9] -O1
57 haskell-cabal_src_configure \
58 $(cabal_flag bibutils bibutils) \
59 $(cabal_flag embed-data-files embed_data_files) \
60 $(cabal_flag hexpat hexpat) \
61 $(cabal_flag network network) \
62 $(cabal_flag small-base small_base) \
63 $(cabal_flag unicode_collation unicode_collation)