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

Felix Yan felixonmars at archlinux.org
Wed Jan 8 20:37:49 UTC 2020


    Date: Wednesday, January 8, 2020 @ 20:37:48
  Author: felixonmars
Revision: 550624

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-polyparse/repos/community-staging-x86_64/
  haskell-polyparse/repos/community-staging-x86_64/PKGBUILD
    (from rev 550623, haskell-polyparse/trunk/PKGBUILD)
  haskell-polyparse/repos/community-staging-x86_64/base-4.12.patch
    (from rev 550623, haskell-polyparse/trunk/base-4.12.patch)

-----------------+
 PKGBUILD        |   38 ++++++++++++++++++++++++++++++++++++++
 base-4.12.patch |   20 ++++++++++++++++++++
 2 files changed, 58 insertions(+)

Copied: haskell-polyparse/repos/community-staging-x86_64/PKGBUILD (from rev 550623, haskell-polyparse/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-01-08 20:37:48 UTC (rev 550624)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=polyparse
+pkgname=haskell-polyparse
+pkgver=1.13
+pkgrel=1
+pkgdesc="A variety of alternative parser combinator libraries."
+url="http://code.haskell.org/~malcolm/polyparse/"
+license=("LGPL")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('3b66a73f97d6b5b6628193f87cae1ae1a68d63df0058532b2ac9a62af82dabe28e15fe1464075a2f436e70a7d20b57e72fdd7831f8b11035ff8117becb08d18e')
+
+build() {
+    cd $_hkgname-$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
+    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 $_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
+    runhaskell Setup copy --destdir="$pkgdir"
+    install -D -m644 "COPYRIGHT" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYRIGHT"
+}

Copied: haskell-polyparse/repos/community-staging-x86_64/base-4.12.patch (from rev 550623, haskell-polyparse/trunk/base-4.12.patch)
===================================================================
--- community-staging-x86_64/base-4.12.patch	                        (rev 0)
+++ community-staging-x86_64/base-4.12.patch	2020-01-08 20:37:48 UTC (rev 550624)
@@ -0,0 +1,20 @@
+diff --git a/src/Text/Parse.hs.orig b/src/Text/Parse.hs
+index 8e50ecd..36cec28 100644
+--- a/src/Text/Parse.hs.orig
++++ b/src/Text/Parse.hs
+@@ -1,3 +1,5 @@
++{-# LANGUAGE NoMonadFailDesugaring #-}
++
+ module Text.Parse
+   ( -- * The Parse class is a replacement for the standard Read class. 
+     -- $parser
+diff --git a/src/Text/Parse/ByteString.hs.orig b/src/Text/Parse/ByteString.hs
+index a8a8a9b..5483fe8 100644
+--- a/src/Text/Parse/ByteString.hs.orig
++++ b/src/Text/Parse/ByteString.hs
+@@ -1,3 +1,5 @@
++{-# LANGUAGE NoMonadFailDesugaring #-}
++
+ module Text.Parse.ByteString
+   ( -- * The Parse class is a replacement for the standard Read class. 
+     --   This particular instance reads from ByteString rather than String.



More information about the arch-commits mailing list