pkgsrc-WIP-changes archive

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

Add djbsort, requested by wiz.



Module Name:	pkgsrc-wip
Committed By:	Amitai Schleier <schmonz-web-git%schmonz.com@localhost>
Pushed By:	schmonz
Date:		Fri Jul 27 10:23:07 2018 +0200
Changeset:	e1e921ad84799eb16c6341e11a676fb1d889b7e1

Added Files:
	djbsort/DESCR
	djbsort/Makefile
	djbsort/PLIST
	djbsort/buildlink3.mk
	djbsort/distinfo

Log Message:
Add djbsort, requested by wiz.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e1e921ad84799eb16c6341e11a676fb1d889b7e1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 djbsort/DESCR         | 11 +++++++++++
 djbsort/Makefile      | 35 +++++++++++++++++++++++++++++++++++
 djbsort/PLIST         |  5 +++++
 djbsort/buildlink3.mk | 13 +++++++++++++
 djbsort/distinfo      |  6 ++++++
 5 files changed, 70 insertions(+)

diffs:
diff --git a/djbsort/DESCR b/djbsort/DESCR
new file mode 100644
index 0000000000..36b9390045
--- /dev/null
+++ b/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/djbsort/Makefile b/djbsort/Makefile
new file mode 100644
index 0000000000..4866341c73
--- /dev/null
+++ b/djbsort/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD$
+
+DISTNAME=		djbsort-20180717
+CATEGORIES=		math
+MASTER_SITES=		${HOMEPAGE}
+
+MAINTAINER=		schmonz%NetBSD.org@localhost
+HOMEPAGE=		https://sorting.cr.yp.to/
+COMMENT=		Library for sorting arrays of integers
+#LICENSE=		# TODO: (see mk/license.mk)
+
+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/djbsort/PLIST b/djbsort/PLIST
new file mode 100644
index 0000000000..e292ce20ff
--- /dev/null
+++ b/djbsort/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+include/djbsort_cpucycles.h
+include/int32_sort.h
+include/uint32_sort.h
+lib/libdjbsort.a
diff --git a/djbsort/buildlink3.mk b/djbsort/buildlink3.mk
new file mode 100644
index 0000000000..014c48a51e
--- /dev/null
+++ b/djbsort/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+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/djbsort/distinfo b/djbsort/distinfo
new file mode 100644
index 0000000000..f31ed8a0b1
--- /dev/null
+++ b/djbsort/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+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


Home | Main Index | Thread Index | Old Index