summaryrefslogtreecommitdiff
path: root/community/haddock
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-05 00:01:22 +0000
committerroot <root@rshg054.dnsready.net>2012-03-05 00:01:22 +0000
commit11711de1942a141f28faef695c4c78c8357fbf23 (patch)
tree363a8b5d445b8eb1dcee4263b5f06d2fe307678f /community/haddock
parentf0fa42126da9e3eec6b98388b35c67929fa20dae (diff)
Mon Mar 5 00:01:22 UTC 2012
Diffstat (limited to 'community/haddock')
-rw-r--r--community/haddock/PKGBUILD24
1 files changed, 13 insertions, 11 deletions
diff --git a/community/haddock/PKGBUILD b/community/haddock/PKGBUILD
index 92b3bec3e..b7f9b44bc 100644
--- a/community/haddock/PKGBUILD
+++ b/community/haddock/PKGBUILD
@@ -1,25 +1,29 @@
-# $Id: PKGBUILD 59136 2011-11-21 12:20:52Z arodseth $
-# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Maintainer:
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
+
pkgname=haddock
-pkgver=2.9.2
-pkgrel=4
+pkgver=2.10.0
+pkgrel=1
pkgdesc="Tool for generating documentation for Haskell libraries"
-url="http://hackage.haskell.org/package/$pkgname"
+url="http://hackage.haskell.org/package/haddock"
license=('custom:BSD3')
arch=('x86_64' 'i686')
makedepends=('alex' 'happy')
-depends=('ghc' 'haskell-mtl' 'haskell-xhtml>=3000.2' 'haskell-ghc-paths')
-options=(strip)
-install=haddock.install
+depends=('ghc=7.4.1-2' 'haskell-xhtml=3000.2.0.5-2' 'haskell-ghc-paths=0.1.0.8-7') # 'haskell-mtl'
+install=$pkgname.install
source=("http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('04928e132827a1da20ace52babb43e47')
+sha256sums=('d107dba15e8aee5abcb540b818b5dcb8ced98bae7d0714f50192dba26cadb410')
build() {
cd "$srcdir/$pkgname-$pkgver"
+ # These doesn't make haddock work for ghc 7.4.1
#sed -i 's:ghc >= 7.2 && < 7.4:ghc:' haddock.cabal
+ #sed -i 's:base >= 4.3 && < 4.5:base:' haddock.cabal
+ #sed -i 's:#elif __GLASGOW_HASKELL__ == 703:#elif __GLASGOW_HASKELL__ == 704:' src/Haddock/InterfaceFile.hs
+
runhaskell Setup configure -O -p --enable-split-objs --enable-shared --prefix=/usr \
--docdir=/usr/share/doc/"$pkgname" --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
@@ -41,5 +45,3 @@ package() {
rm -f "$pkgdir/usr/share/doc/$pkgname/LICENSE"
mv "$pkgdir/usr/bin/haddock" "$pkgdir/usr/bin/haddock-cabal"
}
-
-# vim:set ts=2 sw=2 et: