[arch-commits] Commit in haskell-bytestring-show/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Jun 17 10:31:16 UTC 2021


    Date: Thursday, June 17, 2021 @ 10:31:16
  Author: felixonmars
Revision: 964580

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-bytestring-show/repos/community-staging-x86_64/
  haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD
    (from rev 964579, haskell-bytestring-show/trunk/PKGBUILD)
  haskell-bytestring-show/repos/community-staging-x86_64/ghc9.patch
    (from rev 964579, haskell-bytestring-show/trunk/ghc9.patch)

------------+
 PKGBUILD   |   44 ++++++++++++++++++++++++++++++++++++++++++++
 ghc9.patch |   26 ++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

Copied: haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD (from rev 964579, haskell-bytestring-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-17 10:31:16 UTC (rev 964580)
@@ -0,0 +1,44 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-bytestring-show
+pkgver=0.3.5.6
+pkgrel=29
+pkgdesc="Efficient conversion of values into readable byte strings."
+url="https://hackage.haskell.org/package/bytestring-show"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz"
+        ghc9.patch)
+sha512sums=('f59a041e30ec3b3eb9f971968606685ba5968dafc44d92ed50c9f7f124b891f48fc6612fdfc1a57f702e76e41f70c647e81c1919ab7fee194db9d97ddd73dd10'
+            'cb78ab44527773ddc20565fff66bad6e7453a554cf39b1ab82d24e44699a22087867ad51c6cb64b6d6979323bc46779e6dfc92f8ba7aa6f31b4b44d0923d7b92')
+
+prepare() {
+    cd bytestring-show-$pkgver
+    patch -p1 -i ../ghc9.patch
+    gen-setup
+}
+
+build() {
+    cd "$srcdir"/bytestring-show-${pkgver}
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build $MAKEFLAGS
+    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}/bytestring-show-${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
+    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-bytestring-show/repos/community-staging-x86_64/ghc9.patch (from rev 964579, haskell-bytestring-show/trunk/ghc9.patch)
===================================================================
--- community-staging-x86_64/ghc9.patch	                        (rev 0)
+++ community-staging-x86_64/ghc9.patch	2021-06-17 10:31:16 UTC (rev 964580)
@@ -0,0 +1,26 @@
+diff --git a/Text/Show/ByteString/Integer.hs b/Text/Show/ByteString/Integer.hs
+index e1a30cd..46d5115 100644
+--- a/Text/Show/ByteString/Integer.hs
++++ b/Text/Show/ByteString/Integer.hs
+@@ -19,7 +19,7 @@ import GHC.Base
+ #if   __GLASGOW_HASKELL__ && __GLASGOW_HASKELL__ <  611 && INTEGER_GMP
+ import GHC.Integer.Internals
+ #elif __GLASGOW_HASKELL__ && __GLASGOW_HASKELL__ >= 611 && INTEGER_GMP
+-import GHC.Integer.GMP.Internals
++import GHC.Integer.GMP.Internals hiding (quotRemInteger)
+ #elif __GLASGOW_HASKELL__ && INTEGER_SIMPLE
+ import GHC.Integer.Simple.Internals
+ #endif
+diff --git a/bytestring-show.cabal b/bytestring-show.cabal
+index 0da6800..f37c649 100644
+--- a/bytestring-show.cabal
++++ b/bytestring-show.cabal
+@@ -16,7 +16,7 @@ flag integer-simple
+         description: use with integer-simple build of GHC
+ 
+ library
+-    build-depends: base < 5, binary < 0.8, bytestring >= 0.9 && <= 1, array < 0.6, containers < 0.6
++    build-depends: base < 5, binary < 0.9, bytestring >= 0.9 && <= 1, array < 0.6, containers < 0.7
+ 
+     exposed-modules:
+         Text.Show.ByteString



More information about the arch-commits mailing list