pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-splitmix Update to splitmix-0.1.0.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0bcfd2f34562
branches:  trunk
changeset: 450876:0bcfd2f34562
user:      pho <pho%pkgsrc.org@localhost>
date:      Fri Apr 23 06:50:03 2021 +0000

description:
Update to splitmix-0.1.0.3

0.1.0.3
* Fix oops bugs in 0.1.0.2
  - It's lowercase windows.h. I blame Microsoft docs for using capital
    case Windows.h in the
    docs. https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocessid
  - accidental shiftL vs shiftR mixup for 32-bit generator
    initialization. Doesn't affect Linux.

0.1.0.2
* Drop time dependency in favour of handcoded initialization
  - On Unix platforms we use /dev/urandom if it exists, otherwise use
    gettimeofday, clock and getpid.
  - On Windows we use GetCurrentProcessID, GetCurrentThreadId(),
    GetTickCount, GetSystemTime and QueryPerformanceCounter.
  - On GHCJS use Math.random()
  - Using time is a fallback option (e.g. for Hugs).

0.1.0.1
* Add INLINEABLE pragmas to bitmaskWithRejection* functions
* Support GHC-9.0

0.1
* Drop random dependency
  unconditionally. https://github.com/phadej/splitmix/issues/34

0.0.5
* Add nextInteger
* Use smaller range in bitmaskWithRejection32 and 64, when upper bound
  is 2^n - 1. This changes generated values when they were on the
  boundary.

0.0.4
* Add bitmaskWithRejection32' and bitmaskWithRejection64' which
  generate numbers in closed range [0, n]. Unticked variants generate
  in closed-open range [0, n).

diffstat:

 devel/hs-splitmix/Makefile      |   6 +---
 devel/hs-splitmix/PLIST         |  53 +++++++++++++++++++++-------------------
 devel/hs-splitmix/buildlink3.mk |   8 ++---
 devel/hs-splitmix/distinfo      |  10 +++---
 4 files changed, 38 insertions(+), 39 deletions(-)

diffs (114 lines):

diff -r 8716971dc01e -r 0bcfd2f34562 devel/hs-splitmix/Makefile
--- a/devel/hs-splitmix/Makefile        Fri Apr 23 06:34:48 2021 +0000
+++ b/devel/hs-splitmix/Makefile        Fri Apr 23 06:50:03 2021 +0000
@@ -1,13 +1,11 @@
-# $NetBSD: Makefile,v 1.3 2021/02/18 15:07:28 mef Exp $
+# $NetBSD: Makefile,v 1.4 2021/04/23 06:50:03 pho Exp $
 
-DISTNAME=      splitmix-0.0.3
+DISTNAME=      splitmix-0.1.0.3
 CATEGORIES=    devel
 
 MAINTAINER=    pho%cielonegro.org@localhost
 COMMENT=       Fast Splittable PRNG
 LICENSE=       modified-bsd
 
-BUILDLINK_API_DEPENDS.ghc+=    ghc<8.10
 .include "../../mk/haskell.mk"
-.include "../../devel/hs-random/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8716971dc01e -r 0bcfd2f34562 devel/hs-splitmix/PLIST
--- a/devel/hs-splitmix/PLIST   Fri Apr 23 06:34:48 2021 +0000
+++ b/devel/hs-splitmix/PLIST   Fri Apr 23 06:50:03 2021 +0000
@@ -1,26 +1,29 @@
-@comment $NetBSD: PLIST,v 1.1 2020/05/11 17:52:06 rillig Exp $
-${HS_INTF}/package-description
-${HS_INTF}/package-id
+@comment $NetBSD: PLIST,v 1.2 2021/04/23 06:50:03 pho Exp $
+lib/splitmix-${PKGVERSION}/${HS_VERSION}/package-description
+lib/splitmix-${PKGVERSION}/${HS_VERSION}/package-id
 lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
-${HS_IMPL}/Data/Bits/Compat.dyn_hi
-${HS_IMPL}/Data/Bits/Compat.hi
-${HS_IMPL}/Data/Bits/Compat.p_hi
-${HS_IMPL}/System/Random/SplitMix.dyn_hi
-${HS_IMPL}/System/Random/SplitMix.hi
-${HS_IMPL}/System/Random/SplitMix.p_hi
-${HS_IMPL}/System/Random/SplitMix32.dyn_hi
-${HS_IMPL}/System/Random/SplitMix32.hi
-${HS_IMPL}/System/Random/SplitMix32.p_hi
-${HS_IMPL}/libHS${HS_PKGID}.a
-${HS_IMPL}/libHS${HS_PKGID}_p.a
-${HS_DOCS}/LICENSE
-${HS_DOCS}/html/System-Random-SplitMix.html
-${HS_DOCS}/html/System-Random-SplitMix32.html
-${HS_DOCS}/html/doc-index.html
-${HS_DOCS}/html/haddock-bundle.min.js
-${HS_DOCS}/html/index.html
-${HS_DOCS}/html/linuwial.css
-${HS_DOCS}/html/meta.json
-${HS_DOCS}/html/quick-jump.css
-${HS_DOCS}/html/splitmix.haddock
-${HS_DOCS}/html/synopsis.png
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Bits/Compat.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Bits/Compat.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Bits/Compat.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix/Init.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix/Init.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix/Init.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix32.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix32.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/Random/SplitMix32.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}/splitmix-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/System-Random-SplitMix.html
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/System-Random-SplitMix32.html
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/splitmix.haddock
+share/doc/${HS_PLATFORM}/splitmix-${PKGVERSION}/html/synopsis.png
diff -r 8716971dc01e -r 0bcfd2f34562 devel/hs-splitmix/buildlink3.mk
--- a/devel/hs-splitmix/buildlink3.mk   Fri Apr 23 06:34:48 2021 +0000
+++ b/devel/hs-splitmix/buildlink3.mk   Fri Apr 23 06:50:03 2021 +0000
@@ -1,15 +1,13 @@
-# $NetBSD: buildlink3.mk,v 1.1 2020/01/01 03:41:02 pho Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2021/04/23 06:50:03 pho Exp $
 
 BUILDLINK_TREE+=       hs-splitmix
 
 .if !defined(HS_SPLITMIX_BUILDLINK3_MK)
 HS_SPLITMIX_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.hs-splitmix+=    hs-splitmix>=0.0.3
-BUILDLINK_ABI_DEPENDS.hs-splitmix+=    hs-splitmix>=0.0.3
+BUILDLINK_API_DEPENDS.hs-splitmix+=    hs-splitmix>=0.1.0
+BUILDLINK_ABI_DEPENDS.hs-splitmix+=    hs-splitmix>=0.1.0.3
 BUILDLINK_PKGSRCDIR.hs-splitmix?=      ../../devel/hs-splitmix
-
-.include "../../devel/hs-random/buildlink3.mk"
 .endif # HS_SPLITMIX_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -hs-splitmix
diff -r 8716971dc01e -r 0bcfd2f34562 devel/hs-splitmix/distinfo
--- a/devel/hs-splitmix/distinfo        Fri Apr 23 06:34:48 2021 +0000
+++ b/devel/hs-splitmix/distinfo        Fri Apr 23 06:50:03 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/01/01 03:41:02 pho Exp $
+$NetBSD: distinfo,v 1.2 2021/04/23 06:50:03 pho Exp $
 
-SHA1 (splitmix-0.0.3.tar.gz) = f6ee5e20c0d7e7c6771e92b7db2422910ecf67c9
-RMD160 (splitmix-0.0.3.tar.gz) = 2f34290b5a72c2a49ac8aed8bfa85bd55111f2e1
-SHA512 (splitmix-0.0.3.tar.gz) = 01d53a606de35c1aef5b4669c19308f63711053a6fee38466e421a7e712bca7cbfa37ffdfcf2a4671fc22354b5e83228255785a808c1b6c3ad941fd550d5560f
-Size (splitmix-0.0.3.tar.gz) = 13616 bytes
+SHA1 (splitmix-0.1.0.3.tar.gz) = 90bad43458c2b9e077491fe44bd9f7f6eda24b78
+RMD160 (splitmix-0.1.0.3.tar.gz) = 94e4253e9cea86cdfbc1fcbb093087a50b203a13
+SHA512 (splitmix-0.1.0.3.tar.gz) = 22a3f0759e1c1150aabde01a77b48087509dfc7ff9614e97e5e06af73f533170993ff2e18101d940e7ddba81b8d6e496795be3851fccfa07b75e9d922f325064
+Size (splitmix-0.1.0.3.tar.gz) = 20754 bytes



Home | Main Index | Thread Index | Old Index