From 54c15902fe5bcab60d8f82cf3e338e2be62b2530 Mon Sep 17 00:00:00 2001 From: utg Date: Thu, 17 Apr 2014 23:18:28 +0000 Subject: [PATCH] haskell-parsec update to 3.1.5-1 --- haskell-parsec/PKGBUILD | 55 ++++++++++++++++++-------- haskell-parsec/README_(for_Packager) | 58 ++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 16 deletions(-) create mode 100644 haskell-parsec/README_(for_Packager) diff --git a/haskell-parsec/PKGBUILD b/haskell-parsec/PKGBUILD index 8f48223dc..97ebcc70b 100644 --- a/haskell-parsec/PKGBUILD +++ b/haskell-parsec/PKGBUILD @@ -1,23 +1,36 @@ -# Maintainer: Stephen McIntosh +# Maintainer: UtG +# Contributors: H W Tovetjärn (totte) +# Stephen McIntosh +# Thomas Dziedzic +# Vesa Kaihlavirta +# Arch Haskell Team + +## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ## + _hkgname=parsec pkgname=haskell-parsec -pkgver=3.1.4 +pkgver=3.1.5 pkgrel=1 pkgdesc="Monadic parser combinators" url="http://hackage.haskell.org/package/${_hkgname}" license=('custom:BSD3') -arch=('i686' 'x86_64') -makedepends=() -depends=('ghc' 'haskell-mtl' 'haskell-text') -options=('strip') +arch=('x86_64') +depends=('ghc=7.6.3-1' 'haskell-mtl' 'haskell-text') +options=('strip' 'staticlibs') install=${pkgname}.install source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) -md5sums=('22fe2b1ebaad74ae3d00d066c3046314') +md5sums=('00e822decff17a034a68c462d2a3e099') build() { 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 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 @@ -26,11 +39,21 @@ build() { } package() { 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 + 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" + + # Documentation + ln -s "/usr/share/doc/${pkgname}/html" \ + "${pkgdir}/usr/share/doc/ghc/html/libraries/parsec" + + # License + install -D -m644 LICENSE \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + + runhaskell Setup copy --destdir="${pkgdir}" } + diff --git a/haskell-parsec/README_(for_Packager) b/haskell-parsec/README_(for_Packager) new file mode 100644 index 000000000..957033065 --- /dev/null +++ b/haskell-parsec/README_(for_Packager) @@ -0,0 +1,58 @@ +# # # helpful information # # # + +When you update Haskell packages you'll have to update the entire stack to not break it. + +To help you I wrote a simple guide step-by-step. + +## NOTE: it's possible that some new haskell-package has been added to our repository, so before you update the entire stack you need to check it and then proceed + + +> First you have to update these packaes: + +haskell-binary +haskell-bytestring-show +haskell-dataenc +haskell-deepseq +haskell-extensible-exceptions +haskell-html +haskell-mmap +haskell-primitive +haskell-random +haskell-syb +haskell-stm +haskell-terminfo +haskell-transformers +haskell-mtl +haskell-utf8-string +haskell-zlib +haskell-tar + +> Then update one-by-one the following packages: + +haskell-text + +haskell-parsec + +haskell-network + +haskell-http + +haskell-hslogger + +haskell-vector + +haskell-regex-base + +haskell-regex-posix + +haskell-regex-compat + +haskell-hashed-storage + +haskell-haskeline + + +> ...lastly you have to update this: + +haskell-cabal-install +