pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/mph Initial import of mph-1.2 into the NetBSD Pa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/41b67c52265e
branches: trunk
changeset: 464165:41b67c52265e
user: agc <agc%pkgsrc.org@localhost>
date: Thu Dec 04 08:44:58 2003 +0000
description:
Initial import of mph-1.2 into the NetBSD Packages Collection.
The program mph tries to generate an order preserving minimal perfect
hashing (MPH) function for the set of keys, one per line, on stdin.
Each key can be at most 4095 characters long (see keys.h to increase
this limit), and the keys must be unique. If mph terminates, it emits
a language independent binary or text representation of the MPH
function on stdout. To generate a usable hash function, this output
should be fed to a language dependent filter, like emitc.
e.g.
% mph <foo | emitc >hash.c
The algorithm used by mph is probabilistic - it iterates until it
finds a MPH function. For each failed iteration, it prints a
(cryptic) reason on stderr. There is no no guarantee that mph will
terminate. In practice this is unlikely, unless the constants
specified with options -c or -m are too small (see below).
diffstat:
devel/mph/DESCR | 16 ++++++++++++++++
devel/mph/Makefile | 19 +++++++++++++++++++
devel/mph/PLIST | 6 ++++++
devel/mph/distinfo | 4 ++++
4 files changed, 45 insertions(+), 0 deletions(-)
diffs (61 lines):
diff -r 6b530970ff33 -r 41b67c52265e devel/mph/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mph/DESCR Thu Dec 04 08:44:58 2003 +0000
@@ -0,0 +1,16 @@
+The program mph tries to generate an order preserving minimal perfect
+hashing (MPH) function for the set of keys, one per line, on stdin.
+Each key can be at most 4095 characters long (see keys.h to increase
+this limit), and the keys must be unique. If mph terminates, it emits
+a language independent binary or text representation of the MPH
+function on stdout. To generate a usable hash function, this output
+should be fed to a language dependent filter, like emitc.
+
+e.g.
+ % mph <foo | emitc >hash.c
+
+The algorithm used by mph is probabilistic - it iterates until it
+finds a MPH function. For each failed iteration, it prints a
+(cryptic) reason on stderr. There is no no guarantee that mph will
+terminate. In practice this is unlikely, unless the constants
+specified with options -c or -m are too small (see below).
diff -r 6b530970ff33 -r 41b67c52265e devel/mph/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mph/Makefile Thu Dec 04 08:44:58 2003 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/04 08:44:58 agc Exp $
+#
+
+DISTNAME= mph-1.2
+CATEGORIES= devel
+MASTER_SITES= http://www.ibiblio.org/pub/Linux/devel/lang/c/
+
+MAINTAINER= tech-pkg%netbsd.org@localhost
+#HOMEPAGE= none
+COMMENT= Minimal perfect hashing functionality
+
+do-install:
+ for i in emitc mph mphm; do \
+ ${INSTALL_PROGRAM} ${WRKSRC}/$$i ${PREFIX}/bin; \
+ done
+ ${INSTALL_SCRIPT} ${WRKSRC}/mphminm ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/mph.doc ${PREFIX}/share/doc
+
+.include "../../mk/bsd.pkg.mk"
diff -r 6b530970ff33 -r 41b67c52265e devel/mph/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mph/PLIST Thu Dec 04 08:44:58 2003 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/04 08:44:58 agc Exp $
+bin/emitc
+bin/mph
+bin/mphm
+bin/mphminm
+share/doc/mph.doc
diff -r 6b530970ff33 -r 41b67c52265e devel/mph/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mph/distinfo Thu Dec 04 08:44:58 2003 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/04 08:44:58 agc Exp $
+
+SHA1 (mph-1.2.tar.gz) = 05da8d39b27d5b1d42c52d825f4d2196711a8df5
+Size (mph-1.2.tar.gz) = 22762 bytes
Home |
Main Index |
Thread Index |
Old Index