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 /dev-haskell/mtl-compat
parentdev-haskell/cgi: alpha amd64 ppc sparc x86 stable, bug #524790 (diff)
downloadgentoo-8f06aee53381096d4d900f665838892612fe51e2.tar.gz
gentoo-8f06aee53381096d4d900f665838892612fe51e2.tar.bz2
gentoo-8f06aee53381096d4d900f665838892612fe51e2.zip
dev-haskell/mtl-compat: infer flags to pick proper mtl
Package-Manager: portage-2.2.20
Diffstat (limited to 'dev-haskell/mtl-compat')
-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 c674552dde13..86551f3e7a38 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}
+}