BSD Ports

devel/gperf 3.3 MidnightBSD

Generates perfect hash functions for sets of keywords

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
gpl3+
Categories
devel

Description

While teaching a data structures course at University of California, Irvine, I developed a program called GPERF that generates perfect hash functions for sets of key words. A perfect hash function is simply:

      A hash function and a data structure that allows
      recognition of a key word in a set of words using
      exactly 1 probe into the data structure.

The gperf.texinfo file explains how the program works, the form of the input, what options are available, and hints on choosing the best options for particular key word sets. The texinfo file is readable both via the GNU emacs `info' command, and is also suitable for typesetting with TeX.

The enclosed Makefile creates the executable program ``gperf'' and also runs some tests.

Output from the GPERF program is used to recognize reserved words in the GNU C, GNU C++, and GNU Pascal compilers, as well as with the GNU indent program.

LICENSE: GPLv3 or later

In the other systems

SystemPortVersion
MidnightBSDdevel/gperf3.3
FreeBSDdevel/gperf3.3
OpenBSDdevel/gperf3.1p0
NetBSDdevel/gperf3.3
DragonFlydevel/gperf3.1_1
HardenedBSDdevel/gperf3.3
GhostBSDdevel/gperf3.3

Install

Binary package:

mport install gperf

From mports:

cd /usr/mports/devel/gperf && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	gperf>0:devel/gperf

Dependencies

Configuration

No options to configure.

USES
cpe
Service scripts
none
Conflicts with
ace+tao

Files

Manual pages 1
  • gperf(1)
pkg-plist 3
  • bin/gperf
  • share/doc/gperf/gperf.html
  • share/man/man1/gperf.1.gz
distinfo 1
FileSizeSHA256
gperf-3.3.tar.gz1.831294e+06fd87e0aba7e43ae054837afd6cd4db03a3f2693deb3619085e6ed9d8d9604ad8
Master sites 1
  • GNU