diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2003-11-12 14:47:44 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2003-11-12 14:47:44 +0000 |
commit | 9d7f45a7b5145b70b8d9fb296caaa1aad5323976 (patch) | |
tree | d40a7a3b748547c1c7cad3186e87b65b8cc22518 /dev-haskell/haddock | |
parent | added version 0.6 of haddock (diff) | |
download | gentoo-2-9d7f45a7b5145b70b8d9fb296caaa1aad5323976.tar.gz gentoo-2-9d7f45a7b5145b70b8d9fb296caaa1aad5323976.tar.bz2 gentoo-2-9d7f45a7b5145b70b8d9fb296caaa1aad5323976.zip |
added version 0.6 of haddock
Diffstat (limited to 'dev-haskell/haddock')
-rw-r--r-- | dev-haskell/haddock/ChangeLog | 7 | ||||
-rw-r--r-- | dev-haskell/haddock/Manifest | 4 | ||||
-rw-r--r-- | dev-haskell/haddock/files/digest-haddock-0.6 | 1 | ||||
-rw-r--r-- | dev-haskell/haddock/haddock-0.6.ebuild | 77 |
4 files changed, 86 insertions, 3 deletions
diff --git a/dev-haskell/haddock/ChangeLog b/dev-haskell/haddock/ChangeLog index 71f6fc421361..315bf2a4de6d 100644 --- a/dev-haskell/haddock/ChangeLog +++ b/dev-haskell/haddock/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-haskell/haddock # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.4 2003/07/28 15:28:21 kosmikus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.5 2003/11/12 14:47:36 kosmikus Exp $ + +*haddock-0.6 (12 Nov 2003) + + 12 Nov 2003; Andres Loeh <kosmikus@gentoo.org> haddock-0.6.ebuild: + Version bump. *haddock-0.5 (28 Jul 2003) diff --git a/dev-haskell/haddock/Manifest b/dev-haskell/haddock/Manifest index 83234ddab1fc..3fdcc8e5191c 100644 --- a/dev-haskell/haddock/Manifest +++ b/dev-haskell/haddock/Manifest @@ -1,7 +1,7 @@ MD5 259a626193a148c7b93be296843b4b5e haddock-0.4.ebuild 2056 -MD5 e5986ca528feeab7b061105cfb1c9935 haddock-0.6.ebuild 1963 +MD5 60b669d8a3613246e9eb254b3d0f7d42 haddock-0.6.ebuild 1963 MD5 e5986ca528feeab7b061105cfb1c9935 haddock-0.5.ebuild 1963 -MD5 58bbc908abe9f97e15eb259ec37bd2aa ChangeLog 928 +MD5 56105552b10485458c62a516e6285181 ChangeLog 1042 MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224 MD5 0fe55540bd0531c1ca8da69fb5098d76 files/haddock-0.4-ghc6.patch 6858 MD5 345c00e86d5388d60c897e487987922a files/digest-haddock-0.4 67 diff --git a/dev-haskell/haddock/files/digest-haddock-0.6 b/dev-haskell/haddock/files/digest-haddock-0.6 new file mode 100644 index 000000000000..fc424528e86b --- /dev/null +++ b/dev-haskell/haddock/files/digest-haddock-0.6 @@ -0,0 +1 @@ +MD5 6f15d15a3e4352f77f003fb133b1d9b2 haddock-0.6-src.tar.gz 429708 diff --git a/dev-haskell/haddock/haddock-0.6.ebuild b/dev-haskell/haddock/haddock-0.6.ebuild new file mode 100644 index 000000000000..52f8177786fc --- /dev/null +++ b/dev-haskell/haddock/haddock-0.6.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-0.6.ebuild,v 1.1 2003/11/12 14:47:36 kosmikus Exp $ +# +# USE variable summary: +# doc - Build extra documenation from DocBook sources, +# in HTML format. +# tetex - Build the above docs as PostScript as well. + + +inherit base +IUSE="doc tetex" + +DESCRIPTION="A documentation tool for Haskell" +SRC_URI="http://www.haskell.org/haddock/${P}-src.tar.gz" +HOMEPAGE="http://www.haskell.org/haddock" + +SLOT="0" +KEYWORDS="~x86 ~sparc" +LICENSE="as-is" + +DEPEND="virtual/ghc + doc? ( >=app-text/openjade-1.3.1 + >=app-text/sgml-common-0.6.3 + =app-text/docbook-sgml-dtd-3.1-r1 + >=app-text/docbook-dsssl-stylesheets-1.64 + tetex? ( >=app-text/tetex-1.0.7 + >=app-text/jadetex-3.12 ) )" + +RDEPEND="" + +# extend path to /opt/ghc/bin to guarantee that ghc-bin is found +GHCPATH="${PATH}:/opt/ghc/bin" + +src_compile() { + # unset SGML_CATALOG_FILES because documentation installation + # breaks otherwise ... + PATH="${GHCPATH}" SGML_CATALOG_FILES="" econf + # using make because emake behaved strangely on my machine + make || die + + # if documentation has been requested, build documentation ... + if use doc; then + cd ${S}/haddock/doc + emake html || die + if use tetex; then + emake ps || die + fi + fi +} + +src_install() { + local mydoc + + use doc && mydoc="html" || mydoc="" + use doc && use tetex && mydoc="${mydoc} ps" + + echo SGMLDocWays="${mydoc}" >> mk/build.mk + make install install-docs \ + prefix="${D}/usr" \ + datadir="${D}/usr/share/doc/${PF}" \ + infodir="${D}/usr/share/info" \ + mandir="${D}/usr/share/man" || die + + cd ${S}/haddock + dodoc CHANGES LICENSE README TODO + + if [ "`use doc`" ]; then + cd ${S}/haddock/doc + dohtml -r haddock/* || die + dosym haddock.html /usr/share/doc/${PF}/html/index.html + if [ "`use tetex`" ]; then + docinto ps + dodoc haddock.ps || die + fi + fi +} |