Skip to content

Commit

Permalink
dev-haskell/comonad: unconditionally enable USEs
Browse files Browse the repository at this point in the history
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/739262
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Dec 14, 2020
1 parent 8ccee16 commit 1a7853d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
15 changes: 8 additions & 7 deletions dev-haskell/comonad/comonad-5.0.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

EAPI=7

# ebuild generated by hackport 0.6.1.9999
# ebuild generated by hackport 0.6.6.9999
#hackport: flags: +distributive,+containers

CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
Expand All @@ -15,25 +16,25 @@ SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="+containers +distributive +test-doctests"
IUSE="+test-doctests"

RESTRICT=test # broken on USE=doc

RDEPEND=">=dev-haskell/semigroups-0.16.2:=[profile?] <dev-haskell/semigroups-1:=[profile?]
RDEPEND=">=dev-haskell/distributive-0.2.2:=[profile?] <dev-haskell/distributive-1:=[profile?]
>=dev-haskell/semigroups-0.16.2:=[profile?] <dev-haskell/semigroups-1:=[profile?]
>=dev-haskell/tagged-0.7:=[profile?] <dev-haskell/tagged-1:=[profile?]
>=dev-haskell/transformers-compat-0.3:=[profile?] <dev-haskell/transformers-compat-1:=[profile?]
>=dev-lang/ghc-7.8.2:=
distributive? ( >=dev-haskell/distributive-0.2.2:=[profile?] <dev-haskell/distributive-1:=[profile?] )
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.18.1.3
>=dev-haskell/cabal-doctest-1 <dev-haskell/cabal-doctest-1.1
test? ( test-doctests? ( >=dev-haskell/doctest-0.11.1 <dev-haskell/doctest-0.17 ) )
test? ( test-doctests? ( >=dev-haskell/doctest-0.11.1 <dev-haskell/doctest-0.18 ) )
"

src_configure() {
haskell-cabal_src_configure \
$(cabal_flag containers containers) \
$(cabal_flag distributive distributive) \
--flag=containers \
--flag=distributive \
$(cabal_flag test-doctests test-doctests)
}
18 changes: 1 addition & 17 deletions dev-haskell/comonad/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@
<name>Gentoo Haskell</name>
</maintainer>
<use>
<flag name="test-doctests">
Run the doctests test suite
</flag>
<flag name="containers">
You can disable the use of the `containers` package
using `-f-containers`. Disabing this is an unsupported configuration, but it
may be useful for accelerating builds in sandboxes for expert users.
</flag>
<flag name="distributive">
You can disable the use of the `distributive`
package using `-f-distributive`. Disabling this is an unsupported
configuration, but it may be useful for accelerating builds in sandboxes for
expert users. If disabled we will not supply instances of `Distributive`
</flag>
<flag name="test-doctests">Run the doctests test suite</flag>
</use>
<upstream>
<remote-id type="github">ekmett/comonad</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 1a7853d

Please sign in to comment.