summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2018-07-29 07:38:48 +0000
committerwiz <wiz@pkgsrc.org>2018-07-29 07:38:48 +0000
commitf0f51213bc2ad47af87b7558ed40f9e31d4b8718 (patch)
tree4160b3342dfd2dc4222d8ad5aec133ba662dce36
parent67214ada6340f73cc8a79a0974367596474881f2 (diff)
downloadpkgsrc-f0f51213bc2ad47af87b7558ed40f9e31d4b8718.tar.gz
math/djbsort: import djbsort-20180717
djbsort is a software library for sorting arrays of integers. It provides the following features: - Speed: djbsort holds new speed records for in-memory sorting. - Security: djbsort is designed to be safe for cryptographic contexts. - Verification: djbsort includes tools to automatically verify correctness. These features are not separate options: there is a single sorting function that is simultaneously fast, secure, and verified. Packaged for wip by schmonz@
-rw-r--r--math/djbsort/DESCR11
-rw-r--r--math/djbsort/Makefile35
-rw-r--r--math/djbsort/PLIST5
-rw-r--r--math/djbsort/buildlink3.mk13
-rw-r--r--math/djbsort/distinfo6
5 files changed, 70 insertions, 0 deletions
diff --git a/math/djbsort/DESCR b/math/djbsort/DESCR
new file mode 100644
index 00000000000..36b9390045d
--- /dev/null
+++ b/math/djbsort/DESCR
@@ -0,0 +1,11 @@
+djbsort is a software library for sorting arrays of integers. It
+provides the following features:
+
+- Speed: djbsort holds new speed records for in-memory sorting.
+
+- Security: djbsort is designed to be safe for cryptographic contexts.
+
+- Verification: djbsort includes tools to automatically verify correctness.
+
+These features are not separate options: there is a single sorting
+function that is simultaneously fast, secure, and verified.
diff --git a/math/djbsort/Makefile b/math/djbsort/Makefile
new file mode 100644
index 00000000000..d8ac99e2eea
--- /dev/null
+++ b/math/djbsort/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2018/07/29 07:38:48 wiz Exp $
+
+DISTNAME= djbsort-20180717
+CATEGORIES= math
+MASTER_SITES= ${HOMEPAGE}
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= https://sorting.cr.yp.to/
+COMMENT= Library for sorting arrays of integers
+LICENSE= public-domain
+
+PYTHON_FOR_BUILD_ONLY= yes
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+REPLACE_PYTHON= build test upgrade verif/tryinput
+
+INSTALLATION_DIRS= include lib
+
+do-build:
+ cd ${WRKSRC} && ./build
+
+do-test: do-build
+ cd ${WRKSRC} && ./test
+
+do-install: do-test
+ cd ${WRKSRC} && ./upgrade && \
+ cd link-install/newest && \
+ for i in include/*.h; do \
+ ${INSTALL_DATA} $${i} ${DESTDIR}${PREFIX}/include; \
+ done; \
+ for i in lib/*/*.a; do \
+ ${INSTALL_DATA} $${i} ${DESTDIR}${PREFIX}/lib; \
+ done
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/djbsort/PLIST b/math/djbsort/PLIST
new file mode 100644
index 00000000000..0c0ebaaf0e7
--- /dev/null
+++ b/math/djbsort/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2018/07/29 07:38:48 wiz Exp $
+include/djbsort_cpucycles.h
+include/int32_sort.h
+include/uint32_sort.h
+lib/libdjbsort.a
diff --git a/math/djbsort/buildlink3.mk b/math/djbsort/buildlink3.mk
new file mode 100644
index 00000000000..075ee7f9565
--- /dev/null
+++ b/math/djbsort/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/07/29 07:38:48 wiz Exp $
+
+BUILDLINK_TREE+= djbsort
+
+.if !defined(DJBSORT_BUILDLINK3_MK)
+DJBSORT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.djbsort+= djbsort>=20180717
+BUILDLINK_PKGSRCDIR.djbsort?= ../../math/djbsort
+BUILDLINK_DEPMETHOD.djbsort?= build
+.endif # DJBSORT_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -djbsort
diff --git a/math/djbsort/distinfo b/math/djbsort/distinfo
new file mode 100644
index 00000000000..7a6531cf409
--- /dev/null
+++ b/math/djbsort/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/07/29 07:38:48 wiz Exp $
+
+SHA1 (djbsort-20180717.tar.gz) = 8f6efd8f66aa23707d54c083b9fb28371a409c55
+RMD160 (djbsort-20180717.tar.gz) = 64d92cccf13d8a997ea25ee77491f54b6a6b3ce1
+SHA512 (djbsort-20180717.tar.gz) = c26a871c46006580343b2876203264c8de0db613ee90ba5dd050f46a71a346d9340ecd06220dc1c0a46a6c1cd910af4bd2cb3fcd39588a62cc2a4a996fc9113e
+Size (djbsort-20180717.tar.gz) = 25055 bytes