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/io-streams/
Date: Tue, 08 Sep 2020 21:23:44
Message-Id: 1599600214.f73ae2259dd9ef9c829b8ac400105f47bf4603ca.slyfox@gentoo
1 commit: f73ae2259dd9ef9c829b8ac400105f47bf4603ca
2 Author: Jack Todaro <solpeth <AT> posteo <DOT> org>
3 AuthorDate: Mon Sep 7 20:38:54 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 8 21:23:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f73ae225
7
8 dev-haskell/io-streams: bump up to 1.5.2.0
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Jack Todaro <solpeth <AT> posteo.org>
12 Closes: https://github.com/gentoo/gentoo/pull/17461
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 dev-haskell/io-streams/Manifest | 1 +
16 dev-haskell/io-streams/io-streams-1.5.2.0.ebuild | 48 +++++++++++++
17 dev-haskell/io-streams/metadata.xml | 87 ++++--------------------
18 3 files changed, 64 insertions(+), 72 deletions(-)
19
20 diff --git a/dev-haskell/io-streams/Manifest b/dev-haskell/io-streams/Manifest
21 index 3cb233c7ae2..0b9c495f20d 100644
22 --- a/dev-haskell/io-streams/Manifest
23 +++ b/dev-haskell/io-streams/Manifest
24 @@ -1,2 +1,3 @@
25 DIST io-streams-1.3.6.0.tar.gz 61651 BLAKE2B d71a5ba3d264b98d3284470021fc1d9622700b37ef1a67142d12d4d6321233eb28ad5274925e08f9d0c251ee77e25e2187c811d197a9f7b68e33479d8ea602ab SHA512 9ef5a2daa43600796b48104771c71d698f40e29def536e785421b53a310683e7db202b254310a0a5f2d1fa507dcad27c25f328c64fffe796c06d4c0d98ca982d
26 DIST io-streams-1.5.1.0.tar.gz 64044 BLAKE2B 9a1a4dce626f3a569f4a7866f93d5663e9e4e8b863d1c2332bffbeb2e4481e0a250c84b75ae375144a32473b62538dbd87b53dd0a08034daea855484660aa07a SHA512 01ddf89f09cba429ab600e55994cb6740d4fcdeb23ce85822098d39dbe530a74256d66ea52429798787d9d549db3cd99a5078362b333a7f49c4926e74e0b460c
27 +DIST io-streams-1.5.2.0.tar.gz 63812 BLAKE2B a555bc0bc365e4e2c28570da34e6c2891ff56a7460ec8a857285a22ea3a4a2b8975139c3024fd90ffec51386646d9ed632754971abef04fd2c358cba5e0a19c6 SHA512 2cb6c9cded0077f1501b0fba576b79e5ebf21ccc2711a91552ec46ef6d5e943e0c1255cdfda381aa8e4d7691b1e450956bedd2fbd4414b13ef7926b0cc3dc4c3
28
29 diff --git a/dev-haskell/io-streams/io-streams-1.5.2.0.ebuild b/dev-haskell/io-streams/io-streams-1.5.2.0.ebuild
30 new file mode 100644
31 index 00000000000..0d44d531e46
32 --- /dev/null
33 +++ b/dev-haskell/io-streams/io-streams-1.5.2.0.ebuild
34 @@ -0,0 +1,48 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +# ebuild generated by hackport 0.6.6.9999
41 +#hackport: flags: +nointeractivetests
42 +
43 +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
44 +inherit haskell-cabal
45 +
46 +DESCRIPTION="Simple, composable, and easy-to-use stream I/O"
47 +HOMEPAGE="https://hackage.haskell.org/package/io-streams"
48 +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
49 +
50 +LICENSE="BSD"
51 +SLOT="0/${PV}"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="+network +zlib"
54 +
55 +RESTRICT=test # requires network access
56 +
57 +RDEPEND=">=dev-haskell/attoparsec-0.10:=[profile?] <dev-haskell/attoparsec-0.14:=[profile?]
58 + >=dev-haskell/bytestring-builder-0.10:=[profile?] <dev-haskell/bytestring-builder-0.11:=[profile?]
59 + >=dev-haskell/primitive-0.2:=[profile?] <dev-haskell/primitive-0.8:=[profile?]
60 + >=dev-haskell/text-0.10:=[profile?] <dev-haskell/text-1.3:=[profile?]
61 + >=dev-haskell/vector-0.7:=[profile?] <dev-haskell/vector-0.13:=[profile?]
62 + >=dev-lang/ghc-7.8.2:=
63 + network? ( >=dev-haskell/network-2.3:=[profile?] <dev-haskell/network-3.2:=[profile?] )
64 + zlib? ( >=dev-haskell/zlib-bindings-0.1:=[profile?] <dev-haskell/zlib-bindings-0.2:=[profile?] )
65 +"
66 +DEPEND="${RDEPEND}
67 + >=dev-haskell/cabal-1.18.1.3
68 + test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-2
69 + >=dev-haskell/mtl-2 <dev-haskell/mtl-3
70 + >=dev-haskell/quickcheck-2.3.0.2 <dev-haskell/quickcheck-3
71 + >=dev-haskell/test-framework-0.6 <dev-haskell/test-framework-0.9
72 + >=dev-haskell/test-framework-hunit-0.2.7 <dev-haskell/test-framework-hunit-0.4
73 + >=dev-haskell/test-framework-quickcheck2-0.2.12.1 <dev-haskell/test-framework-quickcheck2-0.4
74 + zlib? ( >=dev-haskell/zlib-0.5 <dev-haskell/zlib-0.7 ) )
75 +"
76 +
77 +src_configure() {
78 + haskell-cabal_src_configure \
79 + $(cabal_flag network network) \
80 + --flag=nointeractivetests \
81 + $(cabal_flag zlib zlib)
82 +}
83
84 diff --git a/dev-haskell/io-streams/metadata.xml b/dev-haskell/io-streams/metadata.xml
85 index 7852149c934..a86f42647c5 100644
86 --- a/dev-haskell/io-streams/metadata.xml
87 +++ b/dev-haskell/io-streams/metadata.xml
88 @@ -5,20 +5,24 @@
89 <email>haskell@g.o</email>
90 <name>Gentoo Haskell</name>
91 </maintainer>
92 + <use>
93 + <flag name="network">Include network support</flag>
94 + <flag name="zlib">Include zlib support</flag>
95 + </use>
96 <longdescription>
97 /Overview/
98
99 The io-streams library contains simple and easy-to-use primitives for I/O
100 using streams. Most users will want to import the top-level convenience
101 - module "System.IO.Streams", which re-exports most of the library:
102 + module &quot;System.IO.Streams&quot;, which re-exports most of the library:
103
104 @
105 - import "System.IO.Streams" (InputStream, OutputStream)
106 - import qualified "System.IO.Streams" as Streams
107 + import System.IO.Streams (InputStream, OutputStream)
108 + import qualified System.IO.Streams as Streams
109 @
110
111 For first-time users, @io-streams@ comes with an included tutorial, which can
112 - be found in the "System.IO.Streams.Tutorial" module.
113 + be found in the &quot;System.IO.Streams.Tutorial&quot; module.
114
115 /Features/
116
117 @@ -27,13 +31,13 @@
118
119 @
120 \-\- read an item from an input stream
121 - Streams.'System.IO.Streams.read' :: 'System.IO.Streams.InputStream' a -&gt; IO (Maybe a)
122 + Streams.read :: InputStream a -&gt; IO (Maybe a)
123
124 \-\- push an item back to an input stream
125 - Streams.'System.IO.Streams.unRead' :: a -&gt; 'System.IO.Streams.InputStream' a -&gt; IO ()
126 + Streams.unRead :: a -&gt; InputStream a -&gt; IO ()
127
128 \-\- write to an output stream
129 - Streams.'System.IO.Streams.write' :: Maybe a -&gt; 'System.IO.Streams.OutputStream' a -&gt; IO ()
130 + Streams.write :: Maybe a -&gt; OutputStream a -&gt; IO ()
131 @
132
133 Streams can be transformed by composition and hooked together with provided combinators:
134 @@ -46,19 +50,19 @@
135 Stream composition leaves the original stream accessible:
136
137 @
138 - ghci&gt; input \&lt;- Streams.fromByteString \"long string\"
139 + ghci&gt; input \&lt;- Streams.fromByteString \&quot;long string\&quot;
140 ghci&gt; wrapped \&lt;- Streams.takeBytes 4 input
141 ghci&gt; Streams.read wrapped
142 - Just \"long\"
143 + Just \&quot;long\&quot;
144 ghci&gt; Streams.read wrapped
145 Nothing
146 ghci&gt; Streams.read input
147 - Just \" string\"
148 + Just \&quot; string\&quot;
149 @
150
151 Simple types and operations in the IO monad mean straightforward and simple
152 exception handling and resource cleanup using Haskell standard library
153 - facilities like 'Control.Exception.bracket'.
154 + facilities like &#39;Control.Exception.bracket&#39;.
155
156 @io-streams@ comes with:
157
158 @@ -73,66 +77,5 @@
159 * support for parsing from streams using @attoparsec@.
160
161 * support for spawning processes and communicating with them using streams.
162 -
163 - /ChangeLog/
164 -
165 - [@1.1.4.2@] Fixed a build error with network versions older than 2.4.
166 -
167 - [@1.1.4.1@] @System.IO.Streams.Network@: scalability improvement: buffers
168 - for socket reads are now allocated by system malloc rather than
169 - by pinned pointers in GHC (currently pinned pointer allocation
170 - takes a global lock).
171 -
172 - [@1.1.4.0@] Widened @attoparsec@ and @text@ library dependencies to allow
173 - the latest versions.
174 -
175 - [@1.1.3.0@] Added @System.IO.Streams.ByteString.takeExactly@. Widened
176 - @network@ dependency to include 2.3. Added a
177 - @NoInteractiveTests@ flag to selectively disable some tests for
178 - environments where spawning interactive processes is
179 - impossible.
180 -
181 - [@1.1.2.2@] Allowed newest versions of the @process@, @test-framework@,
182 - and @text@ libraries.
183 -
184 - [@1.1.2.1@] Fixed build error when compiled against attoparsec-0.10.0.x.
185 -
186 - [@1.1.2.0@] Added @System.IO.Streams.Concurrent.makeChanPipe@, to create a
187 - simple concurrent pipe between an @InputStream@/@OutputStream@
188 - pair.
189 -
190 - [@1.1.1.0@] Added @System.IO.Streams.Network.socketToStreamsWithBufferSize@,
191 - allowing control over the size of the receive buffers used when
192 - reading from sockets.
193 -
194 - [@1.1.0.3@] Fixed an inconsistent version upper bound in the test suite.
195 -
196 - [@1.1.0.2@] Fixed a typo in the tutorial.
197 -
198 - [@1.1.0.1@] A couple of Haddock markup fixes.
199 -
200 - [@1.1.0.0@] Reworked, simplified, and streamlined the internals of the
201 - library. Exports from "System.IO.Streams.Internal" relying on
202 - Sources and Sinks were deleted because they are no longer
203 - necessary: Source(..), Sink(..), defaultPushback,
204 - withDefaultPushback, nullSource, nullSink, singletonSource,
205 - simpleSource, sourceToStream, sinkToStream, generatorToSource,
206 - and consumerToSink.
207 -
208 - [@1.0.2.2@] Fixed a bug in which \"takeBytes 0\" was erroneously requesting
209 - input from the wrapped stream.
210 -
211 - [@1.0.2.1@] Fixed a compile error on GHC 7.0.x.
212 -
213 - [@1.0.2.0@] Added "System.IO.Streams.Process" (support for communicating
214 - with system processes using streams), added new functions to
215 - "System.IO.Streams.Handle" for converting @io-streams@ types to
216 - 'System.IO.Handle's. (Now you can pass streams from this
217 - library to places that expect Handles and everything will
218 - work.)
219 -
220 - [@1.0.1.0@] Added 'System.IO.Streams.Combinators.ignoreEof'.
221 -
222 - [@1.0.0.1@] Fixed some haddock markup.
223 </longdescription>
224 </pkgmetadata>