[arch-commits] Commit in haskell-memory/repos (6 files)

Felix Yan felixonmars at archlinux.org
Fri Jun 9 14:56:14 UTC 2017


    Date: Friday, June 9, 2017 @ 14:56:13
  Author: felixonmars
Revision: 235552

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-memory/repos/community-staging-i686/
  haskell-memory/repos/community-staging-i686/PKGBUILD
    (from rev 235551, haskell-memory/trunk/PKGBUILD)
  haskell-memory/repos/community-staging-i686/foundation-0.0.10.patch
    (from rev 235551, haskell-memory/trunk/foundation-0.0.10.patch)
  haskell-memory/repos/community-staging-x86_64/
  haskell-memory/repos/community-staging-x86_64/PKGBUILD
    (from rev 235551, haskell-memory/trunk/PKGBUILD)
  haskell-memory/repos/community-staging-x86_64/foundation-0.0.10.patch
    (from rev 235551, haskell-memory/trunk/foundation-0.0.10.patch)

--------------------------------------------------+
 community-staging-i686/PKGBUILD                  |   49 +++++++++++++++++++++
 community-staging-i686/foundation-0.0.10.patch   |   49 +++++++++++++++++++++
 community-staging-x86_64/PKGBUILD                |   49 +++++++++++++++++++++
 community-staging-x86_64/foundation-0.0.10.patch |   49 +++++++++++++++++++++
 4 files changed, 196 insertions(+)

Copied: haskell-memory/repos/community-staging-i686/PKGBUILD (from rev 235551, haskell-memory/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-06-09 14:56:13 UTC (rev 235552)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=memory
+pkgname=haskell-memory
+pkgver=0.14.5
+pkgrel=3
+pkgdesc="memory and related abstraction stuff"
+url="https://github.com/vincenthz/hs-memory"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc=8.0.1' 'haskell-foundation')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        foundation-0.0.10.patch)
+sha512sums=('ea558144f99d5c8675d53b7eb3f8095e243f1a9db6088c6247e7cbc08bd8301c690f0ef22e790dc3edb44653c2d1284e0f0f5ce869b72e7af753dcffbd53299f'
+            '0fc37f462c692971948547048b3831c6d56a8bce1b291fdb2392f1309dad76e52382022b9f6e8b7432e76050286d708d422e17069350c64ef60cfde94b96710c')
+
+prepare() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    patch -p1 -i ../foundation-0.0.10.patch
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -fsupport_deepseq -fsupport_bytestring -fsupport_foundation
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    runhaskell Setup register --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+    install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.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"
+}

Copied: haskell-memory/repos/community-staging-i686/foundation-0.0.10.patch (from rev 235551, haskell-memory/trunk/foundation-0.0.10.patch)
===================================================================
--- community-staging-i686/foundation-0.0.10.patch	                        (rev 0)
+++ community-staging-i686/foundation-0.0.10.patch	2017-06-09 14:56:13 UTC (rev 235552)
@@ -0,0 +1,49 @@
+From 1cf7f077d9fc2cec97677c3892b38ff74b157f07 Mon Sep 17 00:00:00 2001
+From: Nicolas DI PRIMA <nicolas at di-prima.fr>
+Date: Fri, 9 Jun 2017 14:54:04 +0200
+Subject: [PATCH] bump Foundation dependency minimal version
+
+fix #33
+---
+ Data/ByteArray/Types.hs | 6 +++---
+ memory.cabal            | 2 +-
+ stack.yaml              | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/Data/ByteArray/Types.hs b/Data/ByteArray/Types.hs
+index 0ad2797..87fdffe 100644
+--- a/Data/ByteArray/Types.hs
++++ b/Data/ByteArray/Types.hs
+@@ -55,16 +55,16 @@ uarrayRecastW8 :: F.PrimType ty => F.UArray ty -> F.UArray F.Word8
+ uarrayRecastW8 = F.recast
+ 
+ instance F.PrimType ty => ByteArrayAccess (F.UArray ty) where
+-    length = F.length . uarrayRecastW8
++    length a = let F.CountOf i = F.length (uarrayRecastW8 a) in i
+     withByteArray a f = F.withPtr (uarrayRecastW8 a) (f . castPtr)
+ 
+ instance ByteArrayAccess F.String where
+-    length = F.length
++    length str = let F.CountOf i = F.length str in i
+     withByteArray s f = withByteArray (F.toBytes F.UTF8 s) f
+ 
+ instance (Ord ty, F.PrimType ty) => ByteArray (F.UArray ty) where
+     allocRet sz f = do
+-        mba <- F.new (F.Size sz)
++        mba <- F.new (F.CountOf sz)
+         a   <- F.withMutablePtr mba (f . castPtr)
+         ba  <- F.unsafeFreeze mba
+         return (a, ba)
+diff --git a/memory.cabal b/memory.cabal
+index 759035b..19cc1b4 100644
+--- a/memory.cabal
++++ b/memory.cabal
+@@ -96,7 +96,7 @@ Library
+     Build-depends:   deepseq >= 1.1
+   if flag(support_foundation)
+     CPP-options:     -DWITH_FOUNDATION_SUPPORT
+-    Build-depends:   foundation >= 0.0.8
++    Build-depends:   foundation >= 0.0.10
+ 
+   ghc-options:       -Wall -fwarn-tabs
+   default-language:  Haskell2010

Copied: haskell-memory/repos/community-staging-x86_64/PKGBUILD (from rev 235551, haskell-memory/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-06-09 14:56:13 UTC (rev 235552)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=memory
+pkgname=haskell-memory
+pkgver=0.14.5
+pkgrel=3
+pkgdesc="memory and related abstraction stuff"
+url="https://github.com/vincenthz/hs-memory"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc=8.0.1' 'haskell-foundation')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        foundation-0.0.10.patch)
+sha512sums=('ea558144f99d5c8675d53b7eb3f8095e243f1a9db6088c6247e7cbc08bd8301c690f0ef22e790dc3edb44653c2d1284e0f0f5ce869b72e7af753dcffbd53299f'
+            '0fc37f462c692971948547048b3831c6d56a8bce1b291fdb2392f1309dad76e52382022b9f6e8b7432e76050286d708d422e17069350c64ef60cfde94b96710c')
+
+prepare() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    patch -p1 -i ../foundation-0.0.10.patch
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -fsupport_deepseq -fsupport_bytestring -fsupport_foundation
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    runhaskell Setup register --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+    install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.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"
+}

Copied: haskell-memory/repos/community-staging-x86_64/foundation-0.0.10.patch (from rev 235551, haskell-memory/trunk/foundation-0.0.10.patch)
===================================================================
--- community-staging-x86_64/foundation-0.0.10.patch	                        (rev 0)
+++ community-staging-x86_64/foundation-0.0.10.patch	2017-06-09 14:56:13 UTC (rev 235552)
@@ -0,0 +1,49 @@
+From 1cf7f077d9fc2cec97677c3892b38ff74b157f07 Mon Sep 17 00:00:00 2001
+From: Nicolas DI PRIMA <nicolas at di-prima.fr>
+Date: Fri, 9 Jun 2017 14:54:04 +0200
+Subject: [PATCH] bump Foundation dependency minimal version
+
+fix #33
+---
+ Data/ByteArray/Types.hs | 6 +++---
+ memory.cabal            | 2 +-
+ stack.yaml              | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/Data/ByteArray/Types.hs b/Data/ByteArray/Types.hs
+index 0ad2797..87fdffe 100644
+--- a/Data/ByteArray/Types.hs
++++ b/Data/ByteArray/Types.hs
+@@ -55,16 +55,16 @@ uarrayRecastW8 :: F.PrimType ty => F.UArray ty -> F.UArray F.Word8
+ uarrayRecastW8 = F.recast
+ 
+ instance F.PrimType ty => ByteArrayAccess (F.UArray ty) where
+-    length = F.length . uarrayRecastW8
++    length a = let F.CountOf i = F.length (uarrayRecastW8 a) in i
+     withByteArray a f = F.withPtr (uarrayRecastW8 a) (f . castPtr)
+ 
+ instance ByteArrayAccess F.String where
+-    length = F.length
++    length str = let F.CountOf i = F.length str in i
+     withByteArray s f = withByteArray (F.toBytes F.UTF8 s) f
+ 
+ instance (Ord ty, F.PrimType ty) => ByteArray (F.UArray ty) where
+     allocRet sz f = do
+-        mba <- F.new (F.Size sz)
++        mba <- F.new (F.CountOf sz)
+         a   <- F.withMutablePtr mba (f . castPtr)
+         ba  <- F.unsafeFreeze mba
+         return (a, ba)
+diff --git a/memory.cabal b/memory.cabal
+index 759035b..19cc1b4 100644
+--- a/memory.cabal
++++ b/memory.cabal
+@@ -96,7 +96,7 @@ Library
+     Build-depends:   deepseq >= 1.1
+   if flag(support_foundation)
+     CPP-options:     -DWITH_FOUNDATION_SUPPORT
+-    Build-depends:   foundation >= 0.0.8
++    Build-depends:   foundation >= 0.0.10
+ 
+   ghc-options:       -Wall -fwarn-tabs
+   default-language:  Haskell2010



More information about the arch-commits mailing list