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

EAPI=8

# ebuild generated by hackport 0.9.0.0.9999

CABAL_HACKAGE_REVISION=4

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

DESCRIPTION="Library for representing and manipulating type-safe file paths"
HOMEPAGE="https://hackage.haskell.org/package/paths"

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

CABAL_CHDEPS=(
	'base             >=4.5    && <4.18' 'base >= 4.5'
	'bytestring       >=0.9.2  && <0.12' 'bytestring >= 0.9.2'
	'deepseq          >=1.3    && <1.5' 'deepseq >= 1.3'
	'template-haskell >=2.7    && <2.20' 'template-haskell >= 2.7'
	'text             >=0.11   && <1.3  || >=2.0 && <2.1' 'text >= 0.11'
	)

PATCHES=(
		"${FILESDIR}"/${P}-ghc9.8.patch
		)

RDEPEND=">=dev-lang/ghc-9.0.2:=
	>=dev-haskell/text-0.11:=[profile?] <dev-haskell/text-2.2:=[profile?]
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
"