1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/print/hs-hscolour-docs/Makefile
Gabor Pali ee8eda08fb - Update HsColour to 1.15
- Bump PORTREVISION for all affected ports

PR:		ports/138567, ports/138568
Submitted by:	Ashish Shukla <wahjava (at) gmail.com>
Approved by:	maintainer
2009-12-06 20:56:55 +00:00

50 lines
1.3 KiB
Makefile

# 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
PORTVERSION= 1.15
PORTEPOCH= 1
CATEGORIES= print haskell
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/ \
http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -doc
MAINTAINER= jacula@gmail.com
COMMENT= Documentation for HsColour
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
HsColour:${PORTSDIR}/print/hs-hscolour
RUN_DEPENDS= hs-hscolour=${PKGVERSION}:${PORTSDIR}/print/hs-hscolour
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
.if !empty(PORT_HADDOCK:M?0)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
.endif
HSCOLOUR_VERSION= ${PORTVERSION}
HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
CABAL_CMD= runghc Setup.hs
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
.SILENT:
do-configure:
cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w --prefix=${PREFIX}
do-build:
cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source \
--hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
do-install:
${MKDIR} ${DOCSDIR}/html
cd ${WRKSRC}/dist/doc/html/hscolour && ${COPYTREE_SHARE} \* ${DOCSDIR}/html
.include <bsd.port.mk>