summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2003-07-28 15:28:37 +0000
committerAndres Loeh <kosmikus@gentoo.org>2003-07-28 15:28:37 +0000
commitfe59ff77fa950c92ab73f72fdb28832af034c510 (patch)
tree021115081407e917824a2687ba39c310086dc5cf /dev-haskell/haddock
parentnew haddock version (diff)
downloadgentoo-2-fe59ff77fa950c92ab73f72fdb28832af034c510.tar.gz
gentoo-2-fe59ff77fa950c92ab73f72fdb28832af034c510.tar.bz2
gentoo-2-fe59ff77fa950c92ab73f72fdb28832af034c510.zip
new haddock version
Diffstat (limited to 'dev-haskell/haddock')
-rw-r--r--dev-haskell/haddock/ChangeLog7
-rw-r--r--dev-haskell/haddock/Manifest4
-rw-r--r--dev-haskell/haddock/files/digest-haddock-0.51
-rw-r--r--dev-haskell/haddock/haddock-0.5.ebuild77
4 files changed, 86 insertions, 3 deletions
diff --git a/dev-haskell/haddock/ChangeLog b/dev-haskell/haddock/ChangeLog
index e87fcfb9b398..71f6fc421361 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.3 2003/07/28 13:09:06 kosmikus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.4 2003/07/28 15:28:21 kosmikus Exp $
+
+*haddock-0.5 (28 Jul 2003)
+
+ 28 Jul 2003; Andres Loeh <kosmikus@gentoo.org> haddock-0.5.ebuild:
+ Version bump. Fixes #23291, too.
28 Jul 2003; Andres Loeh <kosmikus@gentoo.org> haddock-0.4.ebuild,
files/haddock-0.4-ghc6.patch:
diff --git a/dev-haskell/haddock/Manifest b/dev-haskell/haddock/Manifest
index f632f210cd40..18a974570f90 100644
--- a/dev-haskell/haddock/Manifest
+++ b/dev-haskell/haddock/Manifest
@@ -1,6 +1,6 @@
MD5 8179a81337753427bf912469bbf42ad0 haddock-0.4.ebuild 2066
-MD5 a841341523365be16f72c9c8ca80642f haddock-0.5.ebuild 1973
-MD5 7f24863d166e7a9ba989af4993991270 ChangeLog 795
+MD5 3fb0953a0b851a5abbf55ccf7f991965 haddock-0.5.ebuild 1973
+MD5 58bbc908abe9f97e15eb259ec37bd2aa ChangeLog 928
MD5 0fe55540bd0531c1ca8da69fb5098d76 files/haddock-0.4-ghc6.patch 6858
MD5 345c00e86d5388d60c897e487987922a files/digest-haddock-0.4 67
MD5 8f05c67dab27a2cac367e6499281ca06 files/digest-haddock-0.5 67
diff --git a/dev-haskell/haddock/files/digest-haddock-0.5 b/dev-haskell/haddock/files/digest-haddock-0.5
new file mode 100644
index 000000000000..2177a42ef0e7
--- /dev/null
+++ b/dev-haskell/haddock/files/digest-haddock-0.5
@@ -0,0 +1 @@
+MD5 c103855f8e1643034b3df02e9b8ae247 haddock-0.5-src.tar.gz 427144
diff --git a/dev-haskell/haddock/haddock-0.5.ebuild b/dev-haskell/haddock/haddock-0.5.ebuild
new file mode 100644
index 000000000000..7684705c677c
--- /dev/null
+++ b/dev-haskell/haddock/haddock-0.5.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.5.ebuild,v 1.1 2003/07/28 15:28:21 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
+}