Lines 2-33
Link Here
|
2 |
# Date created: 09 May 2002 |
2 |
# Date created: 09 May 2002 |
3 |
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de> |
3 |
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/devel/hs-haddock/Makefile,v 1.34 2009/05/12 11:28:15 itetcu Exp $ |
5 |
# $FreeBSD: ports/devel/hs-haddock/Makefile,v 1.33 2008/07/18 20:05:14 obraun Exp $ |
6 |
|
6 |
|
7 |
PORTNAME= haddock |
7 |
PORTNAME= haddock |
8 |
PORTVERSION= 2.1.0 |
8 |
PORTVERSION= 2.4.2 |
9 |
PORTREVISION= 2 |
|
|
10 |
CATEGORIES= devel haskell |
9 |
CATEGORIES= devel haskell |
11 |
MASTER_SITES= http://hackage.haskell.org/packages/archive/haddock/${PORTVERSION}/ |
10 |
MASTER_SITES= http://www.haskell.org/haddock/dist/ \ |
|
|
11 |
http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ |
12 |
PKGNAMEPREFIX= hs- |
12 |
PKGNAMEPREFIX= hs- |
13 |
|
13 |
|
14 |
MAINTAINER= haskell@FreeBSD.org |
14 |
MAINTAINER= haskell@FreeBSD.org |
15 |
COMMENT= A documentation tool for Haskell |
15 |
COMMENT= A documentation tool for Haskell |
16 |
|
16 |
|
17 |
.if !defined(SLAVE) |
17 |
.if !defined(SLAVE) |
18 |
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc |
18 |
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \ |
19 |
|
19 |
hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths |
20 |
.if exists(${LOCALBASE}/lib/libreadline.so.6) |
20 |
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc \ |
21 |
LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline |
21 |
hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths |
22 |
.endif |
22 |
LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4 |
23 |
|
|
|
24 |
.else |
23 |
.else |
25 |
NO_PKG_REGISTER= |
24 |
NO_PKG_REGISTER= |
26 |
.endif |
25 |
.endif |
27 |
|
26 |
|
28 |
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//g} |
27 |
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//g} |
29 |
|
28 |
|
30 |
GHC_VERSION= 6.8.3 |
29 |
GHC_VERSION= 6.10.4 |
31 |
HADDOCK_VERSION= ${PORTVERSION} |
30 |
HADDOCK_VERSION= ${PORTVERSION} |
32 |
|
31 |
|
33 |
CABAL_CMD= runghc Setup.lhs |
32 |
CABAL_CMD= runghc Setup.lhs |
Lines 42-54
Link Here
|
42 |
HADDOCK_VERSION=${HADDOCK_VERSION} \ |
41 |
HADDOCK_VERSION=${HADDOCK_VERSION} \ |
43 |
DOCSDIR_REL=${DOCSDIR_REL} |
42 |
DOCSDIR_REL=${DOCSDIR_REL} |
44 |
|
43 |
|
|
|
44 |
.include <bsd.port.pre.mk> |
45 |
|
46 |
.if !defined(SLAVE) |
47 |
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) |
48 |
.if ${PORT_HADDOCK} == 11 |
49 |
ECHO_MSG= ${PRINTF} "%b" |
50 |
IGNORE+= \n\t The ${LOCALBASE}/bin/haddock executable was already installed\n |
51 |
IGNORE+= \t by the lang/ghc port, setting the option WITH_HADDOCK.\n |
52 |
IGNORE+= \t You have to reinstall this last one with the right option\n |
53 |
IGNORE+= \t WITHOUT_HADDOCK.\n\c |
54 |
.elif ${PORT_HADDOCK} == 01 |
55 |
ECHO_MSG= ${PRINTF} "%b" |
56 |
IGNORE+= \n\t This port depends on the lang/ghc port, which will install\n |
57 |
IGNORE+= \t the ${LOCALBASE}/bin/haddock executable, for the WITH_HADDOCK\n |
58 |
IGNORE+= \t option was set in it. You have to set the WITHOUT_HADDOCK\n |
59 |
IGNORE+= \t options in lang/ghc before to install devel/hs-haddock.\n\c |
60 |
.endif |
61 |
.endif |
62 |
|
45 |
.SILENT: |
63 |
.SILENT: |
46 |
|
64 |
|
47 |
do-configure: |
65 |
do-configure: |
48 |
cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX} |
66 |
cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --prefix=${PREFIX} |
49 |
|
67 |
|
50 |
do-build: |
68 |
do-build: |
51 |
cd ${WRKSRC} && ${CABAL_CMD} build --ghc-option="-package process-1.0.0.1" |
69 |
cd ${WRKSRC} && ${CABAL_CMD} build |
52 |
.if !defined(SLAVE) |
70 |
.if !defined(SLAVE) |
53 |
cd ${WRKSRC} && ${CABAL_CMD} register --gen-script |
71 |
cd ${WRKSRC} && ${CABAL_CMD} register --gen-script |
54 |
.endif |
72 |
.endif |
Lines 63-66
Link Here
|
63 |
.endif |
81 |
.endif |
64 |
@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old |
82 |
@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old |
65 |
|
83 |
|
66 |
.include <bsd.port.mk> |
84 |
.include <bsd.port.post.mk> |