From 11711de1942a141f28faef695c4c78c8357fbf23 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Mar 2012 00:01:22 +0000 Subject: Mon Mar 5 00:01:22 UTC 2012 --- community/haddock/PKGBUILD | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'community/haddock') 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 +# Maintainer: +# Contributor: Alexander Rødseth # Contributor: Vesa Kaihlavirta # Contributor: Arch Haskell Team + 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: -- cgit v1.2.3-54-g00ecf