From c49c38db65b2e1fa19225239e7b3ff46093a1bfd Mon Sep 17 00:00:00 2001 From: Stephen Date: Sat, 16 Jun 2012 23:52:23 +0000 Subject: [PATCH] Updated haskell-network --- haskell-deepseq/PKGBUILD | 66 ++++++++++------------- haskell-deepseq/haskell-deepseq.install | 8 +-- haskell-mtl/PKGBUILD | 70 ++++++++++--------------- haskell-mtl/haskell-mtl.install | 11 ++-- haskell-network/PKGBUILD | 4 +- haskell-parsec/PKGBUILD | 4 +- haskell-text/PKGBUILD | 68 ++++++++++-------------- haskell-transformers/PKGBUILD | 69 ++++++++++-------------- 8 files changed, 124 insertions(+), 176 deletions(-) diff --git a/haskell-deepseq/PKGBUILD b/haskell-deepseq/PKGBUILD index 4d9dbbb95..827c39923 100644 --- a/haskell-deepseq/PKGBUILD +++ b/haskell-deepseq/PKGBUILD @@ -1,47 +1,35 @@ -# -# Apps Packages for Chakra, part of chakra-project.org -# -# Maintainer: Adrián Chaves Fernández (Gallaecio) - +# Maintainer: Stephen McIntosh +_hkgname=deepseq pkgname=haskell-deepseq -_basename=haskell -_pkgname=deepseq pkgver=1.3.0.0 -ghcver=7.4.1 -pkgrel=1 -pkgdesc="Fully evaluate data structures" -url="http://hackage.haskell.org/package/deepseq" -license=('BSD') +pkgrel=2 +pkgdesc="Deep evaluation of data structures" +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') arch=('i686' 'x86_64') -depends=(ghc=$ghcver) -install=$pkgname.install -source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz) +makedepends=() +depends=('ghc' 'haskell-array') +options=('strip') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install md5sums=('a711fa94f1869074366ac69b53c2fa5b') - build() { - cd $srcdir/$_pkgname-$pkgver - - 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 - runhaskell Setup haddock - runhaskell Setup register --gen-script - runhaskell Setup unregister --gen-script - - sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } package() { - cd $srcdir/$_pkgname-$pkgver - - install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh - install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh - install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries - ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname - - runhaskell Setup copy --destdir=$pkgdir - - # Legal. - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt - rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE + cd ${srcdir}/${_hkgname}-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE } diff --git a/haskell-deepseq/haskell-deepseq.install b/haskell-deepseq/haskell-deepseq.install index df674f2cb..8ba51eac7 100644 --- a/haskell-deepseq/haskell-deepseq.install +++ b/haskell-deepseq/haskell-deepseq.install @@ -1,18 +1,18 @@ -HS_DIR=/usr/share/haskell/haskell-deepseq +HS_DIR=usr/share/haskell/haskell-deepseq post_install() { ${HS_DIR}/register.sh - (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) } pre_upgrade() { ${HS_DIR}/unregister.sh } post_upgrade() { ${HS_DIR}/register.sh - (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) } pre_remove() { ${HS_DIR}/unregister.sh } post_remove() { - (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) } diff --git a/haskell-mtl/PKGBUILD b/haskell-mtl/PKGBUILD index c8e481794..6086931d2 100644 --- a/haskell-mtl/PKGBUILD +++ b/haskell-mtl/PKGBUILD @@ -1,47 +1,35 @@ -# -# Apps Packages for Chakra, part of chakra-project.org -# -# Maintainer: Adrián Chaves Fernández (Gallaecio) - +# Maintainer: Stephen McIntosh +_hkgname=mtl pkgname=haskell-mtl -_basename=haskell -_pkgname=mtl -pkgver=2.0.1.0 -ghcver=7.4.1 -pkgrel=2 -pkgdesc="Monad transformer library" -url="http://hackage.haskell.org/package/mtl" -license=('BSD') +pkgver=2.1.1 +pkgrel=1 +pkgdesc="Monad classes, using functional dependencies" +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') arch=('i686' 'x86_64') -depends=(ghc=$ghcver haskell-transformers) -install=$pkgname.install -source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz) -md5sums=('934fa813625ef7e88a6a96a09815ff95') - +makedepends=() +depends=('ghc' 'haskell-transformers') +options=('strip') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('0654be687f1492a2ff30cf6f3fb7eed0') build() { - cd $srcdir/$_pkgname-$pkgver - - 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 - runhaskell Setup haddock - runhaskell Setup register --gen-script - runhaskell Setup unregister --gen-script - - sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } package() { - cd $srcdir/$_pkgname-$pkgver - - install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh - install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh - install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries - ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname - - runhaskell Setup copy --destdir=$pkgdir - - # Legal. - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt - rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE + cd ${srcdir}/${_hkgname}-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE } diff --git a/haskell-mtl/haskell-mtl.install b/haskell-mtl/haskell-mtl.install index 60659a710..9325811e8 100644 --- a/haskell-mtl/haskell-mtl.install +++ b/haskell-mtl/haskell-mtl.install @@ -1,21 +1,18 @@ -HS_DIR=/usr/share/haskell/haskell-mtl +HS_DIR=usr/share/haskell/haskell-mtl post_install() { ${HS_DIR}/register.sh - (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) } pre_upgrade() { ${HS_DIR}/unregister.sh } post_upgrade() { ${HS_DIR}/register.sh - (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) } pre_remove() { ${HS_DIR}/unregister.sh } post_remove() { - (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index) + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) } -op=$1 -shift -$op $* diff --git a/haskell-network/PKGBUILD b/haskell-network/PKGBUILD index 6d9982bea..2b8ea2024 100644 --- a/haskell-network/PKGBUILD +++ b/haskell-network/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Stephen McIntosh stephenmac7[at]gmail[dot]com _hkgname=network pkgname=haskell-network -pkgver=2.3.0.13 +pkgver=2.3.0.14 pkgrel=1 pkgdesc="Low-level networking interface" url="http://hackage.haskell.org/package/${_hkgname}" license=('custom:BSD3') arch=('i686' 'x86_64') makedepends=() -depends=('ghc' 'haskell-bytestring' 'haskell-parsec' 'haskell-unix') +depends=('ghc' 'haskell-bytestring' 'haskell-parsec') options=('strip') source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) install=${pkgname}.install diff --git a/haskell-parsec/PKGBUILD b/haskell-parsec/PKGBUILD index 80f7847e2..0a4990978 100644 --- a/haskell-parsec/PKGBUILD +++ b/haskell-parsec/PKGBUILD @@ -1,7 +1,7 @@ -# Maintainer: +# Maintainer: Stephen McIntosh _hkgname=parsec pkgname=haskell-parsec -pkgver=3.1.2 +pkgver=3.1.3 pkgrel=2 pkgdesc="Monadic parser combinators" url="http://hackage.haskell.org/package/${_hkgname}" diff --git a/haskell-text/PKGBUILD b/haskell-text/PKGBUILD index ca4e68000..4e2858e69 100644 --- a/haskell-text/PKGBUILD +++ b/haskell-text/PKGBUILD @@ -1,47 +1,35 @@ -# -# Apps Packages for Chakra, part of chakra-project.org -# -# Maintainer: Adrián Chaves Fernández (Gallaecio) - +# Maintainer: Stephen McIntosh +_hkgname=text pkgname=haskell-text -_basename=haskell -_pkgname=text -pkgver=0.11.2.0 -ghcver=7.4.1 +pkgver=0.11.2.2 pkgrel=1 -pkgdesc="An efficient packed Unicode text type" -url="http://hackage.haskell.org/package/$_pkgname" -license=('BSD') +pkgdesc="An efficient packed Unicode text type." +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') arch=('i686' 'x86_64') -depends=(ghc=$ghcver haskell-deepseq) -install=$pkgname.install -source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz) -md5sums=('7a0985e4da1a94e73d03324e82c24b25') - +makedepends=() +depends=('ghc' 'haskell-array' 'haskell-bytestring' 'haskell-deepseq') +options=('strip') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('a0609d6e1b2674aff49e276d46d8111a') build() { - cd $srcdir/$_pkgname-$pkgver - - 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 - runhaskell Setup haddock - runhaskell Setup register --gen-script - runhaskell Setup unregister --gen-script - - sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } package() { - cd $srcdir/$_pkgname-$pkgver - - install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh - install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh - install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries - ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname - - runhaskell Setup copy --destdir=$pkgdir - - # Legal. - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt - rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE + cd ${srcdir}/${_hkgname}-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE } diff --git a/haskell-transformers/PKGBUILD b/haskell-transformers/PKGBUILD index 1f722ba73..de2e29757 100644 --- a/haskell-transformers/PKGBUILD +++ b/haskell-transformers/PKGBUILD @@ -1,48 +1,35 @@ -# -# Apps Packages for Chakra, part of chakra-project.org -# -# Maintainer: Adrián Chaves Fernández (Gallaecio) -# Contributor: Rémy Oudompheng - +# Maintainer: Stephen McIntosh +_hkgname=transformers pkgname=haskell-transformers -_basename=haskell -_pkgname=transformers -pkgver=0.2.2.0 -ghcver=7.4.1 -pkgrel=2 +pkgver=0.3.0.0 +pkgrel=1 pkgdesc="Concrete functor and monad transformers" -url="http://hackage.haskell.org/package/$_pkgname" -license=('BSD') +url="http://hackage.haskell.org/package/${_hkgname}" +license=('custom:BSD3') arch=('i686' 'x86_64') -depends=(ghc=$ghcver) -install=$pkgname.install -source=(http://hackage.haskell.org/packages/archive/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.gz) -md5sums=('3470ac66116900cd1ba84d3744474e49') - +makedepends=() +depends=('ghc') +options=('strip') +source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +install=${pkgname}.install +md5sums=('852dc0b79cc2bcb39136287d3dd385e5') build() { - cd $srcdir/$_pkgname-$pkgver - - 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 - runhaskell Setup haddock - runhaskell Setup register --gen-script - runhaskell Setup unregister --gen-script - - sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } package() { - cd $srcdir/$_pkgname-$pkgver - - install -Dm744 register.sh $pkgdir/usr/share/$_basename/$pkgname/register.sh - install -Dm744 unregister.sh $pkgdir/usr/share/$_basename/$pkgname/unregister.sh - install -dm755 $pkgdir/usr/share/doc/ghc/html/libraries - ln -s /usr/share/doc/$pkgname/html $pkgdir/usr/share/doc/ghc/html/libraries/$_pkgname - - runhaskell Setup copy --destdir=$pkgdir - - # Legal. - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt - rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE + cd ${srcdir}/${_hkgname}-${pkgver} + install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE }