Dyne Gentoo overlay

semigroupoids-5.1.ebuild 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. # ebuild generated by hackport 0.5.9999
  5. #hackport: flags: +doctests
  6. CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
  7. inherit haskell-cabal
  8. DESCRIPTION="Semigroupoids: Category sans id"
  9. HOMEPAGE="https://github.com/ekmett/semigroupoids"
  10. SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
  11. LICENSE="BSD"
  12. SLOT="0/${PV}"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE="+comonad +containers +contravariant +distributive +tagged"
  15. RDEPEND=">=dev-haskell/base-orphans-0.3:=[profile?] <dev-haskell/base-orphans-1:=[profile?]
  16. >=dev-haskell/bifunctors-5:=[profile?] <dev-haskell/bifunctors-6:=[profile?]
  17. >=dev-haskell/semigroups-0.8.3.1:=[profile?] <dev-haskell/semigroups-1:=[profile?]
  18. >=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.6:=[profile?]
  19. >=dev-haskell/transformers-compat-0.5:=[profile?] <dev-haskell/transformers-compat-0.6:=[profile?]
  20. >=dev-lang/ghc-7.4.1:=
  21. comonad? ( >=dev-haskell/comonad-4.2.6:=[profile?] <dev-haskell/comonad-6:=[profile?] )
  22. contravariant? ( >=dev-haskell/contravariant-0.2.0.1:=[profile?] <dev-haskell/contravariant-2:=[profile?] )
  23. distributive? ( >=dev-haskell/distributive-0.2.2:=[profile?] <dev-haskell/distributive-1:=[profile?] )
  24. tagged? ( >=dev-haskell/tagged-0.7.3:=[profile?] <dev-haskell/tagged-1:=[profile?] )
  25. "
  26. DEPEND="${RDEPEND}
  27. >=dev-haskell/cabal-1.8
  28. test? ( >=dev-haskell/doctest-0.9.1 <dev-haskell/doctest-0.12 )
  29. "
  30. src_prepare() {
  31. default
  32. epatch "${FILESDIR}"/remove-guards-ghc8.patch
  33. }
  34. src_configure() {
  35. haskell-cabal_src_configure \
  36. $(cabal_flag comonad comonad) \
  37. $(cabal_flag containers containers) \
  38. $(cabal_flag contravariant contravariant) \
  39. $(cabal_flag distributive distributive) \
  40. --flag=doctests \
  41. $(cabal_flag tagged tagged)
  42. }