darcs-2.12.0.ebuild 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # Copyright 1999-2016 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: +library,+executable,-hpc,-warn-as-error,+pkgconfig,-rts,-static,-optimize,hashed-storage-diff:diff,+http
  6. CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
  7. inherit haskell-cabal
  8. DESCRIPTION="a distributed, interactive, smart revision control system"
  9. HOMEPAGE="http://darcs.net/"
  10. SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
  11. LICENSE="GPL-2"
  12. SLOT="0/${PV}"
  13. KEYWORDS="amd64 x86"
  14. IUSE="+curl +network-uri +terminfo +threaded"
  15. RESTRICT=test # occasionally hangs on directory creation race conditions
  16. RDEPEND=">=dev-haskell/async-2.0.1.4:=[profile?] <dev-haskell/async-2.2:=[profile?]
  17. >=dev-haskell/attoparsec-0.11:=[profile?] <dev-haskell/attoparsec-0.14:=[profile?]
  18. >=dev-haskell/base16-bytestring-0.1:=[profile?] <dev-haskell/base16-bytestring-0.2:=[profile?]
  19. >=dev-haskell/binary-0.5:=[profile?] <dev-haskell/binary-0.9:=[profile?]
  20. >=dev-haskell/cryptohash-0.4:=[profile?] <dev-haskell/cryptohash-0.12:=[profile?]
  21. >=dev-haskell/data-ordlist-0.4:=[profile?] <dev-haskell/data-ordlist-0.5:=[profile?]
  22. >=dev-haskell/fgl-5.5.0.1:=[profile?] <dev-haskell/fgl-5.6:=[profile?]
  23. >=dev-haskell/graphviz-2999.17.0.1:=[profile?] <dev-haskell/graphviz-2999.19:=[profile?]
  24. >=dev-haskell/hashable-1.1.2.5:=[profile?] <dev-haskell/hashable-1.3:=[profile?]
  25. >=dev-haskell/haskeline-0.6.3:=[profile?] <dev-haskell/haskeline-0.8:=[profile?]
  26. >=dev-haskell/html-1.0.1.2:=[profile?] <dev-haskell/html-1.1:=[profile?]
  27. >=dev-haskell/http-4000.2.8:=[profile?] <dev-haskell/http-4000.4:=[profile?]
  28. >=dev-haskell/mmap-0.5:=[profile?] <dev-haskell/mmap-0.6:=[profile?]
  29. >=dev-haskell/mtl-2.1.2:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
  30. >=dev-haskell/old-locale-1.0.0.5:=[profile?] <dev-haskell/old-locale-1.1:=[profile?]
  31. >=dev-haskell/old-time-1.1:=[profile?] <dev-haskell/old-time-1.2:=[profile?]
  32. >=dev-haskell/parsec-3.1:=[profile?] <dev-haskell/parsec-3.2:=[profile?]
  33. >=dev-haskell/random-1.0.1.1:=[profile?] <dev-haskell/random-1.2:=[profile?]
  34. >=dev-haskell/regex-applicative-0.2:=[profile?] <dev-haskell/regex-applicative-0.4:=[profile?]
  35. >=dev-haskell/regex-compat-tdfa-0.95.1:=[profile?] <dev-haskell/regex-compat-tdfa-0.96:=[profile?]
  36. >=dev-haskell/sandi-0.2:=[profile?] <dev-haskell/sandi-0.4:=[profile?]
  37. >=dev-haskell/tar-0.4:=[profile?] <dev-haskell/tar-0.6:=[profile?]
  38. >=dev-haskell/text-1.2.1.3:=[profile?] <dev-haskell/text-1.3:=[profile?]
  39. >=dev-haskell/transformers-compat-0.4:=[profile?] <dev-haskell/transformers-compat-0.6:=[profile?]
  40. >=dev-haskell/unix-compat-0.1.2:=[profile?] <dev-haskell/unix-compat-0.5:=[profile?]
  41. >=dev-haskell/utf8-string-0.3.6:=[profile?] <dev-haskell/utf8-string-1.1:=[profile?]
  42. >=dev-haskell/vector-0.10.0.1:=[profile?] <dev-haskell/vector-0.12:=[profile?]
  43. >=dev-haskell/zip-archive-0.2.3:=[profile?] <dev-haskell/zip-archive-0.4:=[profile?]
  44. >=dev-haskell/zlib-0.5.4.1:=[profile?] <dev-haskell/zlib-0.7.0.0:=[profile?]
  45. >=dev-lang/ghc-7.6.2:=
  46. >=dev-haskell/transformers-0.3:=[profile?] <dev-haskell/transformers-0.6:=[profile?]
  47. curl? ( net-misc/curl )
  48. network-uri? ( >=dev-haskell/network-2.6:=[profile?] <dev-haskell/network-2.7:=[profile?]
  49. >=dev-haskell/network-uri-2.6:=[profile?] <dev-haskell/network-uri-2.7:=[profile?] )
  50. !network-uri? ( >=dev-haskell/network-2.4.1.2:=[profile?] <dev-haskell/network-2.6:=[profile?] )
  51. terminfo? ( >=dev-haskell/terminfo-0.3:=[profile?] <dev-haskell/terminfo-0.5:=[profile?] )
  52. "
  53. DEPEND="${RDEPEND}
  54. >=dev-haskell/cabal-1.16.0
  55. test? ( >=dev-haskell/cmdargs-0.10 <dev-haskell/cmdargs-0.11
  56. >=dev-haskell/findbin-0.0 <dev-haskell/findbin-0.1
  57. >=dev-haskell/hunit-1.2.5.2 <dev-haskell/hunit-1.4
  58. >=dev-haskell/quickcheck-2.6 <dev-haskell/quickcheck-2.9
  59. >=dev-haskell/shelly-1.6.2 <dev-haskell/shelly-1.7
  60. >=dev-haskell/split-0.2.2 <dev-haskell/split-0.3
  61. >=dev-haskell/test-framework-0.4.0 <dev-haskell/test-framework-0.9
  62. >=dev-haskell/test-framework-hunit-0.2.2 <dev-haskell/test-framework-hunit-0.4
  63. >=dev-haskell/test-framework-quickcheck2-0.3 <dev-haskell/test-framework-quickcheck2-0.4 )
  64. curl? ( virtual/pkgconfig )
  65. "
  66. src_configure() {
  67. haskell-cabal_src_configure \
  68. $(cabal_flag curl curl) \
  69. --flag=executable \
  70. --flag=-hpc \
  71. --flag=http \
  72. --flag=library \
  73. $(cabal_flag network-uri network-uri) \
  74. --flag=-optimize \
  75. --flag=pkgconfig \
  76. --flag=-rts \
  77. --flag=-static \
  78. $(cabal_flag terminfo terminfo) \
  79. $(cabal_flag threaded threaded) \
  80. --flag=-warn-as-error
  81. }
  82. src_install() {
  83. haskell-cabal_src_install
  84. # fixup perms in such an an awkward way
  85. mv "${ED}/usr/share/man/man1/darcs.1" "${S}/darcs.1" || die "darcs.1 not found"
  86. doman "${S}/darcs.1" || die "failed to register darcs.1 as a manpage"
  87. }