diff options
author | will <will@FreeBSD.org> | 2003-06-03 10:40:57 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2003-06-03 10:40:57 +0800 |
commit | 237539f9531660e4b812ebebad33ab372c6d505a (patch) | |
tree | e31d1799b0259e98a8a3d1c82fb7b0e5b260994d /devel | |
parent | af85d3425b76df8134f0b4c33d8ace49f466307b (diff) | |
download | freebsd-ports-gnome-237539f9531660e4b812ebebad33ab372c6d505a.tar.gz freebsd-ports-gnome-237539f9531660e4b812ebebad33ab372c6d505a.tar.zst freebsd-ports-gnome-237539f9531660e4b812ebebad33ab372c6d505a.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>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/bnf/Makefile | 29 | ||||
-rw-r--r-- | devel/bnf/distinfo | 1 | ||||
-rw-r--r-- | devel/bnf/files/patch-doc::bnf.texi | 13 | ||||
-rw-r--r-- | devel/bnf/pkg-descr | 9 | ||||
-rw-r--r-- | devel/bnf/pkg-plist | 4 |
6 files changed, 57 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 8adba032045e..c3207dc9d135 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -65,6 +65,7 @@ SUBDIR += bin86 SUBDIR += bison SUBDIR += bison1875 + SUBDIR += bnf SUBDIR += boaconstructor SUBDIR += boehm-gc SUBDIR += bonobo 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 |