From ed0af4f683460b55de5b74c832312adaeff680e6 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 4 Aug 2020 08:45:26 +0100 Subject: dev-haskell/text-short: new package, a depend of cassava-0.5 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich --- dev-haskell/text-short/Manifest | 1 + dev-haskell/text-short/metadata.xml | 16 ++++++++++ dev-haskell/text-short/text-short-0.1.3.ebuild | 44 ++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 dev-haskell/text-short/Manifest create mode 100644 dev-haskell/text-short/metadata.xml create mode 100644 dev-haskell/text-short/text-short-0.1.3.ebuild (limited to 'dev-haskell') diff --git a/dev-haskell/text-short/Manifest b/dev-haskell/text-short/Manifest new file mode 100644 index 000000000000..e9a005829d2c --- /dev/null +++ b/dev-haskell/text-short/Manifest @@ -0,0 +1 @@ +DIST text-short-0.1.3.tar.gz 24435 BLAKE2B f0d571f2c84ca47ee2d4f0aef0a98812880f68d9971e73abd40f2b8d27cce50052a67f6f2a5d19d683093fabed490082df72e29bc8e43123b53b388b9962018c SHA512 6d7a5379dbaf28a201dd44229959a293acb5ff57c4659a6a34af37e46b2e6fc5eb61a00ba26d36dd08795456246429ec20236af8e342fd0d03bfcf6d06d69428 diff --git a/dev-haskell/text-short/metadata.xml b/dev-haskell/text-short/metadata.xml new file mode 100644 index 000000000000..02b8c54225a2 --- /dev/null +++ b/dev-haskell/text-short/metadata.xml @@ -0,0 +1,16 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + Enable runtime-checks via 'assert' + + + 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. + + diff --git a/dev-haskell/text-short/text-short-0.1.3.ebuild b/dev-haskell/text-short/text-short-0.1.3.ebuild new file mode 100644 index 000000000000..794540cc2fdf --- /dev/null +++ b/dev-haskell/text-short/text-short-0.1.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Memory-efficient representation of Unicode text strings" +HOMEPAGE="http://hackage.haskell.org/package/text-short" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="asserts" + +RDEPEND=">=dev-haskell/hashable-1.2.6:=[profile?] =dev-haskell/semigroups-0.18.2:=[profile?] =dev-haskell/text-1.0:=[profile?] =dev-lang/ghc-7.8.2:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.18.1.3 + test? ( >=dev-haskell/quickcheck-instances-0.3.14 =dev-haskell/tasty-1.0.0 =dev-haskell/tasty-hunit-0.10.0 =dev-haskell/tasty-quickcheck-0.10 = 4.7 && < 4.13' 'base >= 4.7' \ + 'ghc-prim >= 0.3.1 && < 0.6' 'ghc-prim >= 0.3.1' +} + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag asserts asserts) +} -- cgit v1.2.3-65-gdbad