summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2015-09-20 14:57:22 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2015-09-20 19:50:17 +0100
commit8f06aee53381096d4d900f665838892612fe51e2 (patch)
tree83d96bb91b90f96faa3abc9194fcc83e54f6bbb4
parent8fd2089057ff923e95a776760cfb804402c3914d (diff)
downloadgentoo-8f06aee53381096d4d900f665838892612fe51e2.tar.gz
gentoo-8f06aee53381096d4d900f665838892612fe51e2.tar.xz
dev-haskell/mtl-compat: infer flags to pick proper mtl
Package-Manager: portage-2.2.20
-rw-r--r--dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild b/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild
index c674552dde1..86551f3e7a3 100644
--- a/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild
+++ b/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild
@@ -25,3 +25,17 @@ RDEPEND=">=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.8
"
+
+src_configure() {
+ local mtl_arg=()
+
+ has_version '>=dev-haskell/mtl-2.0.1' && \
+ has_version '<dev-haskell/mtl-2.2' && \
+ mtl_arg+=(--flag=two-point-one)
+ has_version '>=dev-haskell/mtl-2.2.0.1' && \
+ has_version '<dev-haskell/mtl-2.2.1' && \
+ mtl_arg+=(--flag=two-point-two)
+
+ haskell-cabal_src_configure \
+ ${mtl_arg}
+}