1 |
commit: ecf9b506e5ca019e1bd2d716a55e34833991f4e9 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 15 11:41:34 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 15 11:42:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecf9b506 |
7 |
|
8 |
dev-haskell/zlib: bump up to 0.6.2.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.2, Repoman-2.3.23 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-haskell/zlib/Manifest | 1 + |
14 |
dev-haskell/zlib/metadata.xml | 10 ++++++---- |
15 |
dev-haskell/zlib/zlib-0.6.2.2.ebuild | 38 ++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 45 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/dev-haskell/zlib/Manifest b/dev-haskell/zlib/Manifest |
19 |
index 20505946d82..89598378967 100644 |
20 |
--- a/dev-haskell/zlib/Manifest |
21 |
+++ b/dev-haskell/zlib/Manifest |
22 |
@@ -3,3 +3,4 @@ DIST zlib-0.5.4.2.tar.gz 127818 BLAKE2B 899a0edf39b9830d5223c05dce0d6e4a7884ac12 |
23 |
DIST zlib-0.6.1.1.tar.gz 142902 BLAKE2B 30cc774ca73fd657a9fbb00bda520855cf33932dbeae91c60f900b7c34a57014f14853535d6bd2bf0affbcda3545b896a2bbc1ebe5e289f78140244dd9ea8fb1 SHA512 b9f665308fe7887db376625d6001b5d4c511b6b0f392e366903e84f262cc7c81ed9746d9a5f0b84e9a0ec9dfdc91ed41809528dd50e067008a91ef5168cad12e |
24 |
DIST zlib-0.6.1.2.tar.gz 142413 BLAKE2B 3dac7acfc11b9e8dd00e7e9b35daa420a34f9cf58d06e7d82fb00f33025b9eb2769b966fdb9772937e8be182b16d502c14e4c6018fbdd72d942b6fca95f7d974 SHA512 0034eb1297eaf20ab64e5cbfc835cee1985d34bc248325bf57f7bf5cdf2918ab72f339fe5b8b3f5f16dee862f190e0c71612960b9021cf2ca70c951788b73fc1 |
25 |
DIST zlib-0.6.2.1.tar.gz 143424 BLAKE2B 2395cb4a87943025088e343036772deae6d2d7a695cf7f6c958a37681e99da9d0a1acbe1f3191cb587d077128b9fe0f6986b3883fbdf91483f83b879b79b3e9d SHA512 cee7942a86afbd08f03c19abd88154cc866a3ccc52342264d4d5b28a71643adf30bf03ba939d6a98b7c065752f9ec326729fc38cfe72b66998551c89186048c5 |
26 |
+DIST zlib-0.6.2.2.tar.gz 148178 BLAKE2B 8de5626a20f4ee2ea0dada54bdddc2340e3c3eba225ac5421a99bee9056aa6aecfd74f609745c4bc238e5cee056e6e463f0851ef7a6d5b0ec3312026f677d912 SHA512 3619b5c32e16a4fb9a68a9e6ea0beb9b14d06a4b5825811f429ee232a0ea13035335cd86c0301f8afcff126a473b86698fd310f9608e0e0ecb849714842be1ea |
27 |
|
28 |
diff --git a/dev-haskell/zlib/metadata.xml b/dev-haskell/zlib/metadata.xml |
29 |
index d3253b28407..45b44ae5f1e 100644 |
30 |
--- a/dev-haskell/zlib/metadata.xml |
31 |
+++ b/dev-haskell/zlib/metadata.xml |
32 |
@@ -6,14 +6,16 @@ |
33 |
<name>Gentoo Haskell</name> |
34 |
</maintainer> |
35 |
<use> |
36 |
- <flag name='non-blocking-ffi'>Execute FFI calls in the context of haskell thread.</flag> |
37 |
+ <flag name="bundled-c-zlib">Use the bundled zlib C sources. Requires pkg-config to be False. For windows, this is the default.</flag> |
38 |
+ <flag name="non-blocking-ffi">The (de)compression calls can sometimes take a long time, which prevents other Haskell threads running. Enabling this flag avoids this unfairness, but with greater overall cost.</flag> |
39 |
</use> |
40 |
<longdescription> |
41 |
This package provides a pure interface for compressing and |
42 |
decompressing streams of data represented as lazy |
43 |
- 'ByteString's. It uses the zlib C library so it has high |
44 |
- performance. It supports the \"zlib\", \"gzip\" and \"raw\" |
45 |
- compression formats. |
46 |
+ 'ByteString's. It uses the |
47 |
+ <https://en.wikipedia.org/wiki/Zlib zlib C library> |
48 |
+ so it has high performance. It supports the \"zlib\", |
49 |
+ \"gzip\" and \"raw\" compression formats. |
50 |
|
51 |
It provides a convenient high level API suitable for most |
52 |
tasks and for the few cases where more control is needed it |
53 |
|
54 |
diff --git a/dev-haskell/zlib/zlib-0.6.2.2.ebuild b/dev-haskell/zlib/zlib-0.6.2.2.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000000..89e0ae099e2 |
57 |
--- /dev/null |
58 |
+++ b/dev-haskell/zlib/zlib-0.6.2.2.ebuild |
59 |
@@ -0,0 +1,38 @@ |
60 |
+# Copyright 1999-2020 Gentoo Authors |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=7 |
64 |
+ |
65 |
+# ebuild generated by hackport 0.6.6.9999 |
66 |
+#hackport: flags: +pkg-config |
67 |
+ |
68 |
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" |
69 |
+inherit haskell-cabal |
70 |
+ |
71 |
+DESCRIPTION="Compression and decompression in the gzip and zlib formats" |
72 |
+HOMEPAGE="http://hackage.haskell.org/package/zlib" |
73 |
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" |
74 |
+ |
75 |
+LICENSE="BSD" |
76 |
+SLOT="0/${PV}" |
77 |
+KEYWORDS="~amd64 ~x86 ~ppc-macos ~x86-macos" |
78 |
+IUSE="bundled-c-zlib non-blocking-ffi" |
79 |
+ |
80 |
+RDEPEND=">=dev-lang/ghc-7.4.1:= |
81 |
+ sys-libs/zlib |
82 |
+" |
83 |
+DEPEND="${RDEPEND} |
84 |
+ >=dev-haskell/cabal-1.10 |
85 |
+ virtual/pkgconfig |
86 |
+ test? ( >=dev-haskell/quickcheck-2 <dev-haskell/quickcheck-3 |
87 |
+ >=dev-haskell/tasty-0.8 <dev-haskell/tasty-1.3 |
88 |
+ >=dev-haskell/tasty-hunit-0.8 <dev-haskell/tasty-hunit-0.11 |
89 |
+ >=dev-haskell/tasty-quickcheck-0.8 <dev-haskell/tasty-quickcheck-0.11 ) |
90 |
+" |
91 |
+ |
92 |
+src_configure() { |
93 |
+ haskell-cabal_src_configure \ |
94 |
+ $(cabal_flag bundled-c-zlib bundled-c-zlib) \ |
95 |
+ $(cabal_flag non-blocking-ffi non-blocking-ffi) \ |
96 |
+ --flag=pkg-config |
97 |
+} |