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

Felix Yan felixonmars at archlinux.org
Sat Jan 5 07:43:33 UTC 2019


    Date: Saturday, January 5, 2019 @ 07:43:32
  Author: felixonmars
Revision: 420609

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-chell/repos/community-staging-x86_64/
  haskell-chell/repos/community-staging-x86_64/PKGBUILD
    (from rev 420608, haskell-chell/trunk/PKGBUILD)
  haskell-chell/repos/community-staging-x86_64/patience-0.2.patch
    (from rev 420608, haskell-chell/trunk/patience-0.2.patch)

--------------------+
 PKGBUILD           |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 patience-0.2.patch |   40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)

Copied: haskell-chell/repos/community-staging-x86_64/PKGBUILD (from rev 420608, haskell-chell/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-01-05 07:43:32 UTC (rev 420609)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=chell
+pkgname=haskell-chell
+pkgver=0.4.0.2
+pkgrel=14
+pkgdesc="A simple and intuitive library for automated testing"
+url="https://john-millikin.com/software/chell/"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-options' 'haskell-patience' 'haskell-random'
+        )
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+	patience-0.2.patch)
+sha512sums=('050c5818ad2cd954ef79b230de2f03fdfb19e99c8624a24bb7845bb20e3b5d5d427a9623491ffc706c5635f545eb99466bde7a851c4344d11df1a70bfb2bbe22'
+            '96f7e20516c0ce90f0a0cb4c35c9315607cf6c4ba2a7dae4a8619d8532a7a8e9856967799566e133f0400588876dc0d9246d7bcec4e5fa08f2bf9f4074111ed0')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    patch -p2 -i ../patience-0.2.patch
+    sed -i 's/<.*0.8/<1/' $_hkgname.cabal
+}
+
+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 \
+            -fcolor-output
+    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 "license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt"
+}

Copied: haskell-chell/repos/community-staging-x86_64/patience-0.2.patch (from rev 420608, haskell-chell/trunk/patience-0.2.patch)
===================================================================
--- community-staging-x86_64/patience-0.2.patch	                        (rev 0)
+++ community-staging-x86_64/patience-0.2.patch	2019-01-05 07:43:32 UTC (rev 420609)
@@ -0,0 +1,40 @@
+commit d86effe073d75a73e544a58b16371664b8fcaf73
+Author: Felix Yan <felixonmars at archlinux.org>
+Date:   Tue Dec 4 16:21:48 2018 +0800
+
+    Migrade to patience 0.2 (#1)
+
+diff --git a/chell/Test/Chell.hs b/chell/Test/Chell.hs
+index 5a28259..d02e24a 100644
+--- a/chell/Test/Chell.hs
++++ b/chell/Test/Chell.hs
+@@ -123,7 +123,6 @@ import qualified Control.Exception
+ import           Control.Exception (Exception)
+ import           Control.Monad (ap, liftM)
+ import           Control.Monad.IO.Class (MonadIO, liftIO)
+-import qualified Data.Algorithm.Patience as Patience
+ import qualified Data.ByteString.Char8
+ import qualified Data.ByteString.Lazy.Char8
+ import           Data.Foldable (Foldable, foldMap)
+@@ -136,6 +135,8 @@ import qualified Data.Text.Lazy
+ 
+ import qualified Language.Haskell.TH as TH
+ 
++import qualified Patience
++
+ import           Test.Chell.Main (defaultMain)
+ import           Test.Chell.Types
+ 
+diff --git a/chell/chell.cabal b/chell/chell.cabal
+index b2df441..126975c 100644
+--- a/chell/chell.cabal
++++ b/chell/chell.cabal
+@@ -69,7 +69,7 @@ library
+       base >= 4.1 && < 5.0
+     , bytestring >= 0.9
+     , options >= 1.0 && < 2.0
+-    , patience >= 0.1 && < 0.2
++    , patience >= 0.2 && < 0.3
+     , random >= 1.0
+     , template-haskell >= 2.3
+     , text



More information about the arch-commits mailing list