diff options
author | Oliver Braun <obraun@FreeBSD.org> | 2008-02-29 20:35:17 +0000 |
---|---|---|
committer | Oliver Braun <obraun@FreeBSD.org> | 2008-02-29 20:35:17 +0000 |
commit | c51a4b07c96b746b932c1d539236524a51fa02f6 (patch) | |
tree | 11ec58d00086d69e0f4562692da852005b453bb9 /devel/hs-haddock-docs | |
parent | 4dd8af264382151ae4f67bb601a4095eef9d5658 (diff) | |
download | ports-c51a4b07c96b746b932c1d539236524a51fa02f6.tar.gz ports-c51a4b07c96b746b932c1d539236524a51fa02f6.zip |
Notes
Diffstat (limited to 'devel/hs-haddock-docs')
-rw-r--r-- | devel/hs-haddock-docs/Makefile | 70 | ||||
-rw-r--r-- | devel/hs-haddock-docs/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-haddock-docs/pkg-descr | 3 | ||||
-rw-r--r-- | devel/hs-haddock-docs/pkg-message | 13 | ||||
-rw-r--r-- | devel/hs-haddock-docs/pkg-plist | 94 |
5 files changed, 183 insertions, 0 deletions
diff --git a/devel/hs-haddock-docs/Makefile b/devel/hs-haddock-docs/Makefile new file mode 100644 index 000000000000..c0bfb87f3df6 --- /dev/null +++ b/devel/hs-haddock-docs/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: hs-haddock-docs +# Date created: February 22 2008 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= haddock-docs +PORTVERSION= 2.0.0.0 +CATEGORIES= devel haskell +MASTER_SITES= http://www.haskell.org/haddock/dist/ +PKGNAMEPREFIX= hs- +DISTNAME= haddock-${PORTVERSION} + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Documentation for Haddock + +USE_GMAKE= yes +USE_AUTOTOOLS= autoconf:261:env + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + haddock:${PORTSDIR}/devel/hs-haddock \ + HsColour:${PORTSDIR}/print/hs-hscolour + +BUILD_DEPENDS+= ${LOCALBASE}/share/sgml/docbook/dsssl/modular:${PORTSDIR}/textproc/dsssl-docbook-modular \ + docbook<2:${PORTSDIR}/textproc/docbook \ + ${LOCALBASE}/share/sgml/iso8879:${PORTSDIR}/textproc/iso8879 \ + ${LOCALBASE}/share/sgml/docbook/3.1:${PORTSDIR}/textproc/docbook-310 \ + ${LOCALBASE}/share/xsl/docbook/catalog:${PORTSDIR}/textproc/docbook-xsl \ + jade:${PORTSDIR}/textproc/jade \ + xsltproc:${PORTSDIR}/textproc/libxslt + +WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//g} +CONFIGURE_ARGS= --prefix=${PREFIX} + +HSCOLOUR_VERSION= 1.9 +HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} + +CABAL_CMD= runghc Setup.lhs + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +PLIST_SUB= DOCSDIR_REL=${DOCSDIR_REL} + +.SILENT: + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local/share/sgml/catalog||' ${WRKSRC}/doc/configure.ac + +do-configure: + cd ${WRKSRC} && ${CABAL_CMD} configure --ghc ${CONFIGURE_ARGS} + cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABAL_CMD} build && \ + ${CABAL_CMD} haddock --executables --hyperlink-source --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css + cd ${WRKSRC}/doc && \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html + +do-install: + ${MKDIR} ${DOCSDIR}/html && \ + cd ${WRKSRC}/dist/doc/html/haddock && ${CP} -R * ${DOCSDIR}/html + ${MKDIR} ${DOCSDIR}/users_guide && \ + cd ${WRKSRC}/doc/haddock && ${CP} -R * ${DOCSDIR}/users_guide + +post-install: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/devel/hs-haddock-docs/distinfo b/devel/hs-haddock-docs/distinfo new file mode 100644 index 000000000000..a346ce9a8335 --- /dev/null +++ b/devel/hs-haddock-docs/distinfo @@ -0,0 +1,3 @@ +MD5 (haddock-2.0.0.0.tar.gz) = ccd8b4a6f6b4fb084bdad02fbb215ca4 +SHA256 (haddock-2.0.0.0.tar.gz) = a2ea5bdc127bc8b189a8d869f582ec774fea0933e7f5ca89549a6c142b9993df +SIZE (haddock-2.0.0.0.tar.gz) = 95311 diff --git a/devel/hs-haddock-docs/pkg-descr b/devel/hs-haddock-docs/pkg-descr new file mode 100644 index 000000000000..9e43068562b4 --- /dev/null +++ b/devel/hs-haddock-docs/pkg-descr @@ -0,0 +1,3 @@ +User documentation and hyperlinked documentation for the +haddock libraries. This last documentaion is generated by +HsColour and haddock. diff --git a/devel/hs-haddock-docs/pkg-message b/devel/hs-haddock-docs/pkg-message new file mode 100644 index 000000000000..95365a86cc12 --- /dev/null +++ b/devel/hs-haddock-docs/pkg-message @@ -0,0 +1,13 @@ +=================================================================== + + WARNING: if the lang/ghc port doesn't install the hyperlinkable + documentation for its libraries, then haddock can't know about + these. But also in this case haddock can't handle recursive + modules currently, so the lang/ghc port can't install the + hyperlinkable documentation of the HSghc libraries, and then + haddock can't know about these last. + In general haddock detects and reports as an error recursive + modules and emits chatting warnings listing all the identifiers + it couldn't resolve. + +=================================================================== diff --git a/devel/hs-haddock-docs/pkg-plist b/devel/hs-haddock-docs/pkg-plist new file mode 100644 index 000000000000..194fc7a56f7d --- /dev/null +++ b/devel/hs-haddock-docs/pkg-plist @@ -0,0 +1,94 @@ +%%DOCSDIR_REL%%/html/Distribution-Haddock.html +%%DOCSDIR_REL%%/html/doc-index.html +%%DOCSDIR_REL%%/html/haddock-util.js +%%DOCSDIR_REL%%/html/haddock.css +%%DOCSDIR_REL%%/html/haddock.haddock +%%DOCSDIR_REL%%/html/haddock/Haddock-Backends-DevHelp.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Backends-HH.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Backends-HH2.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Backends-HaddockDB.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Backends-Hoogle.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Backends-Html.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Comments.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Exception.html +%%DOCSDIR_REL%%/html/haddock/Haddock-GHC-Typecheck.html +%%DOCSDIR_REL%%/html/haddock/Haddock-GHC-Utils.html +%%DOCSDIR_REL%%/html/haddock/Haddock-GHC.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Interface-AttachInstances.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Interface-Create.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Interface-Rename.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Interface.html +%%DOCSDIR_REL%%/html/haddock/Haddock-InterfaceFile.html +%%DOCSDIR_REL%%/html/haddock/Haddock-ModuleTree.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Options.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Types.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Utils-BlockTable.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Utils-FastMutInt2.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Utils-Html.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Utils.html +%%DOCSDIR_REL%%/html/haddock/Haddock-Version.html +%%DOCSDIR_REL%%/html/haddock/Main.html +%%DOCSDIR_REL%%/html/haddock/Paths_haddock.html +%%DOCSDIR_REL%%/html/haddock/doc-index.html +%%DOCSDIR_REL%%/html/haddock/haddock-util.js +%%DOCSDIR_REL%%/html/haddock/haddock.css +%%DOCSDIR_REL%%/html/haddock/haskell_icon.gif +%%DOCSDIR_REL%%/html/haddock/index.html +%%DOCSDIR_REL%%/html/haddock/minus.gif +%%DOCSDIR_REL%%/html/haddock/plus.gif +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Backends-DevHelp.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Backends-HH.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Backends-HH2.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Backends-HaddockDB.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Backends-Hoogle.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Backends-Html.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Comments.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Exception.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-GHC-Typecheck.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-GHC-Utils.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-GHC.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Interface-AttachInstances.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Interface-Create.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Interface-Rename.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Interface.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-InterfaceFile.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-ModuleTree.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Options.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Types.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Utils-BlockTable.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Utils-FastMutInt2.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Utils-Html.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Utils.html +%%DOCSDIR_REL%%/html/haddock/src/Haddock-Version.html +%%DOCSDIR_REL%%/html/haddock/src/Main.html +%%DOCSDIR_REL%%/html/haddock/src/hscolour.css +%%DOCSDIR_REL%%/html/haskell_icon.gif +%%DOCSDIR_REL%%/html/index.html +%%DOCSDIR_REL%%/html/minus.gif +%%DOCSDIR_REL%%/html/plus.gif +%%DOCSDIR_REL%%/html/src/Distribution-Haddock.html +%%DOCSDIR_REL%%/html/src/Haddock-Exception.html +%%DOCSDIR_REL%%/html/src/Haddock-InterfaceFile.html +%%DOCSDIR_REL%%/html/src/Haddock-Types.html +%%DOCSDIR_REL%%/html/src/hscolour.css +%%DOCSDIR_REL%%/users_guide/ch01s03.html +%%DOCSDIR_REL%%/users_guide/ch03s02.html +%%DOCSDIR_REL%%/users_guide/ch03s03.html +%%DOCSDIR_REL%%/users_guide/ch03s04.html +%%DOCSDIR_REL%%/users_guide/ch03s05.html +%%DOCSDIR_REL%%/users_guide/ch03s08.html +%%DOCSDIR_REL%%/users_guide/fptools.css +%%DOCSDIR_REL%%/users_guide/hyperlinking.html +%%DOCSDIR_REL%%/users_guide/index.html +%%DOCSDIR_REL%%/users_guide/introduction.html +%%DOCSDIR_REL%%/users_guide/invoking.html +%%DOCSDIR_REL%%/users_guide/ix01.html +%%DOCSDIR_REL%%/users_guide/license.html +%%DOCSDIR_REL%%/users_guide/markup.html +%%DOCSDIR_REL%%/users_guide/module-attributes.html +@dirrm %%DOCSDIR_REL%%/users_guide +@dirrm %%DOCSDIR_REL%%/html/src +@dirrm %%DOCSDIR_REL%%/html/haddock/src +@dirrm %%DOCSDIR_REL%%/html/haddock +@dirrm %%DOCSDIR_REL%%/html +@dirrmtry %%DOCSDIR_REL%% |