[arch-commits] Commit in haskell-mono-traversable/repos (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Jul 20 14:06:41 UTC 2021
Date: Tuesday, July 20, 2021 @ 14:06:41
Author: felixonmars
Revision: 980087
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-mono-traversable/repos/community-staging-x86_64/
haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD
(from rev 980086, haskell-mono-traversable/trunk/PKGBUILD)
haskell-mono-traversable/repos/community-staging-x86_64/ghc9.patch
(from rev 980086, haskell-mono-traversable/trunk/ghc9.patch)
------------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
ghc9.patch | 31 +++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
Copied: haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD (from rev 980086, haskell-mono-traversable/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-07-20 14:06:41 UTC (rev 980087)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=mono-traversable
+pkgname=haskell-mono-traversable
+pkgver=1.0.15.1
+pkgrel=143
+pkgdesc="Type classes for mapping, folding, and traversing monomorphic containers"
+url="https://github.com/snoyberg/mono-traversable"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hashable' 'haskell-split' 'haskell-unordered-containers'
+ 'haskell-vector' 'haskell-vector-algorithms')
+makedepends=('ghc' 'uusi' 'haskell-hunit' 'haskell-quickcheck' 'haskell-foldl' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+ ghc9.patch)
+sha512sums=('adf1af35b93af0605667d8b033415f318c6dab225499fdd1d9eab349fb1eedca2623c98f9dce83f94ed27db75b6f0aa88027daa748c7b3db05f47f68b505b0c8'
+ '5fcbb4021f14a22198f352b3d223a14e3bd420e6b991d17e76db99aea1a89070ad915fe55f80928181588457013e0e542621c9cf6aa875ef382ac6bb861bcbb2')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ # https://github.com/snoyberg/mono-traversable/issues/192
+ patch -p2 -i ../ghc9.patch
+ sed -i 's/main.hs/Main.hs/;/Spec/d' $_hkgname.cabal
+
+ uusi -d semigroups $_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 --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build $MAKEFLAGS
+ 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
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test --show-details=direct
+}
+
+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-mono-traversable/repos/community-staging-x86_64/ghc9.patch (from rev 980086, haskell-mono-traversable/trunk/ghc9.patch)
===================================================================
--- community-staging-x86_64/ghc9.patch (rev 0)
+++ community-staging-x86_64/ghc9.patch 2021-07-20 14:06:41 UTC (rev 980087)
@@ -0,0 +1,31 @@
+commit 00c4ed6ed6231d30f211cd83062507448b7ffca4
+Author: Felix Yan <felixonmars at archlinux.org>
+Date: Mon Jun 21 06:01:10 2021 +0800
+
+ Fix tests in GHC 9.0
+
+ Implements #192
+
+diff --git a/mono-traversable/test/Spec.hs b/mono-traversable/test/Main.hs
+similarity index 99%
+rename from mono-traversable/test/Spec.hs
+rename to mono-traversable/test/Main.hs
+index e8d2357..befda4c 100644
+--- a/mono-traversable/test/Spec.hs
++++ b/mono-traversable/test/Main.hs
+@@ -6,7 +6,7 @@
+ {-# LANGUAGE ScopedTypeVariables #-}
+ {-# LANGUAGE PatternSynonyms #-}
+
+-module Spec where
++module Main where
+
+ import Data.MonoTraversable
+ import Data.Containers
+diff --git a/mono-traversable/test/main.hs b/mono-traversable/test/main.hs
+deleted file mode 100644
+index a4754a0..0000000
+--- a/mono-traversable/test/main.hs
++++ /dev/null
+@@ -1 +0,0 @@
+-import Spec (main)
More information about the arch-commits
mailing list