aboutsummaryrefslogtreecommitdiff
path: root/devel/bnf
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2003-06-03 02:40:57 +0000
committerWill Andrews <will@FreeBSD.org>2003-06-03 02:40:57 +0000
commit1a62aab476e5259f63f16f18c09065605147936f (patch)
treef82376600727d7403c899ec55ff54fc764a237c3 /devel/bnf
parentc6e11989886e8fd2dccb28b2baf38f249f29634b (diff)
downloadports-1a62aab476e5259f63f16f18c09065605147936f.tar.gz
ports-1a62aab476e5259f63f16f18c09065605147936f.zip
Add bnf 1.6.9, a program to generate a C parser given a
grammar in BNF notation. PR: 52558 Submitted by: Frerich Raabe <frerich.raabe@gmx.de>
Notes
Notes: svn path=/head/; revision=82096
Diffstat (limited to 'devel/bnf')
-rw-r--r--devel/bnf/Makefile29
-rw-r--r--devel/bnf/distinfo1
-rw-r--r--devel/bnf/files/patch-doc::bnf.texi13
-rw-r--r--devel/bnf/pkg-descr9
-rw-r--r--devel/bnf/pkg-plist4
5 files changed, 56 insertions, 0 deletions
diff --git a/devel/bnf/Makefile b/devel/bnf/Makefile
new file mode 100644
index 000000000000..8c2684a11710
--- /dev/null
+++ b/devel/bnf/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: bnf
+# Date created: 22 May 2003
+# Whom: Frerich Raabe <frerich.raabe@gmx.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bnf
+PORTVERSION= 1.6.9
+CATEGORIES= devel
+MASTER_SITES= http://savannah.nongnu.org/download/bnf/
+
+MAINTAINER= frerich.raabe@gmx.de
+COMMENT= Generate C parser given a grammar in BNF notation
+
+GNU_CONFIGURE= yes
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/src/bnf ${PREFIX}/bin/bnf
+.if !defined(NOPORTDOCS)
+ @${INSTALL_DATA} ${WRKSRC}/doc/bnf.info ${PREFIX}/info
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @install-info ${PREFIX}/info/bnf.info ${PREFIX}/info/dir
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/bnf/distinfo b/devel/bnf/distinfo
new file mode 100644
index 000000000000..038c2f35f915
--- /dev/null
+++ b/devel/bnf/distinfo
@@ -0,0 +1 @@
+MD5 (bnf-1.6.9.tar.gz) = 62d9ae3b2eedb933921048a5ba81f57f
diff --git a/devel/bnf/files/patch-doc::bnf.texi b/devel/bnf/files/patch-doc::bnf.texi
new file mode 100644
index 000000000000..0471adbab39f
--- /dev/null
+++ b/devel/bnf/files/patch-doc::bnf.texi
@@ -0,0 +1,13 @@
+--- doc/bnf.texi.orig Thu May 22 06:32:29 2003
++++ doc/bnf.texi Thu May 22 06:34:23 2003
+@@ -2,6 +2,10 @@
+ @c %**start of header
+ @setfilename bnf.info
+ @settitle BNF Parser Generator
++@dircategory Programming Tools
++@direntry
++* bnf: (bnf). A simple parser generator
++@end direntry
+ @c %**end of header
+
+
diff --git a/devel/bnf/pkg-descr b/devel/bnf/pkg-descr
new file mode 100644
index 000000000000..b6e87d04d7bb
--- /dev/null
+++ b/devel/bnf/pkg-descr
@@ -0,0 +1,9 @@
+The BNF parser generator takes a syntax not unlike BNF and generates
+a "C" parser for it, a parser that can parse either strings or files.
+
+This is a flexible tool, meant for smaller parsing tasks where
+bison+flex are just too big to use.
+
+WWW: http://www.nongnu.org/bnf/
+
+- Frerich Raabe frerich.raabe@gmx.de
diff --git a/devel/bnf/pkg-plist b/devel/bnf/pkg-plist
new file mode 100644
index 000000000000..8296be9703c7
--- /dev/null
+++ b/devel/bnf/pkg-plist
@@ -0,0 +1,4 @@
+bin/bnf
+%%PORTDOCS%%@unexec install-info --delete %D/%%PORTDOCS%%info/bnf.info %D/info/dir
+%%PORTDOCS%%info/bnf.info
+%%PORTDOCS%%@exec install-info %D/%%PORTDOCS%%info/bnf.info %D/info/dir