summaryrefslogtreecommitdiff
path: root/devel/gperf
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-05-18 14:49:18 +0000
committertv <tv@pkgsrc.org>1998-05-18 14:49:18 +0000
commit84eac5689c5f2c97bea8c6ccf106514bacf05e2c (patch)
tree57ac4d496e4aea2b35ed3004d995249203a82698 /devel/gperf
parentd2a1d69cce2576e1c4afdfe1de78c96dbfd038a9 (diff)
downloadpkgsrc-84eac5689c5f2c97bea8c6ccf106514bacf05e2c.tar.gz
Add gperf-2.7, a perfect hash function generator
Diffstat (limited to 'devel/gperf')
-rw-r--r--devel/gperf/Makefile15
-rw-r--r--devel/gperf/files/md51
-rw-r--r--devel/gperf/patches/patch-aa20
-rw-r--r--devel/gperf/pkg/COMMENT1
-rw-r--r--devel/gperf/pkg/DESCR15
-rw-r--r--devel/gperf/pkg/PLIST7
6 files changed, 59 insertions, 0 deletions
diff --git a/devel/gperf/Makefile b/devel/gperf/Makefile
new file mode 100644
index 00000000000..41d1b664914
--- /dev/null
+++ b/devel/gperf/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 1998/05/18 14:49:18 tv Exp $
+#
+
+DISTNAME= gperf-2.7
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNU}
+
+MAINTAINER= tv@netbsd.org
+
+GNU_CONFIGURE= yes
+MAN1= gperf.1
+INFO_FILES= gperf.info
+USE_GTEXINFO= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/gperf/files/md5 b/devel/gperf/files/md5
new file mode 100644
index 00000000000..a6546090f1f
--- /dev/null
+++ b/devel/gperf/files/md5
@@ -0,0 +1 @@
+MD5 (gperf-2.7.tar.gz) = f37fb2d0ab56facb1f851ceb208504b9
diff --git a/devel/gperf/patches/patch-aa b/devel/gperf/patches/patch-aa
new file mode 100644
index 00000000000..cbbd2b63bd8
--- /dev/null
+++ b/devel/gperf/patches/patch-aa
@@ -0,0 +1,20 @@
+--- doc/Makefile.in.orig Mon May 18 10:21:02 1998
++++ doc/Makefile.in Mon May 18 10:21:44 1998
+@@ -94,17 +94,11 @@
+ if [ ! -d $(mandir) ] ; then mkdir $(mandir) ; fi
+ if [ ! -d $(man1dir) ] ; then mkdir $(man1dir) ; fi
+ $(INSTALL_DATA) $(srcdir)/gperf.1 $(man1dir)/gperf.1
+- if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
+- $(INSTALL_DATA) $(srcdir)/gperf.dvi $(dvidir)/gperf.dvi
+- if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
+- $(INSTALL_DATA) $(srcdir)/gperf.html $(htmldir)/gperf.html
+
+ installdirs : force
+ if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
+ if [ ! -d $(mandir) ] ; then mkdir $(mandir) ; fi
+ if [ ! -d $(man1dir) ] ; then mkdir $(man1dir) ; fi
+- if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
+- if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
+
+ uninstall : force
+ $(RM) $(infodir)/gperf.info
diff --git a/devel/gperf/pkg/COMMENT b/devel/gperf/pkg/COMMENT
new file mode 100644
index 00000000000..29de01f9f90
--- /dev/null
+++ b/devel/gperf/pkg/COMMENT
@@ -0,0 +1 @@
+The GNU perfect hash function generator
diff --git a/devel/gperf/pkg/DESCR b/devel/gperf/pkg/DESCR
new file mode 100644
index 00000000000..8b59af91364
--- /dev/null
+++ b/devel/gperf/pkg/DESCR
@@ -0,0 +1,15 @@
+The GPERF program creates perfect hash functions. From the author:
+
+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.
+
+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.
+
+Douglas C. Schmidt
diff --git a/devel/gperf/pkg/PLIST b/devel/gperf/pkg/PLIST
new file mode 100644
index 00000000000..d1b8cba6e75
--- /dev/null
+++ b/devel/gperf/pkg/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 1998/05/18 14:49:19 tv Exp $
+bin/gperf
+@unexec %D/bin/install-info --delete %D/info/gperf.info %D/info/dir
+info/gperf.info
+@exec %D/bin/install-info %D/info/gperf.info %D/info/dir
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+man/man1/gperf.1.gz