blob: 78adb4d137302ca2ea186d73317dc2510e87291b (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# New ports collection makefile for: hs-hscolour-docs
# Date created: February 22 2008
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
#
# $FreeBSD$
#
PORTNAME= hscolour-docs
PORTVERSION= 1.9
CATEGORIES= print haskell
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/
PKGNAMEPREFIX= hs-
DISTNAME= hscolour-${PORTVERSION}
MAINTAINER= jacula@gmail.com
COMMENT= Documentation for HsColour
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
haddock:${PORTSDIR}/devel/hs-haddock \
HsColour:${PORTSDIR}/print/hs-hscolour
HSCOLOUR_VERSION= ${PORTVERSION}
CABAL_CMD= runghc Setup.hs
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
PLIST_SUB= DOCSDIR_REL=${DOCSDIR_REL}
.SILENT:
do-configure:
cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX}
do-build:
cd ${WRKSRC} && ${CABAL_CMD} build && \
${CABAL_CMD} haddock --executables --hyperlink-source \
--hscolour-css=${LOCALBASE}/share/hscolour-${HSCOLOUR_VERSION}/hscolour.css
do-install:
${MKDIR} ${DOCSDIR}/html
cd ${WRKSRC}/dist/doc/html/hscolour && ${CP} -R * ${DOCSDIR}/html
.include <bsd.port.mk>
|