FreeBSD Ports

devel/gperf 3.3

Generates perfect hash functions for sets of keywords

Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv3+
Categories
devel
Package size
86.5 KiB, 339.0 KiB installed

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

Install

As a binary package — by origin, or by package name:

pkg install devel/gperf
pkg install gperf

From the ports tree:

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

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

RUN_DEPENDS=	gperf>0:devel/gperf

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.33.33.13.2.1_13.3
FreeBSD:14:quarterly3.33.3n/a3.2.1_13.3
FreeBSD:15:latest3.33.3n/a3.2.1_13.2.1_1
FreeBSD:15:quarterly3.33.3n/an/an/a
FreeBSD:16:latest3.33.3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

All run dependencies 1

Configuration

No options to configure.

USES
cpe
Service scripts
none

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

Commit history 0

No commits in the history this site was built from.