Package: happy
Version: 1.19.5
Revision: 1
Source: http://hackage.haskell.org/package/%n-%v/%n-%v.tar.gz
Source-Checksum: SHA256(62f03ac11d7b4b9913f212f5aa2eee1087f3b46dc07d799d41e1854ff02843da)
SourceDirectory: %n-%v

BuildDepends: autoconf2.6 | autoconf, docbook-dtd, docbook-xsl
Depends: ghc (>= 7.10.3-1), ghc (<< 7.10.4-1), ghc-mtl (>= 1.0-1)

CompileScript: <<
#!/bin/sh -ev

runghc Setup.lhs configure --prefix=%p --docdir=%p/share/doc/%n
runghc Setup.lhs build

cd doc
autoconf
./configure %c
make
sed -e 's,@DOCDIR@,%p/share/doc/%n,' -e 's/@VERSION@/%v/' -e 's,@LIBDIR@,%p/share/%n-%v,' happy.1.in > happy.1
<<
InstallScript: <<
runghc Setup.lhs copy --destdir=%d
mkdir -p %i/share/doc/%n/html
cp -r doc/happy/* %i/share/doc/%n/html
mkdir -p %i/share/man/man1
cp doc/happy.1 %i/share/man/man1
<<

DocFiles: ANNOUNCE CHANGES LICENSE README TODO examples

Description: Parser generator for Haskell
DescDetail: <<
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 (but this isn't practical in most
cases).

As of version 1.5, Happy is capable of parsing full Haskell. We have a
Haskell parser that uses Happy, which will shortly be part of the
library collection distributed with GHC.
<<
Homepage: http://www.haskell.org/happy/
License: BSD
Maintainer: None <fink-devel@lists.sourceforge.net>