cabal-install-1.22.7.0.ebuild 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 bash-completion-r1 eutils haskell-cabal
  7. DESCRIPTION="The command-line interface for Cabal and Hackage"
  8. HOMEPAGE="http://www.haskell.org/cabal/"
  9. SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
  10. LICENSE="BSD"
  11. SLOT="0"
  12. KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
  13. IUSE="+network-uri +noprefs"
  14. RESTRICT=test # missing files
  15. RDEPEND=">=dev-haskell/cabal-1.22.2:= <dev-haskell/cabal-1.23:=
  16. >=dev-haskell/http-4000.2.5:= <dev-haskell/http-4000.3:=
  17. >=dev-haskell/mtl-2.0:= <dev-haskell/mtl-3:=
  18. >=dev-haskell/old-time-1:= <dev-haskell/old-time-1.2:=
  19. >=dev-haskell/random-1:= <dev-haskell/random-1.2:=
  20. >=dev-haskell/stm-2.0:= <dev-haskell/stm-3:=
  21. >=dev-haskell/zlib-0.5.3:= <dev-haskell/zlib-0.7:=
  22. >=dev-lang/ghc-7.4.1:=
  23. network-uri? ( >=dev-haskell/network-2.6:=
  24. >=dev-haskell/network-uri-2.6:= )
  25. !network-uri? ( >=dev-haskell/network-2.4:= <dev-haskell/network-2.6:= )
  26. "
  27. DEPEND="${RDEPEND}
  28. >=dev-haskell/cabal-1.10
  29. test? ( dev-haskell/extensible-exceptions
  30. dev-haskell/hunit
  31. >=dev-haskell/quickcheck-2.5
  32. dev-haskell/regex-posix
  33. dev-haskell/test-framework
  34. dev-haskell/test-framework-hunit
  35. >=dev-haskell/test-framework-quickcheck2-0.3
  36. !network-uri? ( <dev-haskell/network-uri-2.6 ) )
  37. "
  38. src_prepare() {
  39. if use noprefs; then
  40. epatch "${FILESDIR}/${PN}"-0.13.3-nopref.patch
  41. fi
  42. # no chance to link to -threaded on ppc64, alpha and others
  43. # who use UNREG, not only ARM
  44. if ! ghc-supports-threaded-runtime; then
  45. cabal_chdeps '-threaded' ' '
  46. fi
  47. cabal_chdeps \
  48. 'QuickCheck >= 2.1.0.1 && < 2.9' 'QuickCheck >= 2.1.0.1'
  49. }
  50. src_configure() {
  51. haskell-cabal_src_configure \
  52. $(cabal_flag network-uri network-uri)
  53. dobashcomp "${S}/bash-completion/cabal"
  54. }