diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2015-09-26 15:27:00 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2015-09-26 15:27:00 +0100 |
commit | abd62b5cbd3b0d322f310e6f546479e4b1caafc8 (patch) | |
tree | bbc757f3a3203d6dd8bc8699b7861f55f5136c01 /dev-haskell | |
parent | dev-haskell/aeson: disable USE=developer, bug #561100 (diff) | |
download | gentoo-abd62b5cbd3b0d322f310e6f546479e4b1caafc8.tar.gz gentoo-abd62b5cbd3b0d322f310e6f546479e4b1caafc8.tar.bz2 gentoo-abd62b5cbd3b0d322f310e6f546479e4b1caafc8.zip |
dev-haskell/transformers-compat: derive transformers flag, bug #560974
Bug: https://bugs.gentoo.org/show_bug.cgi?id=560974
Package-Manager: portage-2.2.22
Diffstat (limited to 'dev-haskell')
-rw-r--r-- | dev-haskell/transformers-compat/transformers-compat-0.4.0.4.ebuild | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/dev-haskell/transformers-compat/transformers-compat-0.4.0.4.ebuild b/dev-haskell/transformers-compat/transformers-compat-0.4.0.4.ebuild index ae1319ecf998..483ff7a4791a 100644 --- a/dev-haskell/transformers-compat/transformers-compat-0.4.0.4.ebuild +++ b/dev-haskell/transformers-compat/transformers-compat-0.4.0.4.ebuild @@ -17,10 +17,10 @@ SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" LICENSE="BSD" SLOT="0/${PV}" KEYWORDS="alpha amd64 ppc ~ppc64 sparc x86" -IUSE="+three" +IUSE="" RDEPEND=">=dev-lang/ghc-7.4.1:= - three? ( >=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.2:=[profile?] ) + >=dev-haskell/mtl-2.1:=[profile?] >=dev-haskell/transformers-0.3:=[profile?] <dev-haskell/transformers-0.5:=[profile?] " DEPEND="${RDEPEND} @@ -28,8 +28,16 @@ DEPEND="${RDEPEND} " src_configure() { + local tf_arg=() + + has_version '=dev-haskell/transformers-0.3*' && \ + tf_arg+=(--flag=three) + + has_version '=dev-haskell/transformers-0.4*' && \ + tf_arg+=(--flag=-three) + haskell-cabal_src_configure \ --flag=mtl \ - $(cabal_flag three three) \ - --flag=-two + --flag=-two \ + ${tf_arg[@]} } |