pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-say devel/hs-say: import hs-say-0.1.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7b44341e54c5
branches:  trunk
changeset: 374642:7b44341e54c5
user:      pho <pho%pkgsrc.org@localhost>
date:      Thu Feb 24 01:16:25 2022 +0000

description:
devel/hs-say: import hs-say-0.1.0.1

Send textual messages to a Handle in a thread-friendly way.

The motivation for this package is described in a blog post on Haskell's
Missing Concurrency Basics
(http://www.snoyman.com/blog/2016/11/haskells-missing-concurrency-basics). The
simple explanation is, when writing a line of textual data to a Handle -
such as sending some messages t o ther terminal - we'd like to have the
following properties:

* Properly handle character encoding settings on the Handle
* For reasonably sized messages, ensure that the entire message is written
  in one chunk to avoid interleaving data with other threads
  * This includes the trailing newline character
* Avoid unnecessary memory allocations and copies
* Minimize locking
* Provide a simple API

diffstat:

 devel/hs-say/DESCR         |  16 ++++++++++++++++
 devel/hs-say/Makefile      |  11 +++++++++++
 devel/hs-say/PLIST         |  22 ++++++++++++++++++++++
 devel/hs-say/buildlink3.mk |  13 +++++++++++++
 devel/hs-say/distinfo      |   5 +++++
 5 files changed, 67 insertions(+), 0 deletions(-)

diffs (87 lines):

diff -r 40235015280b -r 7b44341e54c5 devel/hs-say/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-say/DESCR        Thu Feb 24 01:16:25 2022 +0000
@@ -0,0 +1,16 @@
+Send textual messages to a Handle in a thread-friendly way.
+
+The motivation for this package is described in a blog post on Haskell's
+Missing Concurrency Basics
+(http://www.snoyman.com/blog/2016/11/haskells-missing-concurrency-basics). The
+simple explanation is, when writing a line of textual data to a Handle -
+such as sending some messages t o ther terminal - we'd like to have the
+following properties:
+
+* Properly handle character encoding settings on the Handle
+* For reasonably sized messages, ensure that the entire message is written
+  in one chunk to avoid interleaving data with other threads
+  * This includes the trailing newline character
+* Avoid unnecessary memory allocations and copies
+* Minimize locking
+* Provide a simple API
diff -r 40235015280b -r 7b44341e54c5 devel/hs-say/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-say/Makefile     Thu Feb 24 01:16:25 2022 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2022/02/24 01:16:25 pho Exp $
+
+DISTNAME=      say-0.1.0.1
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Send textual messages to a Handle in a thread-friendly way
+LICENSE=       mit
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 40235015280b -r 7b44341e54c5 devel/hs-say/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-say/PLIST        Thu Feb 24 01:16:25 2022 +0000
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/24 01:16:25 pho Exp $
+lib/say-${PKGVERSION}/${HS_VERSION}/package-description
+lib/say-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/${HS_PLATFORM}/${HS_PKGID}/Paths_say.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Paths_say.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Paths_say.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Say.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Say.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Say.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/Say.html
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/say.haddock
+share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/synopsis.png
diff -r 40235015280b -r 7b44341e54c5 devel/hs-say/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-say/buildlink3.mk        Thu Feb 24 01:16:25 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/24 01:16:25 pho Exp $
+
+BUILDLINK_TREE+=       hs-say
+
+.if !defined(HS_SAY_BUILDLINK3_MK)
+HS_SAY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-say+= hs-say>=0.1.0
+BUILDLINK_ABI_DEPENDS.hs-say+= hs-say>=0.1.0.1
+BUILDLINK_PKGSRCDIR.hs-say?=   ../../devel/hs-say
+.endif # HS_SAY_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-say
diff -r 40235015280b -r 7b44341e54c5 devel/hs-say/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-say/distinfo     Thu Feb 24 01:16:25 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/24 01:16:25 pho Exp $
+
+BLAKE2s (say-0.1.0.1.tar.gz) = 19204063c2eba9cfcce6f8949e0e7baa4e10932617f4f8673736066a2bf4dc4c
+SHA512 (say-0.1.0.1.tar.gz) = 3de9f6b473a3b4403624c3f6aeac3703a5e8b6cfae82578f7a49a81defa9fa64295cd315664d02fbab70646694d34415d638b5b52424d167d44e93b34a917604
+Size (say-0.1.0.1.tar.gz) = 5931 bytes



Home | Main Index | Thread Index | Old Index