pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hs-blaze-builder Update to blaze-builder-0.4.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da5ef5947c5d
branches:  trunk
changeset: 407057:da5ef5947c5d
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed Jan 01 06:44:06 2020 +0000

description:
Update to blaze-builder-0.4.1.0

* 0.4.1.0
- Gain compatibility with the Semigroup/Monoid proposal
- Add Word8 HTML escaping builders
- Speed up `fromHtmlEscapedText` and `fromHtmlEscapedLazyText`

* 0.4.0.2
- Fixed warnings on GHC 7.10, courtesy of Mikhail Glushenkov.

* 0.4.0.1
- Tightened the version constraints on the bytestring package for GHC
  7.8

* 0.4.0.0
- This is now a compatibility shim for the new bytestring builder.
  Most of the old internal modules are gone.  See this blog post for
  more information:

  <http://blog.melding-monads.com/2015/02/12/announcing-blaze-builder-0-4/>

- The 'Blaze.ByteString.Builder.Html.Utf8.fromHtmlEscaped*' functions
  now strip out any ASCII control characters present in their inputs.
  See <https://github.com/lpsmith/blaze-builder/issues/1> for more
  information.

diffstat:

 devel/hs-blaze-builder/DESCR                             |  21 +++-
 devel/hs-blaze-builder/Makefile                          |   6 +-
 devel/hs-blaze-builder/PLIST                             |  69 ----------------
 devel/hs-blaze-builder/buildlink3.mk                     |   7 +-
 devel/hs-blaze-builder/distinfo                          |  11 +-
 devel/hs-blaze-builder/patches/patch-blaze-builder.cabal |  15 +++
 6 files changed, 41 insertions(+), 88 deletions(-)

diffs (175 lines):

diff -r a1799e718edd -r da5ef5947c5d devel/hs-blaze-builder/DESCR
--- a/devel/hs-blaze-builder/DESCR      Wed Jan 01 06:13:37 2020 +0000
+++ b/devel/hs-blaze-builder/DESCR      Wed Jan 01 06:44:06 2020 +0000
@@ -1,8 +1,13 @@
-This library provides an abstraction of buffered output of byte
-streams and several convenience functions to exploit it. For example,
-it allows to efficiently serialize Haskell values to lazy bytestrings
-with a large average chunk size. The large average chunk size allows
-to make good use of cache prefetching in later processing steps
-(e.g. compression) and reduces the sytem call overhead when writing
-the resulting lazy bytestring to a file or sending it over the
-network.
+This library provides an implementation of the older blaze-builder
+interface in terms of the new builder that shipped with
+bytestring-0.10.4.0
+
+This implementation is mostly intended as a bridge to the new builder,
+so that code that uses the old interface can interoperate with code
+that uses the new implementation. Note that no attempt has been made
+to preserve the old internal modules, so code that has these
+dependencies cannot use this interface.
+
+New code should, for the most part, use the new interface. However,
+this module does implement a chunked HTTP encoding, which is not
+otherwise implemented (yet?) with the new builder.
diff -r a1799e718edd -r da5ef5947c5d devel/hs-blaze-builder/Makefile
--- a/devel/hs-blaze-builder/Makefile   Wed Jan 01 06:13:37 2020 +0000
+++ b/devel/hs-blaze-builder/Makefile   Wed Jan 01 06:44:06 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2016/01/10 11:49:09 szptvlfn Exp $
+# $NetBSD: Makefile,v 1.9 2020/01/01 06:44:06 pho Exp $
 
-DISTNAME=      blaze-builder-0.3.3.3
-PKGREVISION=   5
+DISTNAME=      blaze-builder-0.4.1.0
 CATEGORIES=    devel
 
 MAINTAINER=    pho%cielonegro.org@localhost
@@ -10,4 +9,5 @@
 
 .include "../../mk/haskell.mk"
 .include "../../devel/hs-text/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a1799e718edd -r da5ef5947c5d devel/hs-blaze-builder/PLIST
--- a/devel/hs-blaze-builder/PLIST      Wed Jan 01 06:13:37 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1 2014/05/26 22:01:41 szptvlfn Exp $
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/ByteString.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Char/Utf8.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Char8.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/HTTP.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Html/Utf8.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Int.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Internal.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Internal/Buffer.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Internal/Types.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Internal/UncheckedShifts.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Internal/Write.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/Blaze/ByteString/Builder/Word.hi
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/HSblaze-builder-${PKGVERSION}.o
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/libHSblaze-builder-${PKGVERSION}.a
-lib/blaze-builder-${PKGVERSION}/${HASKELL_VERSION}/package-description
-share/doc/blaze-builder-${PKGVERSION}/LICENSE
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-ByteString.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Char-Utf8.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Char8.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-HTTP.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Html-Utf8.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Int.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Internal-Buffer.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Internal-Types.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Internal-Write.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Internal.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder-Word.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/Blaze-ByteString-Builder.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/blaze-builder.haddock
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-A.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-All.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-B.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-C.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-D.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-E.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-F.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-G.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-I.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-N.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-P.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-R.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-S.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-T.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-U.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index-W.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/doc-index.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/frames.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/haddock-util.js
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/hslogo-16.png
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/index-frames.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/index.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-ByteString.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Char-Utf8.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Char8.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-HTTP.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Html-Utf8.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Int.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Internal-Buffer.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Internal-Types.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Internal-Write.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Internal.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder-Word.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/mini_Blaze-ByteString-Builder.html
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/minus.gif
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/ocean.css
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/plus.gif
-${PLIST.doc}share/doc/blaze-builder-${PKGVERSION}/html/synopsis.png
diff -r a1799e718edd -r da5ef5947c5d devel/hs-blaze-builder/buildlink3.mk
--- a/devel/hs-blaze-builder/buildlink3.mk      Wed Jan 01 06:13:37 2020 +0000
+++ b/devel/hs-blaze-builder/buildlink3.mk      Wed Jan 01 06:44:06 2020 +0000
@@ -1,15 +1,16 @@
-# $NetBSD: buildlink3.mk,v 1.9 2018/01/07 13:04:03 rillig Exp $
+# $NetBSD: buildlink3.mk,v 1.10 2020/01/01 06:44:06 pho Exp $
 
 BUILDLINK_TREE+=       hs-blaze-builder
 
 .if !defined(HS_BLAZE_BUILDER_BUILDLINK3_MK)
 HS_BLAZE_BUILDER_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.hs-blaze-builder+=       hs-blaze-builder>=0.3.3
-BUILDLINK_ABI_DEPENDS.hs-blaze-builder+=       hs-blaze-builder>=0.3.3.3nb5
+BUILDLINK_API_DEPENDS.hs-blaze-builder+=       hs-blaze-builder>=0.4.1
+BUILDLINK_ABI_DEPENDS.hs-blaze-builder+=       hs-blaze-builder>=0.4.1.0
 BUILDLINK_PKGSRCDIR.hs-blaze-builder?=         ../../devel/hs-blaze-builder
 
 .include "../../devel/hs-text/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
 .endif # HS_BLAZE_BUILDER_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -hs-blaze-builder
diff -r a1799e718edd -r da5ef5947c5d devel/hs-blaze-builder/distinfo
--- a/devel/hs-blaze-builder/distinfo   Wed Jan 01 06:13:37 2020 +0000
+++ b/devel/hs-blaze-builder/distinfo   Wed Jan 01 06:44:06 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 03:27:31 agc Exp $
+$NetBSD: distinfo,v 1.4 2020/01/01 06:44:06 pho Exp $
 
-SHA1 (blaze-builder-0.3.3.3.tar.gz) = ebf1db8bdef36376c1552406a595fc799df3ddc6
-RMD160 (blaze-builder-0.3.3.3.tar.gz) = 54bedeee30560c72356396c57b223d4abb5afa69
-SHA512 (blaze-builder-0.3.3.3.tar.gz) = 9a138bcb370a6432b89debc025e5fbbba80a7e6bb608cd5f7368478a7104f97d5066de6e9920498bed8bd0da18aa9bae4bc07782725abe9e1ff5517317705091
-Size (blaze-builder-0.3.3.3.tar.gz) = 67374 bytes
+SHA1 (blaze-builder-0.4.1.0.tar.gz) = c22e27bc3d25b9b03df1a485be2eb410da33b7fd
+RMD160 (blaze-builder-0.4.1.0.tar.gz) = 6c7be4e02aae77bfb3f5a59dd20634c6214a09fb
+SHA512 (blaze-builder-0.4.1.0.tar.gz) = 0962634113a19d39fb19a9df895a4e4e3e0fc5b2c17fd0d5c27e1cd9da128fd3af2f01d7b0ce894d3964b5b3bd874aeae205b126e069a6e5d964ad97c753da39
+Size (blaze-builder-0.4.1.0.tar.gz) = 61365 bytes
+SHA1 (patch-blaze-builder.cabal) = cb658c404044a9a1d8a6545f0c0297f6c27c6d69
diff -r a1799e718edd -r da5ef5947c5d devel/hs-blaze-builder/patches/patch-blaze-builder.cabal
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-blaze-builder/patches/patch-blaze-builder.cabal  Wed Jan 01 06:44:06 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-blaze-builder.cabal,v 1.1 2020/01/01 06:44:06 pho Exp $
+
+Relax the upper bound on semigroups
+
+--- blaze-builder.cabal.orig   2018-03-14 21:11:24.000000000 +0000
++++ blaze-builder.cabal
+@@ -80,7 +80,7 @@ Library
+      build-depends:  bytestring >= 0.10.4 && < 1.0
+ 
+   if impl(ghc < 8.0)
+-     build-depends: semigroups >= 0.16 && < 0.19
++     build-depends: semigroups >= 0.16 && < 0.20
+ 
+ test-suite test
+   type:           exitcode-stdio-1.0



Home | Main Index | Thread Index | Old Index