diff options
author | Andres Loeh <kosmikus@gentoo.org> | 2003-12-17 17:56:48 +0000 |
---|---|---|
committer | Andres Loeh <kosmikus@gentoo.org> | 2003-12-17 17:56:48 +0000 |
commit | 4281c868a887911b4292df5acff9eb2216f5c29f (patch) | |
tree | ebb2a6761106d08ec2370ced1e3db63f710f03c4 /dev-haskell/haddock | |
parent | last change should have been -r1 because everyone should upgrade; created now (diff) | |
download | historical-4281c868a887911b4292df5acff9eb2216f5c29f.tar.gz historical-4281c868a887911b4292df5acff9eb2216f5c29f.tar.bz2 historical-4281c868a887911b4292df5acff9eb2216f5c29f.zip |
last change should have been -r1 because everyone should upgrade; created now
Diffstat (limited to 'dev-haskell/haddock')
-rw-r--r-- | dev-haskell/haddock/Manifest | 4 | ||||
-rw-r--r-- | dev-haskell/haddock/files/digest-haddock-0.6-r1 | 1 | ||||
-rw-r--r-- | dev-haskell/haddock/haddock-0.6-r1.ebuild | 77 |
3 files changed, 80 insertions, 2 deletions
diff --git a/dev-haskell/haddock/Manifest b/dev-haskell/haddock/Manifest index ffe6ab06b4bd..abf69ce09ac6 100644 --- a/dev-haskell/haddock/Manifest +++ b/dev-haskell/haddock/Manifest @@ -1,8 +1,8 @@ MD5 259a626193a148c7b93be296843b4b5e haddock-0.4.ebuild 2056 MD5 1558aa1f0fe1bc31fe82e0e10be5d1dd haddock-0.6.ebuild 1977 -MD5 1558aa1f0fe1bc31fe82e0e10be5d1dd haddock-0.6-r1.ebuild 1977 +MD5 f69ee376aac42b8b4d0d015099211b08 haddock-0.6-r1.ebuild 1980 MD5 e5986ca528feeab7b061105cfb1c9935 haddock-0.5.ebuild 1963 -MD5 e63e681071f5f23c765aea106bf5ac9c ChangeLog 1384 +MD5 5b4aa49981749b697f1cd847330f7097 ChangeLog 1384 MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224 MD5 6c35081e22594c96591797459c28da01 files/digest-haddock-0.6-r1 67 MD5 0fe55540bd0531c1ca8da69fb5098d76 files/haddock-0.4-ghc6.patch 6858 diff --git a/dev-haskell/haddock/files/digest-haddock-0.6-r1 b/dev-haskell/haddock/files/digest-haddock-0.6-r1 new file mode 100644 index 000000000000..fc424528e86b --- /dev/null +++ b/dev-haskell/haddock/files/digest-haddock-0.6-r1 @@ -0,0 +1 @@ +MD5 6f15d15a3e4352f77f003fb133b1d9b2 haddock-0.6-src.tar.gz 429708 diff --git a/dev-haskell/haddock/haddock-0.6-r1.ebuild b/dev-haskell/haddock/haddock-0.6-r1.ebuild new file mode 100644 index 000000000000..f0fe92ee8e3e --- /dev/null +++ b/dev-haskell/haddock/haddock-0.6-r1.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-r1.ebuild,v 1.1 2003/12/17 17:56:35 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 "make failed" + + # if documentation has been requested, build documentation ... + if use doc; then + cd ${S}/haddock/doc + emake html \ + datadir="/usr/share/doc/${PF}" \ + || die "emake html failed" + if use tetex; then + emake ps \ + datadir="/usr/share/doc/${PF}" \ + || die "emake ps failed" + fi + fi +} + +src_install() { + local mydoc + + make install \ + prefix="${D}/usr" \ + datadir="${D}/usr/share/${PF}" \ + infodir="${D}/usr/share/info" \ + mandir="${D}/usr/share/man" || die "make install failed" + + 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 +} |