summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2008-01-26 20:11:11 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2008-01-26 20:11:11 +0000
commit27b503d2f674167e5b3214ea4eb1052c92f4f73b (patch)
treef1bf82863b5872291b983967dc5a5c336a0f58a9 /dev-haskell
parentFix qa bug #207449 and fix installing docs. (diff)
downloadhistorical-27b503d2f674167e5b3214ea4eb1052c92f4f73b.tar.gz
historical-27b503d2f674167e5b3214ea4eb1052c92f4f73b.tar.bz2
historical-27b503d2f674167e5b3214ea4eb1052c92f4f73b.zip
Add new version and remove old version which had some QA issues.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/gtk2hs/Manifest30
-rw-r--r--dev-haskell/haddock/ChangeLog10
-rw-r--r--dev-haskell/haddock/Manifest32
-rw-r--r--dev-haskell/haddock/files/digest-haddock-0.73
-rw-r--r--dev-haskell/haddock/files/digest-haddock-0.93
-rw-r--r--dev-haskell/haddock/haddock-0.7.ebuild92
-rw-r--r--dev-haskell/haddock/haddock-0.9.ebuild48
7 files changed, 86 insertions, 132 deletions
diff --git a/dev-haskell/gtk2hs/Manifest b/dev-haskell/gtk2hs/Manifest
index 7ca8d0817b3d..8245bfa0d476 100644
--- a/dev-haskell/gtk2hs/Manifest
+++ b/dev-haskell/gtk2hs/Manifest
@@ -13,37 +13,29 @@ AUX gtk2hs-0.9.10-store.patch 678 RMD160 9369b99cfca278e252ea6b5c25ba23bcb53603e
MD5 7f8f0b73ff10730feb4320d63f0e5809 files/gtk2hs-0.9.10-store.patch 678
RMD160 9369b99cfca278e252ea6b5c25ba23bcb53603e8 files/gtk2hs-0.9.10-store.patch 678
SHA256 e47de4d759ff4e68ef9d278ddb5d8db77c463a87ac964578fe929db0ba1cf06f files/gtk2hs-0.9.10-store.patch 678
-DIST gtk2hs-0.9.10.tar.gz 830866 RMD160 2b0a5275b43c0b22588028ba7944622ff08fbbb6 SHA1 7f1632923e18af7cbbd0b6fe566841658960dfd0 SHA256 da99b248f3674acba43bd636d1c67813851290ed11860f7f99a44a882cdea924
DIST gtk2hs-0.9.11.tar.gz 980618 RMD160 c745020329fab493752d9055c4c8bca798b5d3e1 SHA1 6150312809e99ca3bcfc9f1f851d48a5253022ce SHA256 5da4c1fd7f0b66834e2aaf919d243928f63c15411e6289b2f31dfafb50848691
DIST gtk2hs-0.9.12.1.tar.gz 1004661 RMD160 cd658027ed91b9550915e686d546e36b1b371c10 SHA1 a85f8568aa072e0c55da5889b2aabff92b8da3ae SHA256 4278078b786202fc64f86881c2b2517bdd589d5248bff2e9b7e6c1ffd2361f84
DIST gtk2hs-0.9.12.tar.gz 997153 RMD160 bfc3ad81be80fdbbf1694493d93ddf863efbf6d8 SHA1 401638c5abfc357b648e4aa4b234874c116a52bb SHA256 b7427fca5d1958a829b2623715a9b16d4b08d67820df0b46ad32e5bd6e1f44d2
-EBUILD gtk2hs-0.9.10-r1.ebuild 3520 RMD160 2e16253f4538685c03d155020d1f8aba50393ada SHA1 9cb2f0010d2b9fe71aadd2453fb4f1023853df66 SHA256 8dbbd5e1f7ca660bf48003ae8b91c95f7dd51c00451e154e5381e779b503e4bd
-MD5 ae8c9c9a5d94dcf3f7d58fae9b8466a8 gtk2hs-0.9.10-r1.ebuild 3520
-RMD160 2e16253f4538685c03d155020d1f8aba50393ada gtk2hs-0.9.10-r1.ebuild 3520
-SHA256 8dbbd5e1f7ca660bf48003ae8b91c95f7dd51c00451e154e5381e779b503e4bd gtk2hs-0.9.10-r1.ebuild 3520
EBUILD gtk2hs-0.9.11.ebuild 3091 RMD160 8397c203bf7372f564068b7fe8bc78db270f3869 SHA1 5d5624f0936333e32252bd93e6a4bbee0df196fd SHA256 39d1f561adfeab53a6973fcc9a9f6464eb61c0bd3d9622fa8000a607cc7b4f46
MD5 1a3e158eefa76c4803ad44a99de40d0b gtk2hs-0.9.11.ebuild 3091
RMD160 8397c203bf7372f564068b7fe8bc78db270f3869 gtk2hs-0.9.11.ebuild 3091
SHA256 39d1f561adfeab53a6973fcc9a9f6464eb61c0bd3d9622fa8000a607cc7b4f46 gtk2hs-0.9.11.ebuild 3091
-EBUILD gtk2hs-0.9.12.1.ebuild 3091 RMD160 ac27acf51fdf963557986e39952a1c71bc9db3cc SHA1 06b57a6544383932e9f6edbfcbddd6c196a97365 SHA256 745e8b42139f4c7c2f4f9d4fcc441c3818a30b5210f424b89acdf56d7b844a7c
-MD5 33c33d74cb738620fc889c3311b3d785 gtk2hs-0.9.12.1.ebuild 3091
-RMD160 ac27acf51fdf963557986e39952a1c71bc9db3cc gtk2hs-0.9.12.1.ebuild 3091
-SHA256 745e8b42139f4c7c2f4f9d4fcc441c3818a30b5210f424b89acdf56d7b844a7c gtk2hs-0.9.12.1.ebuild 3091
+EBUILD gtk2hs-0.9.12.1.ebuild 3112 RMD160 5c124458a812ff36497d73a12db3941424553333 SHA1 3238d82fad285ec21635a856c629d7b4dcccf129 SHA256 fe78d9bccc1b9b6b9ab4e6b94a00bdaf69bd5418dd75d91342af7779f748daf9
+MD5 17955cd7868c154f28abcffbd3830c3a gtk2hs-0.9.12.1.ebuild 3112
+RMD160 5c124458a812ff36497d73a12db3941424553333 gtk2hs-0.9.12.1.ebuild 3112
+SHA256 fe78d9bccc1b9b6b9ab4e6b94a00bdaf69bd5418dd75d91342af7779f748daf9 gtk2hs-0.9.12.1.ebuild 3112
EBUILD gtk2hs-0.9.12.ebuild 3321 RMD160 396f60d21788a6e8716976843203ae1ce21e7fa8 SHA1 42c5568a9599ed4727d4d1af6cabaf57282effd4 SHA256 a40f4bef73afb7d9b806346f85fc2fbd7caeff8aa505c9edf854239de525b160
MD5 3829a933b36cf282b0344b0700141452 gtk2hs-0.9.12.ebuild 3321
RMD160 396f60d21788a6e8716976843203ae1ce21e7fa8 gtk2hs-0.9.12.ebuild 3321
SHA256 a40f4bef73afb7d9b806346f85fc2fbd7caeff8aa505c9edf854239de525b160 gtk2hs-0.9.12.ebuild 3321
-MISC ChangeLog 5582 RMD160 f54e6a5537e8e1513cc0beae749eb69e5f3a27d7 SHA1 d70ffbedab59094bacb8af70d985466335875ee6 SHA256 aae0fcf159c0ebdd3f0be834930600a8c45dc70496708662eb252196f424f12e
-MD5 800db7c5952c408525389625c1998e1c ChangeLog 5582
-RMD160 f54e6a5537e8e1513cc0beae749eb69e5f3a27d7 ChangeLog 5582
-SHA256 aae0fcf159c0ebdd3f0be834930600a8c45dc70496708662eb252196f424f12e ChangeLog 5582
+MISC ChangeLog 5781 RMD160 8d34dc88acb7edac221ecdb0918828ee791f9520 SHA1 389002a533ada027750d8176665d8ad1f85996a0 SHA256 2d1f20d158e9902f6a458bcadcc6683097dcba5e94ac0efc8e7cf162e91c4892
+MD5 787d48a929adca929c527e02b544aefa ChangeLog 5781
+RMD160 8d34dc88acb7edac221ecdb0918828ee791f9520 ChangeLog 5781
+SHA256 2d1f20d158e9902f6a458bcadcc6683097dcba5e94ac0efc8e7cf162e91c4892 ChangeLog 5781
MISC metadata.xml 223 RMD160 eb1d7f78c4800a9e0b74e5d99b83a17d0eb247be SHA1 3be3a7139f7e71b712959fb7465f73d1bcb6ba07 SHA256 8c4b3cde4b0d254edca1f695296876df4ac96ca844d68e8152cfc5f6dbe39792
MD5 5cf11c08544b065d0144e11273f0000d metadata.xml 223
RMD160 eb1d7f78c4800a9e0b74e5d99b83a17d0eb247be metadata.xml 223
SHA256 8c4b3cde4b0d254edca1f695296876df4ac96ca844d68e8152cfc5f6dbe39792 metadata.xml 223
-MD5 d165e3eb925c10e6c6316aec5b6b7477 files/digest-gtk2hs-0.9.10-r1 241
-RMD160 935c458d76ad82bde6181be1f45d59deb695926d files/digest-gtk2hs-0.9.10-r1 241
-SHA256 501f52c81b4d0072d05c93246175010dc391d7bf6b3e8b36f3d6eeed99a436bd files/digest-gtk2hs-0.9.10-r1 241
MD5 8b3ded610a96da688cb8f673048b7bad files/digest-gtk2hs-0.9.11 241
RMD160 21f2fa5e08ead39b2292fe2a0ca0f74fedbb1fab files/digest-gtk2hs-0.9.11 241
SHA256 7eab83713a72a347386048baa114234bd534649f3922e492185a866a994aa970 files/digest-gtk2hs-0.9.11 241
@@ -56,7 +48,7 @@ SHA256 8f0312288f457afd61ab1f19d6398bc36f6415629ca29f2f295ba9dd7cc44211 files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHk5mRKhnDs22gwa8RAvmwAKDMs/XyoDOpfLlH5dHYGiGEhx6SPwCg7PJw
-BAIif8i1LbkG3i6n3jYIcG0=
-=FGjX
+iD8DBQFHm5SznUVyUObPUL4RAvWXAJ9wkqt+DNqcxNkWzvuA6JkgdAuYLgCfajcX
+esh8DtBjS1a4xmympVI4M8s=
+=sRgI
-----END PGP SIGNATURE-----
diff --git a/dev-haskell/haddock/ChangeLog b/dev-haskell/haddock/ChangeLog
index efd2f5651893..50069d2d2110 100644
--- a/dev-haskell/haddock/ChangeLog
+++ b/dev-haskell/haddock/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-haskell/haddock
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.52 2007/12/13 05:40:31 dcoutts Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.53 2008/01/26 20:11:10 dcoutts Exp $
+
+*haddock-0.9 (26 Jan 2008)
+
+ 26 Jan 2008; Duncan Coutts <dcoutts@gentoo.org> -haddock-0.7.ebuild,
+ +haddock-0.9.ebuild:
+ Add new version and remove old version which had some QA issues.
13 Dec 2007; Duncan Coutts <dcoutts@gentoo.org> haddock-0.8.ebuild:
Updates for upward compatability with cabal-1.2 and ghc-6.8
diff --git a/dev-haskell/haddock/Manifest b/dev-haskell/haddock/Manifest
index c121ec4c5ad6..2ffb223eab31 100644
--- a/dev-haskell/haddock/Manifest
+++ b/dev-haskell/haddock/Manifest
@@ -1,34 +1,34 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-DIST haddock-0.7-src.tar.gz 424745 RMD160 4cd90829970d576e94cb95276c7777d8d37991f0 SHA1 4f5606cfbc8858ab56a5e929dcaa92aafa483f93 SHA256 c33e80106a42b2400c358cb0f293e2e7979ef5dab2dec8c55c72b7a57a9f6217
DIST haddock-0.8-src.tar.gz 162872 RMD160 80b7a582ea91fb36b97675d7ea8a027221a28b8e SHA1 e171d4446ac6fcef526cad4c688892fe587fe90e SHA256 d54078dd9dc75aa589cb05fbe1136c1fb41d4a346e30b71de948425ea7c05a55
-EBUILD haddock-0.7.ebuild 2532 RMD160 2ec55e492def4f10f9133b7301e05b7f68615ce4 SHA1 49a9c653f13a06b1f55e1332b8ee2f60c220712a SHA256 691ac8de3e2f7cb22b9d36be4abaad38420585c2f743aa73e8281982389d4dda
-MD5 83a0f76ba6d15b6715ef3aaad39a3e14 haddock-0.7.ebuild 2532
-RMD160 2ec55e492def4f10f9133b7301e05b7f68615ce4 haddock-0.7.ebuild 2532
-SHA256 691ac8de3e2f7cb22b9d36be4abaad38420585c2f743aa73e8281982389d4dda haddock-0.7.ebuild 2532
+DIST haddock-0.9.tar.gz 163380 RMD160 27685313184e70270d7e4f043c7d671b84acfb23 SHA1 f3c5299b657b170e7a44b66ebd60d3e0947a35aa SHA256 beefd4a6da577978e7a79cabba60970accc5cd48fbb04c424a6b36ace3a9f8d0
EBUILD haddock-0.8.ebuild 1683 RMD160 1f0703226c9cb43ced4e04b0129162910587963c SHA1 4aad1f86d969f568399462533e2b55546d7892fa SHA256 590e99ccf635d60fa3c9d95ba1530bc5dbfd3338cd8896944d10e98f011ef42f
MD5 a1e3d4a9a23e9f51dc9f5fd600104fca haddock-0.8.ebuild 1683
RMD160 1f0703226c9cb43ced4e04b0129162910587963c haddock-0.8.ebuild 1683
SHA256 590e99ccf635d60fa3c9d95ba1530bc5dbfd3338cd8896944d10e98f011ef42f haddock-0.8.ebuild 1683
-MISC ChangeLog 6790 RMD160 4a45d04b16a8dbb7e54a2df96f0e7803c038ccb9 SHA1 050f68281daf3c81d1915777d4ccc1dba0916ddb SHA256 ea25baea285ffb74cfc95706a40b781752346fde05aef7ac19105bfb37a1552e
-MD5 87c1a3bd5f19104441435f04fdf0c758 ChangeLog 6790
-RMD160 4a45d04b16a8dbb7e54a2df96f0e7803c038ccb9 ChangeLog 6790
-SHA256 ea25baea285ffb74cfc95706a40b781752346fde05aef7ac19105bfb37a1552e ChangeLog 6790
+EBUILD haddock-0.9.ebuild 1159 RMD160 7f85bedc85b9ba787227cb2da5d7cb090971a451 SHA1 0a6b800576a2999712b839ce268d0e5d660297af SHA256 7263d689bf8d2961c0b63dc1f52e0a8395f21b0b898ce4fa075d2ad148103363
+MD5 80d5e88bd0369a16b3a476b54d8c12aa haddock-0.9.ebuild 1159
+RMD160 7f85bedc85b9ba787227cb2da5d7cb090971a451 haddock-0.9.ebuild 1159
+SHA256 7263d689bf8d2961c0b63dc1f52e0a8395f21b0b898ce4fa075d2ad148103363 haddock-0.9.ebuild 1159
+MISC ChangeLog 6980 RMD160 826d5bc99fa29ca811ffdf6f6e4a26bd57ec76ce SHA1 56f74c866b24cdea5babe7574265fc519cb330ae SHA256 78b2a9d613e2cedae52a0fc0d0f22a044dbb2c0d8cb02f82f50f805677afc541
+MD5 01319a73168cc349a0fdb300d26ff162 ChangeLog 6980
+RMD160 826d5bc99fa29ca811ffdf6f6e4a26bd57ec76ce ChangeLog 6980
+SHA256 78b2a9d613e2cedae52a0fc0d0f22a044dbb2c0d8cb02f82f50f805677afc541 ChangeLog 6980
MISC metadata.xml 223 RMD160 7783e6057effb8b8f0b79cffe8b557b32c633839 SHA1 7b962c77f2e38479a9d1621ec8d307ca9f761753 SHA256 1d00c8be162a6cb87b3de440b3e63e10b39c12d56e8fbfe592e75aed872b2508
MD5 c694674dcbef799cd4fdb6914683ebff metadata.xml 223
RMD160 7783e6057effb8b8f0b79cffe8b557b32c633839 metadata.xml 223
SHA256 1d00c8be162a6cb87b3de440b3e63e10b39c12d56e8fbfe592e75aed872b2508 metadata.xml 223
-MD5 e386d6d9dde27815e5f6082f1f74d3de files/digest-haddock-0.7 247
-RMD160 9d337c6d5188a416b7c723c1c8a261f2959a2560 files/digest-haddock-0.7 247
-SHA256 21b4d64b16ca5700fb8e0d51fecdbd1f70bd9340edd1094d33a43d907bb385e3 files/digest-haddock-0.7 247
MD5 3b77e187cde3f1ba2901ab9a5e7ef15b files/digest-haddock-0.8 247
RMD160 1a1180d6268b3037ebb4a41866c8b71b2f3b456e files/digest-haddock-0.8 247
SHA256 2719fc0c4edbfad95ce14105f3318f40e9b5aad3a0a9f633843dedfd00a0181f files/digest-haddock-0.8 247
+MD5 3074cc0990263e331df02d3ef6de2259 files/digest-haddock-0.9 235
+RMD160 7d6a0d7ebfe0718020cd5541498144d8d6f19592 files/digest-haddock-0.9 235
+SHA256 1cf6c3a17ff6a27f53e10a112b5adac16d3dce5be5ea25a0a2b8cd66d3452d28 files/digest-haddock-0.9 235
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.7 (GNU/Linux)
+Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHYMXonUVyUObPUL4RAjmLAJ4kiPnhUOhE7sb3scDow2+aI7L92wCdEdQX
-psW+xi6Z8b6ROiLlxrzDYVU=
-=Dzkq
+iD8DBQFHm5PknUVyUObPUL4RApimAJ47eCME7f6/jDnWKsG0EjIqz7wMVwCfRkz1
+E1ryUYP54KATF2SLcBhgfrw=
+=/ETu
-----END PGP SIGNATURE-----
diff --git a/dev-haskell/haddock/files/digest-haddock-0.7 b/dev-haskell/haddock/files/digest-haddock-0.7
deleted file mode 100644
index 74c6f105ecbc..000000000000
--- a/dev-haskell/haddock/files/digest-haddock-0.7
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 759419e78416d5f093190968a4dc18f5 haddock-0.7-src.tar.gz 424745
-RMD160 4cd90829970d576e94cb95276c7777d8d37991f0 haddock-0.7-src.tar.gz 424745
-SHA256 c33e80106a42b2400c358cb0f293e2e7979ef5dab2dec8c55c72b7a57a9f6217 haddock-0.7-src.tar.gz 424745
diff --git a/dev-haskell/haddock/files/digest-haddock-0.9 b/dev-haskell/haddock/files/digest-haddock-0.9
new file mode 100644
index 000000000000..f0ef5f94b2c1
--- /dev/null
+++ b/dev-haskell/haddock/files/digest-haddock-0.9
@@ -0,0 +1,3 @@
+MD5 8ba056279427231fd35c8ca2e690221d haddock-0.9.tar.gz 163380
+RMD160 27685313184e70270d7e4f043c7d671b84acfb23 haddock-0.9.tar.gz 163380
+SHA256 beefd4a6da577978e7a79cabba60970accc5cd48fbb04c424a6b36ace3a9f8d0 haddock-0.9.tar.gz 163380
diff --git a/dev-haskell/haddock/haddock-0.7.ebuild b/dev-haskell/haddock/haddock-0.7.ebuild
deleted file mode 100644
index 9dde0b2ad326..000000000000
--- a/dev-haskell/haddock/haddock-0.7.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-0.7.ebuild,v 1.17 2007/12/13 00:45:33 dcoutts Exp $
-#
-# USE variable summary:
-# doc - Build extra documenation from DocBook sources,
-# in HTML format.
-# java - Build the above docs as PostScript as well.
-
-inherit ghc-package multilib
-IUSE="doc"
-#java use flag disable, bug #107019
-
-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="~alpha amd64 hppa ~ia64 ppc ppc64 sparc x86"
-LICENSE="as-is"
-
-DEPEND="<dev-lang/ghc-6.6
- doc? ( ~app-text/docbook-xml-dtd-4.2
- app-text/docbook-xsl-stylesheets
- >=dev-libs/libxslt-1.1.2
- >=dev-haskell/haddock-0.6-r2 )"
-# java? ( >=dev-java/fop-0.20.5 ) )"
-RDEPEND=""
-
-pkg_setup() {
- if ! has_version dev-lang/ghc; then
- eerror "Due to a bug in the portage dependency resolution, emerge"
- eerror "sometimes tries to merge haddock before a version of ghc"
- eerror "is available on the system. This is usually triggered when"
- eerror "you try to bootstrap ghc on a system with USE=\"doc\" using"
- eerror "the command"
- eerror
- eerror " emerge ghc"
- eerror
- eerror "To resolve this problem, proceed in two steps. First, emerge"
- eerror "haddock (which should first pull in ghc-bin). Second, emerge"
- eerror "ghc again:"
- eerror
- eerror " emerge haddock"
- eerror " emerge ghc"
- die "portage dependency problem"
- fi
-}
-
-src_compile() {
- local myconf
- local mydoc
-
- # initialize build.mk
- echo '# Gentoo changes' > mk/build.mk
- # determine what to do with documentation
- if use doc; then
- mydoc="html"
- #if use java; then
- # mydoc="${mydoc} ps"
- #fi
- else
- mydoc=""
- # needed to prevent haddock from being called
- echo NO_HADDOCK_DOCS=YES >> mk/build.mk
- fi
- echo XMLDocWays="${mydoc}" >> mk/build.mk
-
- econf || die "econf failed"
-
- # using -j1 because -j2 behaved strangely on my machine
- emake -j1 || die "make failed"
-}
-
-src_install() {
- local insttarget
- insttarget="install"
- use doc && insttarget="${insttarget} install-docs"
-
- # the libdir0 setting is needed for amd64, and does not
- # harm for other arches
- emake -j1 ${insttarget} \
- prefix="${D}/usr" \
- datadir="${D}/usr/share/${P}" \
- infodir="${D}/usr/share/info" \
- mandir="${D}/usr/share/man" \
- libdir0="${D}/usr/$(get_libdir)" \
- || die "make install failed"
-
- cd "${S}/haddock"
- dodoc CHANGES README TODO
-}
diff --git a/dev-haskell/haddock/haddock-0.9.ebuild b/dev-haskell/haddock/haddock-0.9.ebuild
new file mode 100644
index 000000000000..bf1f00e6fe40
--- /dev/null
+++ b/dev-haskell/haddock/haddock-0.9.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-0.9.ebuild,v 1.1 2008/01/26 20:11:10 dcoutts Exp $
+
+CABAL_FEATURES="bin"
+inherit haskell-cabal eutils autotools
+
+DESCRIPTION="A documentation tool for Haskell."
+HOMEPAGE="http://haskell.org/haddock/"
+SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+DEPEND=">=dev-lang/ghc-6.4
+ >=dev-haskell/cabal-1.2
+ doc? ( ~app-text/docbook-xml-dtd-4.2
+ app-text/docbook-xsl-stylesheets
+ >=dev-libs/libxslt-1.1.2 )"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ if use doc; then
+ cd "${S}/doc"
+ eautoreconf
+ fi
+}
+
+src_compile () {
+ cabal_src_compile
+ if use doc; then
+ cd "${S}/doc"
+ ./configure --prefix="${D}/usr/" \
+ || die 'error configuring documentation.'
+ emake html || die 'error building documentation.'
+ fi
+}
+
+src_install () {
+ cabal_src_install
+ if use doc; then
+ dohtml -r "${S}/doc/haddock/"* || die "installing docs failed"
+ fi
+ dodoc CHANGES README
+}