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.
gentoo-overlay/dev-haskell/citeproc-hs/citeproc-hs-0.3.10-r1.ebuild

55 lines
1.6 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.3
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="A Citation Style Language implementation in Haskell"
HOMEPAGE="http://istitutocolli.org/repos/citeproc-hs/"
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 +small-base unicode-collation"
RDEPEND="dev-haskell/json:=[profile?]
dev-haskell/mtl:=[profile?]
>=dev-haskell/pandoc-types-1.8:=[profile?]
dev-haskell/parsec:=[profile?]
dev-haskell/syb:=[profile?]
dev-haskell/utf8-string:=[profile?]
>=dev-lang/ghc-7.4.1:=
bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
embed-data-files? ( dev-haskell/file-embed:=[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.6:=[profile?]
>=dev-haskell/network-uri-2.6:=[profile?] )
unicode-collation? ( dev-haskell/text:=[profile?]
dev-haskell/text-icu:=[profile?] )
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.6
"
src_prepare() {
epatch "${FILESDIR}"/${P}-ghc-7.10.patch
epatch "${FILESDIR}"/${P}-pandoc-1.16.patch
}
src_configure() {
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)
}