pkgsrc-wip/alex/Makefile
Emil Sköldberg 930f0ae139 Update to version 2.1.0
Changes since 2.0.1:

  * Switch to a Cabal build system: you need a recent version of Cabal
    (1.1.6 or later). If you have GHC 6.4.2, then you need to upgrade
    Cabal before building Alex. GHC 6.6 is fine.

  * Slight change in the error semantics: the input returned on error
    is before the erroneous character was read, not after. This helps
    to give better error messages.
2007-04-23 15:29:37 +00:00

49 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2007/04/23 15:29:37 emil_s Exp $
#
DISTNAME= alex-${VERSION}
CATEGORIES= devel
MASTER_SITES= http://www.haskell.org/alex/dist/${VERSION}/
DISTFILES= ${DISTNAME}.tar.gz
DISTFILES+= alex-doc-html-2.1.0.tar.gz
SITES.alex-doc-html-2.1.0.tar.gz=http://www.haskell.org/alex/doc/
MAINTAINER= emil@math.su.se
HOMEPAGE= http://www.haskell.org/alex/
COMMENT= Tool for generating lexical analysers in Haskell
VERSION = 2.1.0
USE_TOOLS+= gmake perl
GNU_CONFIGURE= yes
#EXTRACT_ONLY= ${DISTNAME}-src.tar.gz alex-html.tar.gz
EGDIR= ${PREFIX}/share/examples/alex
DOCDIR= ${PREFIX}/share/doc/alex
do-configure:
cd ${WRKSRC:Q} && \
runhaskell Setup.lhs configure \
--ghc \
--prefix=${PREFIX:Q} \
--with-compiler=${PREFIX:Q}/bin/ghc \
--with-hc-pkg=${PREFIX:Q}/bin/ghc-pkg
do-build:
cd ${WRKSRC:Q} && runhaskell -cpp Setup.lhs build
do-install:
cd ${WRKSRC:Q} && runhaskell -cpp Setup.lhs install
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${FIND} ${WRKSRC}/examples -type f \
-exec ${INSTALL_DATA} \{\} ${EGDIR} \;
${INSTALL_DATA_DIR} ${DOCDIR}
# ${INSTALL_DATA} ${DISTDIR}/alex.ps ${DOCDIR}
${INSTALL_DATA} ${WRKDIR}/alex-html/* ${DOCDIR}
.include "../../lang/ghc/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"