2008-02-29 21:50:33 +01:00
|
|
|
# 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
|
2009-03-06 20:29:45 +01:00
|
|
|
PORTVERSION= 1.12
|
2008-02-29 21:50:33 +01:00
|
|
|
CATEGORIES= print haskell
|
2008-08-15 05:30:20 +02:00
|
|
|
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ \
|
|
|
|
http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
2008-02-29 21:50:33 +01:00
|
|
|
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}
|
2008-08-15 05:30:20 +02:00
|
|
|
HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
|
2008-02-29 21:50:33 +01:00
|
|
|
|
|
|
|
CABAL_CMD= runghc Setup.hs
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
|
|
|
|
|
|
|
.SILENT:
|
|
|
|
|
|
|
|
do-configure:
|
2008-08-15 05:30:20 +02:00
|
|
|
cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w --prefix=${PREFIX}
|
2008-02-29 21:50:33 +01:00
|
|
|
|
|
|
|
do-build:
|
2008-08-15 05:30:20 +02:00
|
|
|
cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source \
|
|
|
|
--hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
|
2008-02-29 21:50:33 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DOCSDIR}/html
|
2008-08-15 05:30:20 +02:00
|
|
|
cd ${WRKSRC}/dist/doc/html/hscolour && ${COPYTREE_SHARE} \* ${DOCSDIR}/html
|
2008-02-29 21:50:33 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|