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
commit4298d066195e9f72a747c8888316fe454ef54c5e (patch)
treec19a2c9d39e7a462cf569bf4ca27ae45c49f5643 /dev-haskell
parentnew haddock version (diff)
downloadhistorical-4298d066195e9f72a747c8888316fe454ef54c5e.tar.gz
historical-4298d066195e9f72a747c8888316fe454ef54c5e.tar.bz2
historical-4298d066195e9f72a747c8888316fe454ef54c5e.zip
new haddock version
Diffstat (limited to 'dev-haskell')
-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
3 files changed, 80 insertions, 2 deletions
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
+}