View | Details | Raw Unified | Return to bug 137061
Collapse All | Expand All

(-)hs-haddock-docs/Makefile (-23 / +25 lines)
Lines 5-17 Link Here
5
# $FreeBSD: ports/devel/hs-haddock-docs/Makefile,v 1.7 2009/06/05 12:15:11 pgj Exp $
5
# $FreeBSD: ports/devel/hs-haddock-docs/Makefile,v 1.7 2009/06/05 12:15:11 pgj Exp $
6
#
6
#
7
7
8
PORTNAME=	haddock-docs
8
PORTNAME=	haddock
9
PORTVERSION=	2.1.0
9
PORTVERSION=	2.4.2
10
PORTREVISION=	4
11
CATEGORIES=	devel haskell
10
CATEGORIES=	devel haskell
12
MASTER_SITES=	http://www.haskell.org/haddock/dist/
11
MASTER_SITES=	http://www.haskell.org/haddock/dist/ \
12
		http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
13
PKGNAMEPREFIX=	hs-
13
PKGNAMEPREFIX=	hs-
14
DISTNAME=	haddock-${PORTVERSION}
14
PKGNAMESUFFIX=	-doc
15
15
16
MAINTAINER=	haskell@FreeBSD.org
16
MAINTAINER=	haskell@FreeBSD.org
17
COMMENT=	Documentation for Haddock
17
COMMENT=	Documentation for Haddock
Lines 19-40 Link Here
19
USE_GMAKE=	yes
19
USE_GMAKE=	yes
20
USE_AUTOTOOLS=	autoconf:262:env
20
USE_AUTOTOOLS=	autoconf:262:env
21
21
22
BUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc \
22
BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc \
23
		haddock:${PORTSDIR}/devel/hs-haddock \
23
		HsColour:${PORTSDIR}/print/hs-hscolour \
24
		HsColour:${PORTSDIR}/print/hs-hscolour
24
		hs-ghc-paths>=0.1.0.5:${PORTSDIR}/devel/hs-ghc-paths
25
25
26
BUILD_DEPENDS+=	${LOCALBASE}/share/sgml/docbook/dsssl/modular:${PORTSDIR}/textproc/dsssl-docbook-modular \
26
PORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
27
		docbook<2:${PORTSDIR}/textproc/docbook \
27
.if ${PORT_HADDOCK} == 11
28
		${LOCALBASE}/share/sgml/iso8879:${PORTSDIR}/textproc/iso8879 \
28
ECHO_MSG=	${PRINTF} "%b"
29
		${LOCALBASE}/share/sgml/docbook/3.1:${PORTSDIR}/textproc/docbook-310 \
29
IGNORE+=	\n\t The ${LOCALBASE}/bin/haddock executable was already installed\n
30
		${LOCALBASE}/share/xsl/docbook/catalog:${PORTSDIR}/textproc/docbook-xsl \
30
IGNORE+=	\t by the lang/ghc port, setting the option WITH_HADDOCK.\n
31
		jade:${PORTSDIR}/textproc/jade \
31
IGNORE+=	\t You have to reinstall this last one with the right option\n
32
		xsltproc:${PORTSDIR}/textproc/libxslt
32
IGNORE+=	\t WITHOUT_HADDOCK.\n\c
33
.else
34
BUILD_DEPENDS+=	hs-haddock=${PORTVERSION}:${PORTSDIR}/devel/hs-haddock
35
RUN_DEPENDS=	hs-haddock=${PORTVERSION}:${PORTSDIR}/devel/hs-haddock
36
.endif
37
38
BUILD_DEPENDS+=	${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
39
		${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
33
40
34
WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//g}
41
WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//g}
35
CONFIGURE_ARGS=	--prefix=${PREFIX}
42
CONFIGURE_ARGS=	--prefix=${PREFIX}
36
43
37
HSCOLOUR_VERSION=	1.12
44
HSCOLOUR_VERSION=	1.13
38
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
45
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
39
46
40
CABAL_CMD=	runghc Setup.lhs
47
CABAL_CMD=	runghc Setup.lhs
Lines 43-59 Link Here
43
50
44
.SILENT:
51
.SILENT:
45
52
46
post-patch:
47
	@${REINPLACE_CMD} -e 's|/usr/local/share/sgml/catalog|| ; \
48
		s|/usr/local/share/xsl/docbook|${LOCALBASE}/share/xsl/docbook|' \
49
		${WRKSRC}/doc/configure.ac
50
51
do-configure:
53
do-configure:
52
	cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w ${CONFIGURE_ARGS}
54
	cd ${WRKSRC} && ${CABAL_CMD} configure --ghc --haddock-options=-w ${CONFIGURE_ARGS}
53
	cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure ${CONFIGURE_ARGS}
55
	cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure ${CONFIGURE_ARGS}
54
56
55
do-build:
57
do-build:
56
	cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source \
58
	cd ${WRKSRC} && ${CABAL_CMD} haddock --executables --hyperlink-source --executables \
57
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
59
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
58
	cd ${WRKSRC}/doc && \
60
	cd ${WRKSRC}/doc && \
59
		${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html
61
		${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html
(-)hs-haddock-docs/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (haddock-2.1.0.tar.gz) = 8971b42827758aa06519aeeecbfa30e6
1
MD5 (haddock-2.4.2.tar.gz) = c1d5238faac72727921130eb792041a2
2
SHA256 (haddock-2.1.0.tar.gz) = 1b67869e493e56366207a128949998851f975d821e0952c2c717840d2eadaca7
2
SHA256 (haddock-2.4.2.tar.gz) = dbf0a7d0103a3ce6a91b2a3b96148c1b9c13ea7f8bd74260c21fe98df7839547
3
SIZE (haddock-2.1.0.tar.gz) = 95531
3
SIZE (haddock-2.4.2.tar.gz) = 103033
(-)hs-haddock-docs/files/patch-src-Haddock-GHC-Typecheck.hs (-27 lines)
Lines 1-27 Link Here
1
--- src/Haddock/GHC/Typecheck.hs.orig	2008-05-01 15:13:13.000000000 +0200
2
+++ src/Haddock/GHC/Typecheck.hs	2008-06-22 16:52:52.000000000 +0200
3
@@ -23,6 +23,7 @@
4
 
5
 import Data.List
6
 
7
+import FastString
8
 
9
 type CheckedMod = (Module, FilePath, FullyCheckedMod)
10
 
11
@@ -69,7 +70,7 @@
12
 mkGhcModule (mod, file, checkedMod) dynflags = GhcModule {
13
   ghcModule         = mod,
14
   ghcFilename       = file,
15
-  ghcMbDocOpts      = mbOpts,
16
+  ghcMbDocOpts      = fmap unpackFS mbOpts,
17
   ghcHaddockModInfo = info,
18
   ghcMbDoc          = mbDoc,
19
   ghcGroup          = group,
20
@@ -79,6 +80,6 @@
21
   ghcInstances      = modInfoInstances modInfo
22
 }
23
   where
24
-    HsModule _ _ _ _ _ mbOpts _ _      = unLoc parsed
25
+    HsModule _ _ _ _ mbOpts _ _      = unLoc parsed
26
     (group, _, mbExports, mbDoc, info) = renamed
27
     (parsed, renamed, _, modInfo)      = checkedMod
(-)hs-haddock-docs/pkg-message (-3 / +1 lines)
Lines 3-11 Link Here
3
  WARNING: if the lang/ghc port doesn't install the hyperlinkable
3
  WARNING: if the lang/ghc port doesn't install the hyperlinkable
4
  documentation for its libraries, then haddock can't know about
4
  documentation for its libraries, then haddock can't know about
5
  these. But also in this case haddock can't handle recursive
5
  these. But also in this case haddock can't handle recursive
6
  modules currently, so the lang/ghc port can't install the
6
  modules currently.
7
  hyperlinkable documentation of the HSghc libraries, and then
8
  haddock can't know about these last.
9
  In general haddock detects and reports as an error recursive
7
  In general haddock detects and reports as an error recursive
10
  modules and emits chatting warnings listing all the identifiers
8
  modules and emits chatting warnings listing all the identifiers
11
  it couldn't resolve.
9
  it couldn't resolve.
(-)hs-haddock-docs/pkg-plist (-5 / +31 lines)
Lines 1-7 Link Here
1
%%DOCSDIR%%/html/Distribution-Haddock.html
1
%%DOCSDIR%%/html/Distribution-Haddock.html
2
%%DOCSDIR%%/html/Haddock-DocName.html
3
%%DOCSDIR%%/html/Haddock-GHC-Utils.html
4
%%DOCSDIR%%/html/doc-index.html
2
%%DOCSDIR%%/html/doc-index.html
3
%%DOCSDIR%%/html/frames.html
5
%%DOCSDIR%%/html/haddock-util.js
4
%%DOCSDIR%%/html/haddock-util.js
6
%%DOCSDIR%%/html/haddock.css
5
%%DOCSDIR%%/html/haddock.css
7
%%DOCSDIR%%/html/haddock.haddock
6
%%DOCSDIR%%/html/haddock.haddock
Lines 11-20 Link Here
11
%%DOCSDIR%%/html/haddock/Haddock-Backends-HaddockDB.html
10
%%DOCSDIR%%/html/haddock/Haddock-Backends-HaddockDB.html
12
%%DOCSDIR%%/html/haddock/Haddock-Backends-Hoogle.html
11
%%DOCSDIR%%/html/haddock/Haddock-Backends-Hoogle.html
13
%%DOCSDIR%%/html/haddock/Haddock-Backends-Html.html
12
%%DOCSDIR%%/html/haddock/Haddock-Backends-Html.html
14
%%DOCSDIR%%/html/haddock/Haddock-DocName.html
15
%%DOCSDIR%%/html/haddock/Haddock-Exception.html
13
%%DOCSDIR%%/html/haddock/Haddock-Exception.html
16
%%DOCSDIR%%/html/haddock/Haddock-GHC-Typecheck.html
14
%%DOCSDIR%%/html/haddock/Haddock-GHC-Typecheck.html
17
%%DOCSDIR%%/html/haddock/Haddock-GHC-Utils.html
18
%%DOCSDIR%%/html/haddock/Haddock-GHC.html
15
%%DOCSDIR%%/html/haddock/Haddock-GHC.html
19
%%DOCSDIR%%/html/haddock/Haddock-Interface-AttachInstances.html
16
%%DOCSDIR%%/html/haddock/Haddock-Interface-AttachInstances.html
20
%%DOCSDIR%%/html/haddock/Haddock-Interface-Create.html
17
%%DOCSDIR%%/html/haddock/Haddock-Interface-Create.html
Lines 23-29 Link Here
23
%%DOCSDIR%%/html/haddock/Haddock-InterfaceFile.html
20
%%DOCSDIR%%/html/haddock/Haddock-InterfaceFile.html
24
%%DOCSDIR%%/html/haddock/Haddock-ModuleTree.html
21
%%DOCSDIR%%/html/haddock/Haddock-ModuleTree.html
25
%%DOCSDIR%%/html/haddock/Haddock-Options.html
22
%%DOCSDIR%%/html/haddock/Haddock-Options.html
26
%%DOCSDIR%%/html/haddock/Haddock-Types.html
27
%%DOCSDIR%%/html/haddock/Haddock-Utils-BlockTable.html
23
%%DOCSDIR%%/html/haddock/Haddock-Utils-BlockTable.html
28
%%DOCSDIR%%/html/haddock/Haddock-Utils-FastMutInt2.html
24
%%DOCSDIR%%/html/haddock/Haddock-Utils-FastMutInt2.html
29
%%DOCSDIR%%/html/haddock/Haddock-Utils-Html.html
25
%%DOCSDIR%%/html/haddock/Haddock-Utils-Html.html
Lines 32-41 Link Here
32
%%DOCSDIR%%/html/haddock/Main.html
28
%%DOCSDIR%%/html/haddock/Main.html
33
%%DOCSDIR%%/html/haddock/Paths_haddock.html
29
%%DOCSDIR%%/html/haddock/Paths_haddock.html
34
%%DOCSDIR%%/html/haddock/doc-index.html
30
%%DOCSDIR%%/html/haddock/doc-index.html
31
%%DOCSDIR%%/html/haddock/frames.html
35
%%DOCSDIR%%/html/haddock/haddock-util.js
32
%%DOCSDIR%%/html/haddock/haddock-util.js
36
%%DOCSDIR%%/html/haddock/haddock.css
33
%%DOCSDIR%%/html/haddock/haddock.css
37
%%DOCSDIR%%/html/haddock/haskell_icon.gif
34
%%DOCSDIR%%/html/haddock/haskell_icon.gif
35
%%DOCSDIR%%/html/haddock/index-frames.html
38
%%DOCSDIR%%/html/haddock/index.html
36
%%DOCSDIR%%/html/haddock/index.html
37
%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-DevHelp.html
38
%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-HH.html
39
%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-HH2.html
40
%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-HaddockDB.html
41
%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-Hoogle.html
42
%%DOCSDIR%%/html/haddock/mini_Haddock-Backends-Html.html
43
%%DOCSDIR%%/html/haddock/mini_Haddock-Exception.html
44
%%DOCSDIR%%/html/haddock/mini_Haddock-GHC-Typecheck.html
45
%%DOCSDIR%%/html/haddock/mini_Haddock-GHC.html
46
%%DOCSDIR%%/html/haddock/mini_Haddock-Interface-AttachInstances.html
47
%%DOCSDIR%%/html/haddock/mini_Haddock-Interface-Create.html
48
%%DOCSDIR%%/html/haddock/mini_Haddock-Interface-Rename.html
49
%%DOCSDIR%%/html/haddock/mini_Haddock-Interface.html
50
%%DOCSDIR%%/html/haddock/mini_Haddock-InterfaceFile.html
51
%%DOCSDIR%%/html/haddock/mini_Haddock-ModuleTree.html
52
%%DOCSDIR%%/html/haddock/mini_Haddock-Options.html
53
%%DOCSDIR%%/html/haddock/mini_Haddock-Utils-BlockTable.html
54
%%DOCSDIR%%/html/haddock/mini_Haddock-Utils-FastMutInt2.html
55
%%DOCSDIR%%/html/haddock/mini_Haddock-Utils-Html.html
56
%%DOCSDIR%%/html/haddock/mini_Haddock-Utils.html
57
%%DOCSDIR%%/html/haddock/mini_Haddock-Version.html
58
%%DOCSDIR%%/html/haddock/mini_Main.html
59
%%DOCSDIR%%/html/haddock/mini_Paths_haddock.html
39
%%DOCSDIR%%/html/haddock/minus.gif
60
%%DOCSDIR%%/html/haddock/minus.gif
40
%%DOCSDIR%%/html/haddock/plus.gif
61
%%DOCSDIR%%/html/haddock/plus.gif
41
%%DOCSDIR%%/html/haddock/src/Haddock-Backends-DevHelp.html
62
%%DOCSDIR%%/html/haddock/src/Haddock-Backends-DevHelp.html
Lines 65-77 Link Here
65
%%DOCSDIR%%/html/haddock/src/Main.html
86
%%DOCSDIR%%/html/haddock/src/Main.html
66
%%DOCSDIR%%/html/haddock/src/hscolour.css
87
%%DOCSDIR%%/html/haddock/src/hscolour.css
67
%%DOCSDIR%%/html/haskell_icon.gif
88
%%DOCSDIR%%/html/haskell_icon.gif
89
%%DOCSDIR%%/html/index-frames.html
68
%%DOCSDIR%%/html/index.html
90
%%DOCSDIR%%/html/index.html
91
%%DOCSDIR%%/html/mini_Distribution-Haddock.html
69
%%DOCSDIR%%/html/minus.gif
92
%%DOCSDIR%%/html/minus.gif
70
%%DOCSDIR%%/html/plus.gif
93
%%DOCSDIR%%/html/plus.gif
71
%%DOCSDIR%%/html/src/Distribution-Haddock.html
94
%%DOCSDIR%%/html/src/Distribution-Haddock.html
95
%%DOCSDIR%%/html/src/Haddock-DocName.html
72
%%DOCSDIR%%/html/src/Haddock-Exception.html
96
%%DOCSDIR%%/html/src/Haddock-Exception.html
97
%%DOCSDIR%%/html/src/Haddock-GHC-Utils.html
73
%%DOCSDIR%%/html/src/Haddock-InterfaceFile.html
98
%%DOCSDIR%%/html/src/Haddock-InterfaceFile.html
74
%%DOCSDIR%%/html/src/Haddock-Types.html
99
%%DOCSDIR%%/html/src/Haddock-Types.html
100
%%DOCSDIR%%/html/src/Haddock-Utils.html
75
%%DOCSDIR%%/html/src/hscolour.css
101
%%DOCSDIR%%/html/src/hscolour.css
76
%%DOCSDIR%%/users_guide/ch01s03.html
102
%%DOCSDIR%%/users_guide/ch01s03.html
77
%%DOCSDIR%%/users_guide/ch03s02.html
103
%%DOCSDIR%%/users_guide/ch03s02.html

Return to bug 137061