PORTNAME=	peg
DISTVERSION=	0.1.19
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	https://www.piumarta.com/software/peg/

MAINTAINER=	jrm@FreeBSD.org
COMMENT=	Recursive-descent parser generators for C
WWW=		https://www.piumarta.com/software/peg/

LICENSE=	MIT

USES=		gmake

PORTSCOUT=	skipv:0.1.20

PLIST_FILES=	bin/leg \
		bin/peg \
		share/man/man1/peg.1.gz

post-patch:
	@${REINPLACE_CMD} -e 's,%%STAGEDIR%%,${STAGEDIR},g' \
		-e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/Makefile

.include <bsd.port.mk>
