You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.2 KiB

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