# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name			lemon
version			1.39
revision		1
categories		lang devel
platforms		darwin
maintainers		mww
description		An LALR(1) parser generator like yacc or bison.
long_description	${description}

homepage		http://www.hwaci.com/sw/lemon/
master_sites	http://people.FreeBSD.org/~seanc/ports/lemon/ \
				freebsd
checksums		sha1 0baa13c54d437b21ccf802792e4ef081e5af3348
use_bzip2		yes
post-extract {
	xinstall -m 644 ${filespath}/Makefile ${worksrcpath}
	xinstall -m 755 ${filespath}/configure ${worksrcpath}
}

patchfiles		patch-lemon.c.diff

configure.env-append	PREFIX=${prefix}

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/lemon
	xinstall -m 755 -W ${worksrcpath} lemon lemoncxx ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/lempar.c ${destroot}${prefix}/share/lemon/lempar.c
	xinstall -m 644 ${worksrcpath}/lempar.c ${destroot}${prefix}/share/lemon/lempar.cpp
}

livecheck.type	moddate
livecheck.url	http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lemon.c

