freebsd-ports/devel/hs-hdoc/Makefile
Gabor Pali 46e9ab0ca5 - Update The Glorious Glasgow Haskell Compiler to version 7.4.1
Please note that port revision for all the Haskell ports without version changes
are also bumped.  Other per-port updates are coming soon (in separate commits)!
In addition to that, separate -docs ports are no longer needed so they are
now removed.

Thanks ashish@ for the assistance.

Obtained from:	FreeBSD Haskell
2012-06-03 20:52:29 +00:00

54 lines
1.3 KiB
Makefile

# New ports collection makefile for: hdoc
# Date created: 25 October 2002
# Whom: Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= hdoc
PORTVERSION= 0.8.3
PORTREVISION= 6
CATEGORIES= devel haskell
MASTER_SITES= http://staff.fmi.uni-passau.de/~groessli/hdoc/
PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= HTML documentation tool for Haskell
LICENSE= GPLv2
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
PLIST_FILES= bin/hdoc
.if !defined(NOPORTDOCS)
PLIST_DIRS= share/doc/${DISTNAME}
PLIST_FILES+= share/doc/${DISTNAME}/hdoc.pdf
.endif
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX}
ALL_TARGET= # empty
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} && \
cd ${WRKSRC}/docs && ${INSTALL_DATA} hdoc.pdf ${DOCSDIR}
.endif
post-patch:
@${REINPLACE_CMD} 's|import List|import Data.List| ; \
s|import Char|import Data.Char| ; \
s|import Ratio|import Data.Ratio| ; \
s|import Monad|import Control.Monad| ; \
s|import IO|import System.IO.Error| ; \
s|import Directory|import System.Directory| ; \
s|import Maybe|import Data.Maybe| ; \
s|import Array|import Data.Array| ; \
s|import System[^\.]|import System.Exit|' \
`${FIND} ${WRKSRC} -name '*.*hs'`
.include <bsd.port.mk>