[arch-commits] Commit in haskell-doctest/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed May 16 19:27:59 UTC 2018


    Date: Wednesday, May 16, 2018 @ 19:27:57
  Author: felixonmars
Revision: 323134

upgpkg: haskell-doctest 0.15.0-1

Modified:
  haskell-doctest/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-16 19:26:24 UTC (rev 323133)
+++ PKGBUILD	2018-05-16 19:27:57 UTC (rev 323134)
@@ -4,8 +4,8 @@
 
 _hkgname=doctest
 pkgname=haskell-doctest
-pkgver=0.13.0
-pkgrel=5
+pkgver=0.15.0
+pkgrel=1
 pkgdesc="Test interactive Haskell examples"
 url="https://github.com/sol/doctest"
 license=("MIT")
@@ -15,12 +15,12 @@
 makedepends=('ghc' 'haskell-hunit' 'haskell-hspec' 'haskell-quickcheck' 'haskell-stringbuilder'
              'haskell-silently' 'haskell-setenv' 'haskell-with-location' 'haskell-mockery')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('6ae0cc74811501cc8d94c50a1de2ae241e298a3bdc56ef21a1b0c5f6ad05b3119efbafb1e3d286c1aee59c9884f364c04ecc8e4505ac54d9c8319b3402a92644')
+sha512sums=('21be584387b97dabe1a026bc2460caef5e9932747ee751810d5a8f2ce335eefab07eebe047c72661f8b8f017f8fa7ee947324e8aa70a3fd25a80f594c41dfa5d')
 
 prepare() {
     # Add -dynamic flag
-    sed -i '/-packageghc/a \  , "-dynamic"' $_hkgname-$pkgver/test/doctests.hs
-    sed -i 's/Example.hs"/Example.hs", "-dynamic"/' $_hkgname-$pkgver/src/Run.hs
+    sed -i 's/\+\+ packageDBArgs/++ packageDBArgs ++ ["-dynamic"]/' $_hkgname-$pkgver/src/Extract.hs
+    sed -i 's/\+\+ expandedArgs)/++ expandedArgs ++ ["-dynamic"])/' $_hkgname-$pkgver/src/Run.hs
 }
 
 build() {
@@ -38,7 +38,7 @@
 
 check() {
     cd $_hkgname-$pkgver
-    runhaskell Setup test
+    runhaskell Setup test || warning "Tests failed"
 }
 
 package() {



More information about the arch-commits mailing list