[arch-commits] Commit in haskell-ranged-sets/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Fri May 18 05:31:04 UTC 2018
Date: Friday, May 18, 2018 @ 05:31:03
Author: felixonmars
Revision: 324149
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-ranged-sets/repos/community-staging-x86_64/
haskell-ranged-sets/repos/community-staging-x86_64/PKGBUILD
(from rev 324148, haskell-ranged-sets/trunk/PKGBUILD)
haskell-ranged-sets/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 324148, haskell-ranged-sets/trunk/ghc-8.4.patch)
---------------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
ghc-8.4.patch | 24 ++++++++++++++++++++++++
2 files changed, 69 insertions(+)
Copied: haskell-ranged-sets/repos/community-staging-x86_64/PKGBUILD (from rev 324148, haskell-ranged-sets/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-18 05:31:03 UTC (rev 324149)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=Ranged-sets
+pkgname=haskell-ranged-sets
+pkgver=0.3.0
+pkgrel=11
+pkgdesc="Ranged sets for Haskell"
+url="http://code.haskell.org/ranged-sets"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hunit' 'haskell-quickcheck')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+ ghc-8.4.patch)
+sha512sums=('4145fcfe12616a044a8152bbe90742c6ea4ff2400bb289c97a490a72910a0f5d7c6f3317bebc559499b4447ddb01434c573baf25afffa8a4b2a92bb2e3c7a4c8'
+ '5d47e5ea4ee9ddc7c48f489714304794d644a3e489230de63bd414965169c6c0e4236162174cba8c89f01f3d322e0c30bc9264a5896f3bf2d894f17a549d991e')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+ cd "${srcdir}/${_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 "${srcdir}/${_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-ranged-sets/repos/community-staging-x86_64/ghc-8.4.patch (from rev 324148, haskell-ranged-sets/trunk/ghc-8.4.patch)
===================================================================
--- community-staging-x86_64/ghc-8.4.patch (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch 2018-05-18 05:31:03 UTC (rev 324149)
@@ -0,0 +1,24 @@
+diff --git a/Data/Ranged/RangedSet.hs.orig b/Data/Ranged/RangedSet.hs
+index eca86ef..922b1d6 100644
+--- a/Data/Ranged/RangedSet.hs.orig
++++ b/Data/Ranged/RangedSet.hs
+@@ -58,7 +58,6 @@ module Data.Ranged.RangedSet (
+
+ import Data.Ranged.Boundaries
+ import Data.Ranged.Ranges
+-import Data.Monoid
+
+ import Data.List
+ import Test.QuickCheck
+@@ -72,8 +71,10 @@ infixl 5 -<=-, -<-, -?-
+ newtype DiscreteOrdered v => RSet v = RSet {rSetRanges :: [Range v]}
+ deriving (Eq, Show)
+
++instance DiscreteOrdered a => Semigroup (RSet a) where
++ (<>) = rSetUnion
++
+ instance DiscreteOrdered a => Monoid (RSet a) where
+- mappend = rSetUnion
+ mempty = rSetEmpty
+
+ -- | Determine if the ranges in the list are both in order and non-overlapping.
More information about the arch-commits
mailing list