openbsd-ports/devel/happy/Makefile
avsm a184708e4f initial import of happy-1.13, from Don Stewart <dons at cse.unsw.edu.au>
with minor tweaks by me.

--
Happy - The LALR(1) Parser Generator for Haskell

Happy is a parser generator system for Haskell, similar to the
tool `yacc' for C. Like `yacc', it takes a file containing an
annotated BNF specification of a grammar and produces a Haskell
module containing a parser for the grammar.

Happy is flexible: you can have several Happy parsers in the same
program, and several entry points to a single grammar. Happy can
work in conjunction with a lexical analyser supplied by the user
(either hand-written or generated by another program), or it can
parse a stream of characters directly.
2003-07-23 19:09:34 +00:00

41 lines
964 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2003/07/23 19:09:34 avsm Exp $
COMMENT= "parser generator for Haskell 98"
V= 1.13
DISTNAME= happy-${V}
CATEGORIES= devel
HOMEPAGE= http://www.haskell.org/ghc/
MAINTAINER= Don Stewart <dons@cse.unsw.edu.au>
# BSD style w/o advertising clause
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= ghc
HASKELL= http://www.haskell.org
MASTER_SITES= ${HASKELL}/happy/dist/${V}/
MASTER_SITES0= ${HASKELL}/happy/
MASTER_SITES1= ftp://ftp.cse.unsw.edu.au/pub/users/dons/happy/
DOC_FILE= happy-${V}-html
DOC_DIR= ${PREFIX}/share/doc/happy
DISTFILES= happy-${V}-src.tar.gz \
${DOC_FILE:C/(.+)/\1.tar.gz:0/g} \
happy-regress-${V}.tar.gz:1
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu dest
CONFIGURE_ENV= SGML_CATALOG_FILES=${LOCALBASE}/share/sgml/catalog
post-install:
${INSTALL_DATA_DIR} ${DOC_DIR}
@cp -R ${WRKDIR}/${DOC_FILE}/* ${DOC_DIR}
.include <bsd.port.mk>