summaryrefslogtreecommitdiff
path: root/math/hs-primes
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2022-02-16 05:09:18 +0000
committerpho <pho@pkgsrc.org>2022-02-16 05:09:18 +0000
commitf4efea1331a913da11dd38891f6cbd5db264c202 (patch)
tree918d83188c7b65554c39f9d08bc01f04bf5d52f0 /math/hs-primes
parent0d18538cd5fc81c7e546ae5c583c49b369e86b66 (diff)
downloadpkgsrc-f4efea1331a913da11dd38891f6cbd5db264c202.tar.gz
math/hs-primes: import hs-primes-0.2.1.0
This Haskell library provides an efficient lazy wheel sieve for prime generation inspired by "Lazy wheel sieves and spirals of primes" by Colin Runciman and "The Genuine Sieve of Eratosthenes" by Melissa O'Neil.
Diffstat (limited to 'math/hs-primes')
-rw-r--r--math/hs-primes/DESCR3
-rw-r--r--math/hs-primes/Makefile11
-rw-r--r--math/hs-primes/PLIST19
-rw-r--r--math/hs-primes/buildlink3.mk13
-rw-r--r--math/hs-primes/distinfo5
5 files changed, 51 insertions, 0 deletions
diff --git a/math/hs-primes/DESCR b/math/hs-primes/DESCR
new file mode 100644
index 00000000000..505e293b804
--- /dev/null
+++ b/math/hs-primes/DESCR
@@ -0,0 +1,3 @@
+This Haskell library provides an efficient lazy wheel sieve for prime
+generation inspired by "Lazy wheel sieves and spirals of primes" by Colin
+Runciman and "The Genuine Sieve of Eratosthenes" by Melissa O'Neil.
diff --git a/math/hs-primes/Makefile b/math/hs-primes/Makefile
new file mode 100644
index 00000000000..3c427deb8cd
--- /dev/null
+++ b/math/hs-primes/Makefile
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2022/02/16 05:09:18 pho Exp $
+
+DISTNAME= primes-0.2.1.0
+CATEGORIES= math
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Efficient, purely functional generation of prime numbers
+LICENSE= modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/hs-primes/PLIST b/math/hs-primes/PLIST
new file mode 100644
index 00000000000..2df34eea528
--- /dev/null
+++ b/math/hs-primes/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/16 05:09:18 pho Exp $
+lib/primes-${PKGVERSION}/${HS_VERSION}/package-description
+lib/primes-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Numbers/Primes.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Numbers/Primes.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Numbers/Primes.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}/primes-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/Data-Numbers-Primes.html
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/primes.haddock
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/primes-${PKGVERSION}/html/synopsis.png
diff --git a/math/hs-primes/buildlink3.mk b/math/hs-primes/buildlink3.mk
new file mode 100644
index 00000000000..3b362a9dacf
--- /dev/null
+++ b/math/hs-primes/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/16 05:09:18 pho Exp $
+
+BUILDLINK_TREE+= hs-primes
+
+.if !defined(HS_PRIMES_BUILDLINK3_MK)
+HS_PRIMES_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-primes+= hs-primes>=0.2.1
+BUILDLINK_ABI_DEPENDS.hs-primes+= hs-primes>=0.2.1.0
+BUILDLINK_PKGSRCDIR.hs-primes?= ../../math/hs-primes
+.endif # HS_PRIMES_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-primes
diff --git a/math/hs-primes/distinfo b/math/hs-primes/distinfo
new file mode 100644
index 00000000000..dc37ee3735e
--- /dev/null
+++ b/math/hs-primes/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/16 05:09:18 pho Exp $
+
+BLAKE2s (primes-0.2.1.0.tar.gz) = 954c73b3d2fd3bcf273896e1529c58b9deb53ab00dad5641ea1ce36772534e95
+SHA512 (primes-0.2.1.0.tar.gz) = 05ba4fd5de300782b0e38efab734a1e6544d96ed66ce3839ff0238e207d3e82a35174f476b1aea91fc0a981e9642ccaba81dd558da6012fc67f0b18a465c3e42
+Size (primes-0.2.1.0.tar.gz) = 4602 bytes