pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/hs-atomic-counter



Module Name:    pkgsrc
Committed By:   pho
Date:           Wed Jan 29 16:24:51 UTC 2025

Added Files:
        pkgsrc/devel/hs-atomic-counter: DESCR Makefile PLIST buildlink3.mk
            distinfo

Log Message:
devel/hs-atomic-counter: import hs-atomic-counter-0.1.2.3

This package defines Counter type that can be safely modified concurrently from
multiple threads. The type supports only few operations, namely read, write, cas
(compare and swap), add, subtract and a few bitwise ones like or, and xor.

Most common use case is having a shared counter that multiple threads increment.
Another potential use case is lightweight locks.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-atomic-counter/DESCR \
    pkgsrc/devel/hs-atomic-counter/Makefile \
    pkgsrc/devel/hs-atomic-counter/PLIST \
    pkgsrc/devel/hs-atomic-counter/buildlink3.mk \
    pkgsrc/devel/hs-atomic-counter/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/hs-atomic-counter/DESCR
diff -u /dev/null pkgsrc/devel/hs-atomic-counter/DESCR:1.1
--- /dev/null   Wed Jan 29 16:24:51 2025
+++ pkgsrc/devel/hs-atomic-counter/DESCR        Wed Jan 29 16:24:50 2025
@@ -0,0 +1,6 @@
+This package defines Counter type that can be safely modified concurrently from
+multiple threads. The type supports only few operations, namely read, write, cas
+(compare and swap), add, subtract and a few bitwise ones like or, and xor.
+
+Most common use case is having a shared counter that multiple threads increment.
+Another potential use case is lightweight locks.
Index: pkgsrc/devel/hs-atomic-counter/Makefile
diff -u /dev/null pkgsrc/devel/hs-atomic-counter/Makefile:1.1
--- /dev/null   Wed Jan 29 16:24:51 2025
+++ pkgsrc/devel/hs-atomic-counter/Makefile     Wed Jan 29 16:24:50 2025
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2025/01/29 16:24:50 pho Exp $
+
+DISTNAME=      atomic-counter-0.1.2.3
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Mutable counters that can be modified with atomic operatinos
+LICENSE=       apache-2.0
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/hs-atomic-counter/PLIST
diff -u /dev/null pkgsrc/devel/hs-atomic-counter/PLIST:1.1
--- /dev/null   Wed Jan 29 16:24:51 2025
+++ pkgsrc/devel/hs-atomic-counter/PLIST        Wed Jan 29 16:24:50 2025
@@ -0,0 +1,31 @@
+@comment $NetBSD: PLIST,v 1.1 2025/01/29 16:24:50 pho Exp $
+${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter.hi
+${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter.p_hi
+${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Lifted/IO.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Lifted/IO.hi
+${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Lifted/IO.p_hi
+${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Lifted/ST.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Lifted/ST.hi
+${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Lifted/ST.p_hi
+${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Unlifted.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Unlifted.hi
+${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Counter/Unlifted.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+${PLIST.shlibs}lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/atomic-counter-${PKGVERSION}/${HS_VERSION}/package-description
+lib/atomic-counter-${PKGVERSION}/${HS_VERSION}/package-id
+share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/LICENSE
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/Control-Concurrent-Counter-Lifted-IO.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/Control-Concurrent-Counter-Lifted-ST.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/Control-Concurrent-Counter-Unlifted.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/Control-Concurrent-Counter.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/atomic-counter.haddock
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/doc-index.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/haddock-bundle.min.js
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/index.html
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/linuwial.css
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/meta.json
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/quick-jump.css
+${PLIST.doc}share/doc/${HS_PLATFORM}/atomic-counter-${PKGVERSION}/html/synopsis.png
Index: pkgsrc/devel/hs-atomic-counter/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-atomic-counter/buildlink3.mk:1.1
--- /dev/null   Wed Jan 29 16:24:51 2025
+++ pkgsrc/devel/hs-atomic-counter/buildlink3.mk        Wed Jan 29 16:24:50 2025
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2025/01/29 16:24:50 pho Exp $
+
+BUILDLINK_TREE+=       hs-atomic-counter
+
+.if !defined(HS_ATOMIC_COUNTER_BUILDLINK3_MK)
+HS_ATOMIC_COUNTER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-atomic-counter+=      hs-atomic-counter>=0.1.2
+BUILDLINK_ABI_DEPENDS.hs-atomic-counter+=      hs-atomic-counter>=0.1.2.3
+BUILDLINK_PKGSRCDIR.hs-atomic-counter?=                ../../devel/hs-atomic-counter
+
+.endif # HS_ATOMIC_COUNTER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-atomic-counter
Index: pkgsrc/devel/hs-atomic-counter/distinfo
diff -u /dev/null pkgsrc/devel/hs-atomic-counter/distinfo:1.1
--- /dev/null   Wed Jan 29 16:24:51 2025
+++ pkgsrc/devel/hs-atomic-counter/distinfo     Wed Jan 29 16:24:50 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/01/29 16:24:50 pho Exp $
+
+BLAKE2s (atomic-counter-0.1.2.3.tar.gz) = 658cecb3845ec007fce88e8c20c70e0416cc5e601941f19422e891035fb1c3a4
+SHA512 (atomic-counter-0.1.2.3.tar.gz) = e9da01af52940c2a74a261c730cace315bf482bfd4951d7533e240de7fbfe89ae5cbb9c6f950dbd311e693bf58611f7702ecfd8d269d4f2ea17bdc9404569645
+Size (atomic-counter-0.1.2.3.tar.gz) = 17379 bytes



Home | Main Index | Thread Index | Old Index