summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-02-16 10:25:51 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2017-02-16 10:26:39 +0000
commit6686dc7298afba5fc0a8daa6f6f97c400861e4b7 (patch)
treeb06c6bd8dadf4abe6feb8a7e8118de1ca776cd53 /dev-haskell/constraints
parentdev-haskell/th-expand-syns: bump up to 0.4.2.0 (diff)
downloadgentoo-6686dc7298afba5fc0a8daa6f6f97c400861e4b7.tar.gz
gentoo-6686dc7298afba5fc0a8daa6f6f97c400861e4b7.tar.bz2
gentoo-6686dc7298afba5fc0a8daa6f6f97c400861e4b7.zip
dev-haskell/constraints: bump up to 0.8
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-haskell/constraints')
-rw-r--r--dev-haskell/constraints/Manifest1
-rw-r--r--dev-haskell/constraints/constraints-0.4.1.3.ebuild6
-rw-r--r--dev-haskell/constraints/constraints-0.8.ebuild30
-rw-r--r--dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch17
4 files changed, 53 insertions, 1 deletions
diff --git a/dev-haskell/constraints/Manifest b/dev-haskell/constraints/Manifest
index d9a5a0e903dc..dccb0c062164 100644
--- a/dev-haskell/constraints/Manifest
+++ b/dev-haskell/constraints/Manifest
@@ -1 +1,2 @@
DIST constraints-0.4.1.3.tar.gz 7311 SHA256 dd4353b66c85980363050566a13d17ad0216f072a06f207cb8d36530ded67af0 SHA512 0478c69be6a719b83d536aef7733d7383f5400a234829f49146597f89339d3aee46455f3f5001dfc213e07c116276699bf970a657051f3dddb8ab2d9f9593836 WHIRLPOOL b780fa13817bf75ec0e7ec8e9df484a7447332b7dd61c2566ed7119256249a81757de80b1836648de00aca3e77d2a04580c35d51cc40405ad0f1a2611e13bad1
+DIST constraints-0.8.tar.gz 12348 SHA256 4cd08765345a151f21a0a4c5ef0a85661f4e53ffe807a623d5502d9ed3ae1588 SHA512 8cd6f16e70657f95f6d9b0824f85e5991d7da85852a1664abf8b99f95ab85456ecda09f3e59577019284358c09b198d298d01ff152acb3086121521ee302e665 WHIRLPOOL 2d51af561daf6f38a36b356fa2b8dd6fbf594343b4e0cccdb114c4f3d7d253547728535788d6c59c3de39e3e7175eaa84ab2b8358cbdc955b1784980503d0411
diff --git a/dev-haskell/constraints/constraints-0.4.1.3.ebuild b/dev-haskell/constraints/constraints-0.4.1.3.ebuild
index f268679a49e9..c645e3be9298 100644
--- a/dev-haskell/constraints/constraints-0.4.1.3.ebuild
+++ b/dev-haskell/constraints/constraints-0.4.1.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -24,3 +24,7 @@ RDEPEND=">=dev-haskell/newtype-0.2:=[profile?] <dev-haskell/newtype-0.3:=[profil
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.10
"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ghc-8.patch
+}
diff --git a/dev-haskell/constraints/constraints-0.8.ebuild b/dev-haskell/constraints/constraints-0.8.ebuild
new file mode 100644
index 000000000000..9794eb6938b8
--- /dev/null
+++ b/dev-haskell/constraints/constraints-0.8.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.7.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Constraint manipulation"
+HOMEPAGE="https://github.com/ekmett/constraints/"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/binary-0.7.3:=[profile?] <dev-haskell/binary-0.9:=[profile?]
+ >=dev-haskell/hashable-1.2:=[profile?] <dev-haskell/hashable-1.3:=[profile?]
+ >=dev-haskell/mtl-2:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
+ >=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.6:=[profile?]
+ >=dev-haskell/transformers-compat-0.4:=[profile?] <dev-haskell/transformers-compat-1:=[profile?]
+ >=dev-lang/ghc-7.8.2:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.18.1.3
+"
diff --git a/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch b/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch
new file mode 100644
index 000000000000..1b2f8169c45d
--- /dev/null
+++ b/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch
@@ -0,0 +1,17 @@
+diff --git a/Data/Constraint.hs b/Data/Constraint.hs
+index 84d67c0..a104f51 100644
+--- a/Data/Constraint.hs
++++ b/Data/Constraint.hs
+@@ -79,3 +79,7 @@ import Data.Data
+ #endif
++#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 707
++import GHC.Exts (Constraint)
++#else
+ import GHC.Prim (Constraint)
++#endif
+
+@@ -375,3 +379,3 @@ instance Class () (b :=> a) where cls = Sub Dict
+ instance Class b a => () :=> Class b a where ins = Sub Dict
+-instance (b :=> a) => () :=> b :=> a where ins = Sub Dict
++instance (b :=> a) => () :=> (b :=> a) where ins = Sub Dict
+