[arch-commits] Commit in haskell-polyparse/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Thu Apr 25 12:54:01 UTC 2019
Date: Thursday, April 25, 2019 @ 12:54:00
Author: felixonmars
Revision: 453830
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 453829, haskell-polyparse/trunk/PKGBUILD)
haskell-polyparse/repos/community-staging-x86_64/base-4.12.patch
(from rev 453829, 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 453829, haskell-polyparse/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-04-25 12:54:00 UTC (rev 453830)
@@ -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.12.1
+pkgrel=5
+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=('2c165495c83874ece2b40326ad459ebe6fad3579c4246d8ae04e30cb5b7e1923b9dae796433cb814da772b099bc8422ce59df8e0857fda88d679ec308db16b85')
+
+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 453829, 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 2019-04-25 12:54:00 UTC (rev 453830)
@@ -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