Package: alex
Version: 3.1.4
Revision: 1
Source: http://hackage.haskell.org/package/%n-%v/%n-%v.tar.gz
Source-Checksum: SHA256(d64e4eccd953c62795ed566a6de5f3d150b653e05872ff697b3d9dbc961da19f)
SourceDirectory: %n-%v

BuildDepends: autoconf2.6 | autoconf, docbook-dtd, docbook-xsl
Depends: ghc (>= 7.10.3-1), ghc (<< 7.10.4-1), ghc-quickcheck (>= 2-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,@DATADIR@,%p/share/%n-%v,' alex.1.in > alex.1
<<
InstallScript: <<
runghc Setup.lhs copy --destdir=%d
mkdir -p %i/share/doc/%n/html
cp -r doc/%n/* %i/share/doc/%n/html
mkdir -p %i/share/man/man1
cp doc/%n.1 %i/share/man/man1
<<

DocFiles: ANNOUNCE LICENSE README TODO examples

Description: Lexical analyser generator for Haskell
DescDetail: <<
Alex is a tool for generating lexical analysers in Haskell, given a
description of the tokens to be recognised in the form of regular
expressions. It is similar to the tool lex or flex for C/C++.
<<
Homepage: http://www.haskell.org/alex/
License: BSD
Maintainer: None <fink-devel@lists.sourceforge.net>