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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 18:43:19 UTC 2018


    Date: Tuesday, November 6, 2018 @ 18:43:19
  Author: felixonmars
Revision: 401862

archrelease: copy trunk to community-staging-x86_64

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

-----------------+
 PKGBUILD        |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 base-4.12.patch |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

Copied: haskell-fgl/repos/community-staging-x86_64/PKGBUILD (from rev 401861, haskell-fgl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-06 18:43:19 UTC (rev 401862)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=fgl
+pkgname=haskell-fgl
+pkgver=5.6.0.0
+pkgrel=5
+pkgdesc="Martin Erwig's Functional Graph Library"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        base-4.12.patch)
+sha512sums=('0da15994f95d86dd27a6678eb762afb72d87b28176f82505691b5e5215e2c73edfe7ed2f36021254a02a749d5f39f23bf68a8957900fb335e651be5b68ec11f2'
+            '73c2e1aa0e886e585b62eeabb5d95f0f3adce06881ea7dbd8c4cd9c2f46757159a29e39a9bba028278f455a1376583f0dd7a85fd1a7e1f7607e89400e573d6de')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    patch -p1 -i ../base-4.12.patch
+}
+
+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 \
+            -fcontainers042
+    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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}

Copied: haskell-fgl/repos/community-staging-x86_64/base-4.12.patch (from rev 401861, haskell-fgl/trunk/base-4.12.patch)
===================================================================
--- community-staging-x86_64/base-4.12.patch	                        (rev 0)
+++ community-staging-x86_64/base-4.12.patch	2018-11-06 18:43:19 UTC (rev 401862)
@@ -0,0 +1,34 @@
+--- a/Data/Graph/Inductive/Monad.hs
++++ b/Data/Graph/Inductive/Monad.hs
+@@ -1,4 +1,4 @@
+-{-# LANGUAGE MultiParamTypeClasses #-}
++{-# LANGUAGE CPP, MultiParamTypeClasses #-}
+ 
+ -- (c) 2002 by Martin Erwig [see file COPYRIGHT]
+ -- | Monadic Graphs
+@@ -19,6 +19,10 @@ module Data.Graph.Inductive.Monad(
+ 
+ 
+ import Data.Graph.Inductive.Graph
++#if MIN_VERSION_base(4,12,0)
++import Control.Monad.Fail
++import Prelude hiding (fail)
++#endif
+ 
+ {-# ANN module "HLint: ignore Redundant lambda" #-}
+ 
+@@ -39,7 +43,13 @@ import Data.Graph.Inductive.Graph
+ 
+ -- Monadic Graph
+ --
+-class (Monad m) => GraphM m gr where
++class
++#if MIN_VERSION_base(4,12,0)
++ (MonadFail m)
++#else
++ (Monad m)
++#endif
++  => GraphM m gr where
+   {-# MINIMAL emptyM, isEmptyM, matchM, mkGraphM, labNodesM #-}
+ 
+   emptyM     :: m (gr a b)


More information about the arch-commits mailing list