pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/lemon Import cleaned up lemon-1.0 from pkgsrc-wip:
details: https://anonhg.NetBSD.org/pkgsrc/rev/044feb398506
branches: trunk
changeset: 543840:044feb398506
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Jun 23 14:51:15 2008 +0000
description:
Import cleaned up lemon-1.0 from pkgsrc-wip:
Lemon is a simple LALR(1) parser generator, creating both
re-entrant and thread-safe parsers.
diffstat:
devel/lemon/DESCR | 13 +++++++++++++
devel/lemon/Makefile | 32 ++++++++++++++++++++++++++++++++
devel/lemon/PLIST | 4 ++++
devel/lemon/distinfo | 5 +++++
4 files changed, 54 insertions(+), 0 deletions(-)
diffs (70 lines):
diff -r 0433b0c3ac73 -r 044feb398506 devel/lemon/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lemon/DESCR Mon Jun 23 14:51:15 2008 +0000
@@ -0,0 +1,13 @@
+The Lemon program is an LALR(1) parser generator. It takes a context
+free grammar and converts it into a subroutine that will parse a file
+using that grammar.
+
+Lemon is similar to the much more famous programs "YACC" and "BISON".
+But lemon is not compatible with either yacc or bison.
+
+There are several important differences:
+* Lemon using a different grammar syntax which is less prone to programming
+ errors.
+* The parser generated by Lemon is both re-entrant and thread-safe.
+* Lemon includes the concept of a non-terminal destructor, which makes it
+ much easier to write a parser that does not leak memory.
diff -r 0433b0c3ac73 -r 044feb398506 devel/lemon/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lemon/Makefile Mon Jun 23 14:51:15 2008 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/06/23 14:51:15 joerg Exp $
+
+PKGNAME= lemon-1.0
+DISTNAME= sqlite-3.5.9
+PKGREVISION= 1
+CATEGORIES= devel
+MASTER_SITES= http://www.hwaci.com/sw/sqlite/ \
+ http://www.sqlite.org/
+
+MAINTAINER= airhead%users.sf.net@localhost
+HOMEPAGE= http://www.hwaci.com/sw/lemon/
+COMMENT= Simple LALR(1) parser generator
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/tool
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS= bin share/lemon
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= lemon.c
+SUBST_SED.paths+= -e 's,"lempar.c","${PREFIX}/share/lemon/lempar.c",g'
+SUBST_STAGE.paths= post-patch
+
+do-build:
+ cd ${WRKSRC} && ${CC} ${CFLAGS} lemon.c -o lemon
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/lemon ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/lempar.c ${DESTDIR}${PREFIX}/share/lemon
+
+.include "../../mk/bsd.pkg.mk"
diff -r 0433b0c3ac73 -r 044feb398506 devel/lemon/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lemon/PLIST Mon Jun 23 14:51:15 2008 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/06/23 14:51:15 joerg Exp $
+bin/lemon
+share/lemon/lempar.c
+@dirrm share/lemon
diff -r 0433b0c3ac73 -r 044feb398506 devel/lemon/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lemon/distinfo Mon Jun 23 14:51:15 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/06/23 14:51:15 joerg Exp $
+
+SHA1 (sqlite-3.5.9.tar.gz) = 8d81fb4ff606095734e721e3cf00bc9d3859a055
+RMD160 (sqlite-3.5.9.tar.gz) = ddaae6866419668021037a497c363e6194de7de5
+Size (sqlite-3.5.9.tar.gz) = 2201083 bytes
Home |
Main Index |
Thread Index |
Old Index