summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}
+}