Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/text-short/
Date: Tue, 04 Aug 2020 07:46:47
Message-Id: 1596527197.ed0af4f683460b55de5b74c832312adaeff680e6.slyfox@gentoo
1 commit: ed0af4f683460b55de5b74c832312adaeff680e6
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 4 07:45:26 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 4 07:46:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed0af4f6
7
8 dev-haskell/text-short: new package, a depend of cassava-0.5
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-haskell/text-short/Manifest | 1 +
14 dev-haskell/text-short/metadata.xml | 16 ++++++++++
15 dev-haskell/text-short/text-short-0.1.3.ebuild | 44 ++++++++++++++++++++++++++
16 3 files changed, 61 insertions(+)
17
18 diff --git a/dev-haskell/text-short/Manifest b/dev-haskell/text-short/Manifest
19 new file mode 100644
20 index 00000000000..e9a005829d2
21 --- /dev/null
22 +++ b/dev-haskell/text-short/Manifest
23 @@ -0,0 +1 @@
24 +DIST text-short-0.1.3.tar.gz 24435 BLAKE2B f0d571f2c84ca47ee2d4f0aef0a98812880f68d9971e73abd40f2b8d27cce50052a67f6f2a5d19d683093fabed490082df72e29bc8e43123b53b388b9962018c SHA512 6d7a5379dbaf28a201dd44229959a293acb5ff57c4659a6a34af37e46b2e6fc5eb61a00ba26d36dd08795456246429ec20236af8e342fd0d03bfcf6d06d69428
25
26 diff --git a/dev-haskell/text-short/metadata.xml b/dev-haskell/text-short/metadata.xml
27 new file mode 100644
28 index 00000000000..02b8c54225a
29 --- /dev/null
30 +++ b/dev-haskell/text-short/metadata.xml
31 @@ -0,0 +1,16 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="project">
36 + <email>haskell@g.o</email>
37 + <name>Gentoo Haskell</name>
38 + </maintainer>
39 + <use>
40 + <flag name="asserts">Enable runtime-checks via 'assert'</flag>
41 + </use>
42 + <longdescription>
43 + This package provides the &#39;ShortText&#39; type which is suitable for keeping many short strings in memory. This is similiar to how &#39;ShortByteString&#39; relates to &#39;ByteString&#39;.
44 +
45 + The main difference between &#39;Text&#39; and &#39;ShortText&#39; is that &#39;ShortText&#39; uses UTF-8 instead of UTF-16 internally and also doesn&#39;t support zero-copy slicing (thereby saving 2 words). Consequently, the memory footprint of a (boxed) &#39;ShortText&#39; value is 4 words (2 words when unboxed) plus the length of the UTF-8 encoded payload.
46 + </longdescription>
47 +</pkgmetadata>
48
49 diff --git a/dev-haskell/text-short/text-short-0.1.3.ebuild b/dev-haskell/text-short/text-short-0.1.3.ebuild
50 new file mode 100644
51 index 00000000000..794540cc2fd
52 --- /dev/null
53 +++ b/dev-haskell/text-short/text-short-0.1.3.ebuild
54 @@ -0,0 +1,44 @@
55 +# Copyright 1999-2020 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=7
59 +
60 +# ebuild generated by hackport 0.6.9999
61 +
62 +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
63 +inherit haskell-cabal
64 +
65 +DESCRIPTION="Memory-efficient representation of Unicode text strings"
66 +HOMEPAGE="http://hackage.haskell.org/package/text-short"
67 +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
68 +
69 +LICENSE="BSD"
70 +SLOT="0/${PV}"
71 +KEYWORDS="~amd64 ~x86"
72 +IUSE="asserts"
73 +
74 +RDEPEND=">=dev-haskell/hashable-1.2.6:=[profile?] <dev-haskell/hashable-1.4:=[profile?]
75 + >=dev-haskell/semigroups-0.18.2:=[profile?] <dev-haskell/semigroups-0.20:=[profile?]
76 + >=dev-haskell/text-1.0:=[profile?] <dev-haskell/text-1.3:=[profile?]
77 + >=dev-lang/ghc-7.8.2:=
78 +"
79 +DEPEND="${RDEPEND}
80 + >=dev-haskell/cabal-1.18.1.3
81 + test? ( >=dev-haskell/quickcheck-instances-0.3.14 <dev-haskell/quickcheck-instances-0.4
82 + >=dev-haskell/tasty-1.0.0 <dev-haskell/tasty-1.3
83 + >=dev-haskell/tasty-hunit-0.10.0 <dev-haskell/tasty-hunit-0.11
84 + >=dev-haskell/tasty-quickcheck-0.10 <dev-haskell/tasty-quickcheck-0.11 )
85 +"
86 +
87 +src_prepare() {
88 + default
89 +
90 + cabal_chdeps \
91 + 'base >= 4.7 && < 4.13' 'base >= 4.7' \
92 + 'ghc-prim >= 0.3.1 && < 0.6' 'ghc-prim >= 0.3.1'
93 +}
94 +
95 +src_configure() {
96 + haskell-cabal_src_configure \
97 + $(cabal_flag asserts asserts)
98 +}