# 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
#hackport: flags: +avoid-rawmemchr

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

DESCRIPTION="Slicing managed and unmanaged memory"
HOMEPAGE="https://github.com/byteverse/byteslice"

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

RDEPEND=">=dev-haskell/natural-arithmetic-0.1.4:=[profile?]
	>=dev-haskell/primitive-0.7.4:=[profile?] <dev-haskell/primitive-0.10:=[profile?]
	>=dev-haskell/primitive-addr-0.1:=[profile?] <dev-haskell/primitive-addr-0.2:=[profile?]
	>=dev-haskell/primitive-unlifted-0.1.2:=[profile?] <dev-haskell/primitive-unlifted-2.3:=[profile?]
	>=dev-haskell/run-st-0.1.1:=[profile?] <dev-haskell/run-st-0.2:=[profile?]
	>=dev-haskell/text-1.2.5:=[profile?]
	>=dev-haskell/text-short-0.1.3:=[profile?] <dev-haskell/text-short-0.2:=[profile?]
	>=dev-haskell/tuples-0.1:=[profile?] <dev-haskell/tuples-0.2:=[profile?]
	>=dev-haskell/vector-0.12:=[profile?] <dev-haskell/vector-0.14:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/quickcheck-classes-0.6.4
		dev-haskell/tasty
		dev-haskell/tasty-hunit
		dev-haskell/tasty-quickcheck )
"

src_configure() {
	haskell-cabal_src_configure \
		--flag=avoid-rawmemchr
}