diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-04 08:45:26 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-04 08:46:37 +0100 |
commit | ed0af4f683460b55de5b74c832312adaeff680e6 (patch) | |
tree | bd73cbb55fa9159dafb22fe57eb6e479d0c7cdee /dev-haskell/text-short | |
parent | dev-haskell/only: new package, a depend of cassava-0.5 (diff) | |
download | gentoo-ed0af4f683460b55de5b74c832312adaeff680e6.tar.gz gentoo-ed0af4f683460b55de5b74c832312adaeff680e6.tar.bz2 gentoo-ed0af4f683460b55de5b74c832312adaeff680e6.zip |
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 <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/text-short')
-rw-r--r-- | dev-haskell/text-short/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/text-short/metadata.xml | 16 | ||||
-rw-r--r-- | dev-haskell/text-short/text-short-0.1.3.ebuild | 44 |
3 files changed, 61 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <use> + <flag name="asserts">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> +</pkgmetadata> 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/hashable-1.4:=[profile?] + >=dev-haskell/semigroups-0.18.2:=[profile?] <dev-haskell/semigroups-0.20:=[profile?] + >=dev-haskell/text-1.0:=[profile?] <dev-haskell/text-1.3:=[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/quickcheck-instances-0.4 + >=dev-haskell/tasty-1.0.0 <dev-haskell/tasty-1.3 + >=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 ) +" + +src_prepare() { + default + + cabal_chdeps \ + 'base >= 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) +} |