---
name: gperf
version: 3.0.3
origin: devel/gperf
comment: Generates perfect hash functions for sets of keywords
arch: freebsd:9:x86:64
www: http://www.gnu.org/software/gperf/
maintainer: dinoex@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [GPLv2]
flatsize: 267360
desc: "While teaching a data structures course at University of California,\nIrvine,
  I developed a program called GPERF that generates perfect hash\nfunctions for sets
  of key words.  A perfect hash function is simply:\n\n          A hash function and
  a data structure that allows \n          recognition of a key word in a set of words
  using \n          exactly 1 probe into the data structure.\n\nThe gperf.texinfo
  file explains how the program works, the form of the\ninput, what options are available,
  and hints on choosing the best\noptions for particular key word sets.  The texinfo
  file is readable\nboth via the GNU emacs `info' command, and is also suitable for\ntypesetting
  with TeX.\n\nThe enclosed Makefile creates the executable program ``gperf'' and\nalso
  runs some tests.\n\nOutput from the GPERF program is used to recognize reserved
  words in\nthe GNU C, GNU C++, and GNU Pascal compilers, as well as with the GNU\nindent
  program.\n\nLICENSE: GPL2 or later\n\nWWW: http://www.gnu.org/software/gperf/\n"
categories: [devel]
files:
  /usr/local/bin/gperf: 85fb8b2847642a43b8a45821980b36e80d9e640ebee92d5a8c73a649db31fea8
  /usr/local/info/gperf.info: 9944022ad220db46eee9f743694db43fee73a4dc223f5f875f9d5f491de0d041
  /usr/local/man/man1/gperf.1.gz: ae20c811340159048bedb9e863ed7a623b6416861f0c08d43f921b0de199e938
  /usr/local/share/doc/gperf/gperf.html: 5f224ce769cb79b556788d950803c5bed5514cfc6d7f254849ba705e74acd051
  /usr/local/share/licenses/gperf-3.0.3/GPLv2: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
  /usr/local/share/licenses/gperf-3.0.3/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/gperf-3.0.3/catalog.mk: d017b01e70ad9315068bbc9c3fe085db28991c2206a4b9e667db7d98d18bed62
directories:
  /usr/local/share/licenses/gperf-3.0.3/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/gperf/: n
scripts:
  post-install: |
    cd /usr/local
    file=/usr/local/info/gperf.info
    install-info --quiet /usr/local/info/gperf.info ${file%25/*}/dir
  pre-deinstall: |
    cd /usr/local
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    cd /usr/local
    file=/usr/local/info/gperf.info
    install-info --quiet --delete /usr/local/info/gperf.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
