cabal-install-1.18.1.0.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.3.6.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="+noprefs"
  14. RDEPEND=""
  15. DEPEND="${RDEPEND}
  16. >=dev-haskell/cabal-1.18.0 <dev-haskell/cabal-1.19
  17. >=dev-haskell/http-4000.0.8 <dev-haskell/http-4001
  18. >=dev-haskell/mtl-2.0 <dev-haskell/mtl-3
  19. >=dev-haskell/network-1 <dev-haskell/network-3
  20. dev-haskell/network-uri
  21. >=dev-haskell/random-1 <dev-haskell/random-1.1
  22. >=dev-haskell/stm-2.0 <dev-haskell/stm-3
  23. >=dev-haskell/zlib-0.5.3 <dev-haskell/zlib-0.6
  24. >=dev-lang/ghc-6.12.1
  25. test? ( dev-haskell/hunit
  26. >=dev-haskell/quickcheck-2.5
  27. dev-haskell/test-framework
  28. dev-haskell/test-framework-hunit
  29. >=dev-haskell/test-framework-quickcheck2-0.3 )
  30. "
  31. src_prepare() {
  32. if use noprefs; then
  33. epatch "${FILESDIR}/${PN}"-0.13.3-nopref.patch
  34. fi
  35. # no chance to link to -threaded on ppc64, alpha and others
  36. # who use UNREG, not only ARM
  37. if ! ghc-supports-threaded-runtime; then
  38. cabal_chdeps '-threaded' ' '
  39. fi
  40. }
  41. src_install() {
  42. haskell-cabal_src_install
  43. dobashcomp "${S}/bash-completion/cabal"
  44. }