c2hs-0.25.2.ebuild 1004 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. # ebuild generated by hackport 0.4.5.9999
  5. CABAL_FEATURES="bin test-suite"
  6. inherit haskell-cabal
  7. DESCRIPTION="C->Haskell FFI tool that gives some cross-language type safety"
  8. HOMEPAGE="https://github.com/haskell/c2hs"
  9. SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE="regression"
  14. RDEPEND="dev-haskell/dlist:=
  15. >=dev-haskell/language-c-0.4.7:= <dev-haskell/language-c-0.5:=
  16. >=dev-lang/ghc-7.4.1:=
  17. regression? ( >=dev-haskell/shelly-1.0:=
  18. dev-haskell/text:=
  19. >=dev-haskell/yaml-0.8:= )
  20. "
  21. DEPEND="${RDEPEND}
  22. >=dev-haskell/cabal-1.8
  23. test? ( dev-haskell/hunit
  24. dev-haskell/test-framework
  25. dev-haskell/test-framework-hunit
  26. dev-haskell/transformers
  27. !regression? ( >=dev-haskell/shelly-1.0
  28. dev-haskell/text ) )
  29. "
  30. src_configure() {
  31. haskell-cabal_src_configure \
  32. $(cabal_flag regression regression)
  33. }