commit: 6acfd7034c095e9132251dfdaf2e94d9354ff97e
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 20 15:04:26 2015 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Sep 20 18:50:23 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6acfd703
dev-haskell/cgi: fix lower bound
Package-Manager: portage-2.2.20
dev-haskell/cgi/cgi-3001.2.2.2.ebuild | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/dev-haskell/cgi/cgi-3001.2.2.2.ebuild
b/dev-haskell/cgi/cgi-3001.2.2.2.ebuild
index f898f9a..08da1dc 100644
--- a/dev-haskell/cgi/cgi-3001.2.2.2.ebuild
+++ b/dev-haskell/cgi/cgi-3001.2.2.2.ebuild
@@ -20,7 +20,7 @@ KEYWORDS="alpha amd64 ppc sparc x86"
IUSE="+network-uri"
RDEPEND="<dev-haskell/exceptions-0.9:=[profile?]
- >=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
+ >=dev-haskell/mtl-2.1.3.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
dev-haskell/mtl-compat:=
>=dev-haskell/multipart-0.1.2:=[profile?]
<dev-haskell/multipart-0.2:=[profile?]
<dev-haskell/old-locale-1.1:=[profile?]
@@ -37,6 +37,12 @@ DEPEND="${RDEPEND}
"
src_configure() {
+ local mtl_arg=()
+
+ has_version '<dev-haskell/mtl-2.2' && \
+ mtl_arg+=(--flag=old-mtl)
+
haskell-cabal_src_configure \
- $(cabal_flag network-uri network-uri)
+ $(cabal_flag network-uri network-uri) \
+ ${mtl_arg}
}