diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2003-05-22 06:50:03 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2003-05-22 06:50:03 +0000 |
commit | 04b4dabbf94bbf52a2e190352b3e38fa12b1691c (patch) | |
tree | 5e567bb02dd5c44775c4222d707da5e17f6259c6 /dev-haskell/haddock | |
parent | new ebuild for haddock (diff) | |
download | gentoo-2-04b4dabbf94bbf52a2e190352b3e38fa12b1691c.tar.gz gentoo-2-04b4dabbf94bbf52a2e190352b3e38fa12b1691c.tar.bz2 gentoo-2-04b4dabbf94bbf52a2e190352b3e38fa12b1691c.zip |
new ebuild for haddock
Diffstat (limited to 'dev-haskell/haddock')
-rw-r--r-- | dev-haskell/haddock/ChangeLog | 12 | ||||
-rw-r--r-- | dev-haskell/haddock/Manifest | 4 | ||||
-rw-r--r-- | dev-haskell/haddock/files/digest-haddock-0.4 | 1 | ||||
-rw-r--r-- | dev-haskell/haddock/haddock-0.4.ebuild | 73 |
4 files changed, 88 insertions, 2 deletions
diff --git a/dev-haskell/haddock/ChangeLog b/dev-haskell/haddock/ChangeLog new file mode 100644 index 000000000000..75634511ec8e --- /dev/null +++ b/dev-haskell/haddock/ChangeLog @@ -0,0 +1,12 @@ +# 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.1 2003/05/22 06:49:31 kosmikus Exp $ + +*haddock-0.4 (21 May 2003) + + 21 May 2003; Andres Loeh <kosmikus@gentoo.org> haddock-0.4.ebuild: + Initial import. An ebuild has been submitted a long time ago + already by Thomas L. Bevan <tom@regex.com.au>. Thanks for that. + Haddock is a documentation tool for Haskell that is used by GHC + itself to document most of its libraries. + diff --git a/dev-haskell/haddock/Manifest b/dev-haskell/haddock/Manifest index 15fb29bd0845..f9877bb02b84 100644 --- a/dev-haskell/haddock/Manifest +++ b/dev-haskell/haddock/Manifest @@ -1,3 +1,3 @@ -MD5 4ba001c5cffebd5522ae6664533d8ef0 haddock-0.4.ebuild 1748 -MD5 02e59176af8082207d2c55a8a28c65de ChangeLog 464 +MD5 59b82fa446f9cecf08a18716d7b84372 haddock-0.4.ebuild 1846 +MD5 392be38df29bf0b5cb8019b297d5cb01 ChangeLog 559 MD5 345c00e86d5388d60c897e487987922a files/digest-haddock-0.4 67 diff --git a/dev-haskell/haddock/files/digest-haddock-0.4 b/dev-haskell/haddock/files/digest-haddock-0.4 new file mode 100644 index 000000000000..01ae36b36df6 --- /dev/null +++ b/dev-haskell/haddock/files/digest-haddock-0.4 @@ -0,0 +1 @@ +MD5 919e38378b91a223cb1e48178f1a85bd haddock-0.4-src.tar.gz 381200 diff --git a/dev-haskell/haddock/haddock-0.4.ebuild b/dev-haskell/haddock/haddock-0.4.ebuild new file mode 100644 index 000000000000..ec9bd0afca40 --- /dev/null +++ b/dev-haskell/haddock/haddock-0.4.ebuild @@ -0,0 +1,73 @@ +# 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.4.ebuild,v 1.1 2003/05/22 06:49:31 kosmikus Exp $ +# +# USE variable summary: +# doc - Build extra documenation from DocBook sources, +# in HTML format. +# tetex - Build the above docs as PostScript as well. + + +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="dev-lang/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="" + +src_compile() { + # unset SGML_CATALOG_FILES because documentation installation + # breaks otherwise ... + 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 +} |