# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# ebuild generated by hackport 0.3.1.9999

CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal

MY_PN="NanoProlog"
MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="Very small  interpreter for a Prolog-like language"
HOMEPAGE="https://hackage.haskell.org/package/NanoProlog"
SRC_URI="https://hackage.haskell.org/package/${MY_P}/${MY_P}.tar.gz"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"

RDEPEND=">=dev-haskell/listlike-3.1:=[profile?]
		>=dev-haskell/uu-parsinglib-2.7.1:=[profile?]
		>=dev-lang/ghc-7.0.1:="
DEPEND="${RDEPEND}
		>=dev-haskell/cabal-1.6"

src_prepare() {
	default

	CABAL_FILE=${MY_PN}.cabal cabal_chdeps \
		'containers     == 0.4.*' 'containers     >= 0.4' \
		'uu-parsinglib  >= 2.7.1  && < 2.8' 'uu-parsinglib  >= 2.7.1' \
		'ListLike       == 3.1.*' 'ListLike       >= 3.1'
}