summaryrefslogtreecommitdiff
path: root/dev-haskell/splitmix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-23 08:35:49 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-23 08:35:49 +0100
commit386855c4d1ef509c1fd32abd721589c81669613b (patch)
tree35dc984118f0a7dc2df88313d83bb5779fd12514 /dev-haskell/splitmix
parent0118ac4510d7b85ca62da20e4abd1286dd8bd752 (diff)
gentoo auto-resync : 23:10:2023 - 08:35:49
Diffstat (limited to 'dev-haskell/splitmix')
-rw-r--r--dev-haskell/splitmix/Manifest7
-rw-r--r--dev-haskell/splitmix/metadata.xml28
-rw-r--r--dev-haskell/splitmix/splitmix-0.1.0.3.ebuild2
-rw-r--r--dev-haskell/splitmix/splitmix-0.1.0.4.ebuild52
4 files changed, 62 insertions, 27 deletions
diff --git a/dev-haskell/splitmix/Manifest b/dev-haskell/splitmix/Manifest
index 4e24b70ebae0..4400905cf24e 100644
--- a/dev-haskell/splitmix/Manifest
+++ b/dev-haskell/splitmix/Manifest
@@ -1,3 +1,6 @@
DIST splitmix-0.1.0.3.tar.gz 20754 BLAKE2B b9eecbdc2f05361aaa852afd8f6b0c6ca220b2d09e0a0d598796636ace0f995c39defb6d84c6c3ed1bba2e3822ef1bf48f2f34d5ac4406031c4ae5b6cf6d0824 SHA512 22a3f0759e1c1150aabde01a77b48087509dfc7ff9614e97e5e06af73f533170993ff2e18101d940e7ddba81b8d6e496795be3851fccfa07b75e9d922f325064
-EBUILD splitmix-0.1.0.3.ebuild 1558 BLAKE2B 78941e81b260fd8199d914b03b6fba8374fa47bb9d9340f72944661ffd07a7782bedfc5a00abb4400d5894442c39c0a6cc7e1ac1770d20b0c366df7dafaf0131 SHA512 7d9cf0d4390e7973d5b288424f52ef5b1b8f5461717fe868226c376a0353f5eb7fec9e806523ae275485e5be794ec79d3709574d0b81034ac4925800732327c8
-MISC metadata.xml 1528 BLAKE2B 08a690b31d8d4195c1724c3c0e46bb2c7710ed2d0f2d4a6fe05760e91b752c1d807520cd4583a384e8878c6002d8afb8936b336f7afd24cb63ec4c99ea35ba81 SHA512 252e87230502f687093b7637d15964f10fa34261ca53a2b17f05a1668aa27ef42f5bacb896a5b0426165f2c0ab692a89b4dca9df448b85af98e94c2872cb8d5c
+DIST splitmix-0.1.0.4-rev2.cabal 6537 BLAKE2B ca7d01b9fd1f16d89699e6cd024096bccd39b0ef370726c37b016ce3c3da7db9231e6cea2313d9fc2e91b046e9dd65d24c85139ce598495d055a2e90d98c6dff SHA512 7c23b28ed7af57c7c08c286da9a8de7cb2d4e24f9bea0b36a5c0235e2f8e2e9a25fd23af1792b726780822ae27cc89c0143158693acc5f916106a6ceb40cd2ed
+DIST splitmix-0.1.0.4.tar.gz 22382 BLAKE2B 1a6636790bae725410cb3b7c75cf0b24f1e0669b399248d9236d7f7d22547229f3cb05d61d1b6f66bb4cb9ca15a1c11f1143797b5de5c88e81315aff9309dc55 SHA512 9a5cbe8100d44fadeb8bf009b03b1770d6b86ef0f71d625e3fb909881d599f4122833647c13a78152369e2744327d5c3f8b552fdc6a47d2705891ca6331c268e
+EBUILD splitmix-0.1.0.3.ebuild 1558 BLAKE2B 289715250ea6837848ba29419cd8602dffdae7020953f0ca5f9ca123c106bdb9bc170c9872138a228943530403b4cd975e0d03e605cdc6f7f91771a4073767c2 SHA512 5bfd53c4cbe68a2ef1cc39f769e22f8653c066ec6c6a2ce2de9813e56b1b2413886fe18108d66acdbec265d4dfbaa7163deec64f419e3847ed68724ffe1bce90
+EBUILD splitmix-0.1.0.4.ebuild 1644 BLAKE2B 5723948eebbe07ac40de6c30d9839aa65e72436b6f8800f153c62a7a4707efd704dd7072996176decd627d6d7df91e107c1f249a92baf6e154e3d86908f5ee40 SHA512 11fc29accd8e7acfe190fffe0d753b800f2170a0e90fcc480e6eebc757d682fd801907dd1ac9de81145685413e806cddba6b89628e58b29ec4f717fd04dc6139
+MISC metadata.xml 461 BLAKE2B f51779ac6b2716ab896b73c1535aed5ee61bc972a23ce38c737950e0b3a77c20ce0b296d60694e769b95e778a58e98a0aea20075bed58ad9ee9a085cb93ff9ec SHA512 87f1046b9630f2476b0809cd42ad6fb432c7a5f507f90bf6cc8f2d2b5f99311d73b63cec73bd2df48ae14df50ce08f65018b607b74188bfbd8b9d71a15849b18
diff --git a/dev-haskell/splitmix/metadata.xml b/dev-haskell/splitmix/metadata.xml
index 80f38d62e4f5..5dfa6c440d86 100644
--- a/dev-haskell/splitmix/metadata.xml
+++ b/dev-haskell/splitmix/metadata.xml
@@ -8,28 +8,8 @@
<use>
<flag name="optimised-mixer">Use JavaScript for mix32</flag>
</use>
- <longdescription>
- Pure Haskell implementation of SplitMix described in
-
- Guy L. Steele, Jr., Doug Lea, and Christine H. Flood. 2014.
- Fast splittable pseudorandom number generators. In Proceedings
- of the 2014 ACM International Conference on Object Oriented
- Programming Systems Languages &amp; Applications (OOPSLA &#39;14). ACM,
- New York, NY, USA, 453-472. DOI:
- &lt;https://doi.org/10.1145/2660193.2660195&gt;
-
- The paper describes a new algorithm /SplitMix/ for /splittable/
- pseudorandom number generator that is quite fast: 9 64 bit arithmetic/logical
- operations per 64 bits generated.
-
- /SplitMix/ is tested with two standard statistical test suites (DieHarder and
- TestU01, this implementation only using the former) and it appears to be
- adequate for &quot;everyday&quot; use, such as Monte Carlo algorithms and randomized
- data structures where speed is important.
-
- In particular, it __should not be used for cryptographic or security applications__,
- because generated sequences of pseudorandom values are too predictable
- (the mixing functions are easily inverted, and two successive outputs
- suffice to reconstruct the internal state).
- </longdescription>
+ <upstream>
+ <remote-id type="hackage">splitmix</remote-id>
+ <remote-id type="github">haskellari/splitmix</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-haskell/splitmix/splitmix-0.1.0.3.ebuild b/dev-haskell/splitmix/splitmix-0.1.0.3.ebuild
index 8ed8dbdc5d1a..f1ab5b1ff80f 100644
--- a/dev-haskell/splitmix/splitmix-0.1.0.3.ebuild
+++ b/dev-haskell/splitmix/splitmix-0.1.0.3.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
# ebuild generated by hackport 0.6.6.9999
diff --git a/dev-haskell/splitmix/splitmix-0.1.0.4.ebuild b/dev-haskell/splitmix/splitmix-0.1.0.4.ebuild
new file mode 100644
index 000000000000..48d360d55c5c
--- /dev/null
+++ b/dev-haskell/splitmix/splitmix-0.1.0.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ebuild generated by hackport 0.8.0.0.9999
+
+CABAL_HACKAGE_REVISION=2
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Fast Splittable PRNG"
+HOMEPAGE="https://hackage.haskell.org/package/splitmix"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="optimised-mixer"
+
+RDEPEND="
+ >=dev-lang/ghc-8.4.3:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-2.2.0.1
+ test? (
+ >=dev-haskell/async-2.2.1 <dev-haskell/async-2.3
+ >=dev-haskell/base-compat-0.11.1 <dev-haskell/base-compat-0.13
+ >=dev-haskell/base-compat-batteries-0.10.5 <dev-haskell/base-compat-batteries-0.13
+ >=dev-haskell/hunit-1.6.0.0 <dev-haskell/hunit-1.7
+ >=dev-haskell/math-functions-0.3.3.0 <dev-haskell/math-functions-0.4
+ || ( dev-lang/ghc ( >=dev-haskell/process-1.0.1.5 <dev-haskell/process-1.7 ) )
+ dev-haskell/random
+ >=dev-haskell/test-framework-0.8.2.0 <dev-haskell/test-framework-0.9
+ >=dev-haskell/test-framework-hunit-0.3.0.2 <dev-haskell/test-framework-hunit-0.4
+ >=dev-haskell/tf-random-0.5 <dev-haskell/tf-random-0.6
+ >=dev-haskell/vector-0.11.0.0 <dev-haskell/vector-0.13
+ )
+"
+
+pkg_pretend() {
+ if use test; then
+ ewarn "The \"test\" USE flag for this package creates cycles within the"
+ ewarn "dependency graph. This may give you problems during 'haskell-updater' runs."
+ ewarn "It is recommended to leave it disabled unless explicitly testing the package."
+ fi
+}
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag optimised-mixer optimised-mixer)
+}