# Copyright 1999-2019 Gentoo Authors # 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="https://hackage.haskell.org/package/${P}/${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/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 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) }