aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-haddock/Makefile
blob: 6b77583cb681adcaaa2cdf8e8291f07096b46f57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
# $FreeBSD$

PORTNAME=   haddock
PORTVERSION=    2.13.2
CATEGORIES= devel haskell

MAINTAINER= haskell@FreeBSD.org
COMMENT=    Documentation-generation tool for Haskell libraries

LICENSE=    BSD

USE_CABAL=  ghc-paths xhtml>=3000.2

USE_ALEX=   true
USE_HAPPY=  true

EXECUTABLE= haddock-${PORTVERSION}

PLIST_SUB+= GHC_HADDOCK_CMD=${GHC_HADDOCK_CMD} HADDOCK=${PREFIX}/bin/haddock EXECUTABLE=${PREFIX}/bin/${EXECUTABLE}

CONFIGURE_ARGS+=    --program-suffix=-${PORTVERSION}

post-install::
    @${LN} -sf ${PREFIX}/bin/${EXECUTABLE} ${PREFIX}/bin/haddock

.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>