dev-haskell/text-short: Hackage revision bump

Rename USE=asserts to USE=debug

Signed-off-by: hololeap <hololeap@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
hololeap 2023-10-02 23:10:09 -06:00 committed by Sam James
parent 7cb3afdf35
commit a50b8dc3f2
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 25 additions and 15 deletions

View File

@ -1 +1,2 @@
DIST text-short-0.1.5-rev2.cabal 3202 BLAKE2B 92985f445d522e0e26e85d86d4bf4ab1d517ea066f062097cc58b276a5d845fbb53e86ae7c97c33de16b0a9f061f9ba4485a151f41f7351771dff044cd761190 SHA512 337e7e557691aaed379658069a1dc50116a247c86133e219a1f4ec0f468f1f6cdde9461365424dfc1900f6676bc15c75c46a241148414512d7da81e766b11662
DIST text-short-0.1.5.tar.gz 25113 BLAKE2B a3ed468d60d4a351ad86600f5d6e7241ae88b987746fabc8ff79f6e0f0c687a9d5d5e0f4fcabb2fbf7c48ce2e3a37b798e478d6c8239760974e7a55835cab1aa SHA512 32f09a1abc37ddb3f85921d80629355f68b2e68531f14318907e792a8eeb7d4a258bfcf7d45710dcb67f85fadfbad2bb9ffdac27a912aefc4296dc1818585125

View File

@ -6,11 +6,10 @@
<name>Gentoo Haskell</name>
</maintainer>
<use>
<flag name="asserts">Enable runtime-checks via 'assert'</flag>
<flag name="debug">Enable runtime-checks via 'assert'</flag>
</use>
<longdescription>
This package provides the 'ShortText' type which is suitable for keeping many short strings in memory. This is similiar to how 'ShortByteString' relates to 'ByteString'.
The main difference between 'Text' and 'ShortText' is that 'ShortText' uses UTF-8 instead of UTF-16 internally and also doesn't support zero-copy slicing (thereby saving 2 words). Consequently, the memory footprint of a (boxed) 'ShortText' value is 4 words (2 words when unboxed) plus the length of the UTF-8 encoded payload.
</longdescription>
<upstream>
<remote-id type="hackage">text-short</remote-id>
<remote-id type="github">hvr/text-short</remote-id>
</upstream>
</pkgmetadata>

View File

@ -3,31 +3,41 @@
EAPI=8
# ebuild generated by hackport 0.7.9999
# ebuild generated by hackport 0.8.2.1.9999
#hackport: flags: asserts:debug
CABAL_HACKAGE_REVISION=2
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
DESCRIPTION="Memory-efficient representation of Unicode text strings"
HOMEPAGE="https://hackage.haskell.org/package/text-short"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86"
IUSE="asserts"
IUSE="debug"
RDEPEND=">=dev-haskell/hashable-1.2.6:=[profile?] <dev-haskell/hashable-1.5:=[profile?]
>=dev-lang/ghc-8.4.3:=
RDEPEND="
>=dev-haskell/hashable-1.2.6:=[profile?] <dev-haskell/hashable-1.5:=[profile?]
>=dev-lang/ghc-8.8.1:=
|| (
( >=dev-haskell/text-1.0 <dev-haskell/text-1.3 )
( >=dev-haskell/text-2.0 <dev-haskell/text-2.1 )
)
dev-haskell/text:=[profile?]
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-2.2.0.1
test? ( >=dev-haskell/tasty-1.4 <dev-haskell/tasty-1.5
>=dev-haskell/cabal-3.0.0.0
test? (
>=dev-haskell/tasty-1.4 <dev-haskell/tasty-1.5
>=dev-haskell/tasty-hunit-0.10.0 <dev-haskell/tasty-hunit-0.11
>=dev-haskell/tasty-quickcheck-0.10 <dev-haskell/tasty-quickcheck-0.11 )
>=dev-haskell/tasty-quickcheck-0.10 <dev-haskell/tasty-quickcheck-0.11
)
"
src_configure() {
haskell-cabal_src_configure \
$(cabal_flag asserts asserts)
$(cabal_flag debug asserts)
}