summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2022-02-16 10:02:47 +0000
committerpho <pho@pkgsrc.org>2022-02-16 10:02:47 +0000
commitacd67d8a3a9f259552a2a19afc4632c701ebac6c (patch)
tree612fbd496a69e6f41dae2a111eb1653ff86b4feb /math
parenta39d2b1defbb718d08ad2e989e350f852f844e64 (diff)
downloadpkgsrc-acd67d8a3a9f259552a2a19afc4632c701ebac6c.tar.gz
math/hs-mod: import hs-mod-0.1.2.2
Modular arithmetic, promoting moduli to the type level, with an emphasis on performance. Originally a part of arithmoi package.
Diffstat (limited to 'math')
-rw-r--r--math/hs-mod/DESCR2
-rw-r--r--math/hs-mod/Makefile14
-rw-r--r--math/hs-mod/PLIST23
-rw-r--r--math/hs-mod/buildlink3.mk17
-rw-r--r--math/hs-mod/distinfo5
5 files changed, 61 insertions, 0 deletions
diff --git a/math/hs-mod/DESCR b/math/hs-mod/DESCR
new file mode 100644
index 00000000000..05e315773de
--- /dev/null
+++ b/math/hs-mod/DESCR
@@ -0,0 +1,2 @@
+Modular arithmetic, promoting moduli to the type level, with an emphasis on
+performance. Originally a part of arithmoi package.
diff --git a/math/hs-mod/Makefile b/math/hs-mod/Makefile
new file mode 100644
index 00000000000..2d450935502
--- /dev/null
+++ b/math/hs-mod/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2022/02/16 10:02:47 pho Exp $
+
+DISTNAME= mod-0.1.2.2
+CATEGORIES= math
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Fast type-safe modular arithmetic
+LICENSE= mit
+
+.include "../../math/hs-semirings/buildlink3.mk"
+.include "../../devel/hs-primitive/buildlink3.mk"
+.include "../../devel/hs-vector/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/hs-mod/PLIST b/math/hs-mod/PLIST
new file mode 100644
index 00000000000..db003174437
--- /dev/null
+++ b/math/hs-mod/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/16 10:02:47 pho Exp $
+lib/mod-${PKGVERSION}/${HS_VERSION}/package-description
+lib/mod-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Mod.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Mod.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Mod.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Mod/Word.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Mod/Word.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Data/Mod/Word.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}/mod-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/Data-Mod-Word.html
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/Data-Mod.html
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/mod.haddock
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/mod-${PKGVERSION}/html/synopsis.png
diff --git a/math/hs-mod/buildlink3.mk b/math/hs-mod/buildlink3.mk
new file mode 100644
index 00000000000..0e82b718460
--- /dev/null
+++ b/math/hs-mod/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/16 10:02:47 pho Exp $
+
+BUILDLINK_TREE+= hs-mod
+
+.if !defined(HS_MOD_BUILDLINK3_MK)
+HS_MOD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-mod+= hs-mod>=0.1.2
+BUILDLINK_ABI_DEPENDS.hs-mod+= hs-mod>=0.1.2.2
+BUILDLINK_PKGSRCDIR.hs-mod?= ../../math/hs-mod
+
+.include "../../math/hs-semirings/buildlink3.mk"
+.include "../../devel/hs-primitive/buildlink3.mk"
+.include "../../devel/hs-vector/buildlink3.mk"
+.endif # HS_MOD_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-mod
diff --git a/math/hs-mod/distinfo b/math/hs-mod/distinfo
new file mode 100644
index 00000000000..ae9ee1fe8e1
--- /dev/null
+++ b/math/hs-mod/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/16 10:02:47 pho Exp $
+
+BLAKE2s (mod-0.1.2.2.tar.gz) = d3e51b4e29c98d01b27a934cb4a5e9a00bd088402c19dc91ae16424372ad008e
+SHA512 (mod-0.1.2.2.tar.gz) = 936404c2dee52483ec47bc7840bdd1a62b6f2d8269c46ceafdc0430793c789a40d5b994d11a82d494fd5f7c4bee618965c1a5a4bf3649f3c89a7c9c6396e53b1
+Size (mod-0.1.2.2.tar.gz) = 13578 bytes