git-annex-6.20170101.ebuild 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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.1.9999
  5. #hackport: flags: -production,-android,-androidsplice,-testsuite
  6. CABAL_FEATURES=""
  7. inherit haskell-cabal bash-completion-r1
  8. DESCRIPTION="manage files with git, without checking their contents into git"
  9. HOMEPAGE="http://git-annex.branchable.com/"
  10. SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
  11. RESTRICT="test"
  12. LICENSE="GPL-3"
  13. SLOT="0"
  14. KEYWORDS="~amd64 ~x86 ~amd64-linux"
  15. IUSE="+assistant benchmark +concurrentoutput +cryptonite doc +dbus +magicmime +network-uri +pairing s3 +torrentparser +webapp +webdav"
  16. RDEPEND="dev-haskell/aeson:=
  17. dev-haskell/async:=
  18. dev-haskell/bloomfilter:=
  19. dev-haskell/byteable:=
  20. dev-haskell/case-insensitive:=
  21. dev-haskell/crypto-api:=
  22. dev-haskell/data-default:=
  23. dev-haskell/disk-free-space:=
  24. dev-haskell/dlist:=
  25. dev-haskell/edit-distance:=
  26. dev-haskell/esqueleto:=
  27. >=dev-haskell/exceptions-0.6:=
  28. dev-haskell/feed:=
  29. dev-haskell/free:=
  30. dev-haskell/hslogger:=
  31. dev-haskell/http-client:=
  32. dev-haskell/http-conduit:=
  33. dev-haskell/http-types:=
  34. dev-haskell/ifelse:=
  35. dev-haskell/missingh:=
  36. dev-haskell/monad-control:=
  37. dev-haskell/monad-logger:=
  38. >=dev-haskell/mtl-2:=
  39. dev-haskell/old-locale:=
  40. >=dev-haskell/optparse-applicative-0.11.0:=
  41. dev-haskell/persistent:=
  42. dev-haskell/persistent-sqlite:=
  43. dev-haskell/persistent-template:=
  44. >=dev-haskell/quickcheck-2.1:2=
  45. dev-haskell/random:=
  46. dev-haskell/regex-tdfa:=
  47. dev-haskell/resourcet:=
  48. dev-haskell/safesemaphore:=
  49. dev-haskell/sandi:=
  50. dev-haskell/securemem:=
  51. dev-haskell/socks:=
  52. >=dev-haskell/stm-2.3:=
  53. dev-haskell/stm-chans:=
  54. dev-haskell/text:=
  55. dev-haskell/unix-compat:=
  56. dev-haskell/unordered-containers:=
  57. dev-haskell/utf8-string:=
  58. >=dev-haskell/uuid-1.2.6:=
  59. >=dev-lang/ghc-7.8.2:=
  60. assistant? ( dev-haskell/dns:=
  61. dev-haskell/hinotify:=
  62. dev-haskell/mountpoints:=
  63. sys-process/lsof )
  64. benchmark? ( dev-haskell/criterion:= )
  65. concurrentoutput? ( >=dev-haskell/concurrent-output-1.6:= )
  66. cryptonite? ( dev-haskell/cryptonite:= )
  67. !cryptonite? ( >=dev-haskell/cryptohash-0.11.0:= )
  68. dbus? ( >=dev-haskell/dbus-0.10.7:=
  69. >=dev-haskell/fdo-notify-0.3:= )
  70. magicmime? ( dev-haskell/magic:= )
  71. network-uri? ( >=dev-haskell/network-2.6:=
  72. >=dev-haskell/network-uri-2.6:= )
  73. !network-uri? ( >=dev-haskell/network-2.4:= <dev-haskell/network-2.6:= )
  74. pairing? ( dev-haskell/network-info:=
  75. dev-haskell/network-multicast:= )
  76. s3? ( >=dev-haskell/aws-0.9.2:=
  77. dev-haskell/conduit:=
  78. dev-haskell/conduit-extra:= )
  79. torrentparser? ( >=dev-haskell/torrent-10000.0.0:= )
  80. webapp? ( dev-haskell/blaze-builder:=
  81. dev-haskell/clientsession:=
  82. >=dev-haskell/path-pieces-0.1.4:=
  83. >=dev-haskell/shakespeare-2.0.0:=
  84. dev-haskell/wai:=
  85. dev-haskell/wai-extra:=
  86. >=dev-haskell/warp-3.0.0.5:=
  87. >=dev-haskell/warp-tls-1.4:=
  88. >=dev-haskell/yesod-1.2.6:=
  89. >=dev-haskell/yesod-core-1.2.19:=
  90. >=dev-haskell/yesod-default-1.2.0:=
  91. >=dev-haskell/yesod-form-1.3.15:=
  92. >=dev-haskell/yesod-static-1.2.4:= )
  93. webdav? ( >=dev-haskell/dav-1.0:= )
  94. "
  95. # not generated by hackport:
  96. RDEPEND="${RDEPEND}
  97. dev-vcs/git
  98. "
  99. DEPEND="${RDEPEND}
  100. >=dev-haskell/cabal-1.18.1.3
  101. dev-haskell/data-default
  102. dev-haskell/exceptions
  103. dev-haskell/hslogger
  104. dev-haskell/ifelse
  105. dev-haskell/missingh
  106. dev-haskell/unix-compat
  107. "
  108. # not generated by hackport:
  109. DEPEND="${DEPEND}
  110. dev-lang/perl
  111. doc? ( www-apps/ikiwiki net-misc/rsync )
  112. "
  113. PATCHES=(
  114. "${FILESDIR}"/${PN}-6.20160114-QC-2.8.2.patch
  115. "${FILESDIR}"/${PN}-6.20161210-directory-1.3.patch
  116. "${FILESDIR}"/${PN}-6.20170101-crypto-api.patch
  117. )
  118. src_configure() {
  119. haskell-cabal_src_configure \
  120. --flag=-android \
  121. --flag=-androidsplice \
  122. $(cabal_flag assistant assistant) \
  123. $(cabal_flag benchmark benchmark) \
  124. $(cabal_flag concurrentoutput concurrentoutput) \
  125. $(cabal_flag cryptonite cryptonite) \
  126. $(cabal_flag dbus dbus) \
  127. $(cabal_flag magicmime magicmime) \
  128. $(cabal_flag network-uri network-uri) \
  129. $(cabal_flag pairing pairing) \
  130. --flag=-production \
  131. $(cabal_flag s3 s3) \
  132. --flag=-testsuite \
  133. $(cabal_flag torrentparser torrentparser) \
  134. $(cabal_flag webapp webapp) \
  135. $(cabal_flag webdav webdav)
  136. }
  137. src_test() {
  138. if use webapp; then
  139. export GIT_CONFIG=${T}/temp-git-config
  140. git config user.email "git@src_test"
  141. git config user.name "Mr. ${P} The Test"
  142. emake test
  143. fi
  144. }
  145. src_install() {
  146. haskell-cabal_src_install
  147. newbashcomp "${FILESDIR}"/${PN}.bash ${PN}
  148. dodoc CHANGELOG README
  149. if use webapp ; then
  150. doicon "${FILESDIR}"/${PN}.xpm
  151. make_desktop_entry "${PN} webapp" "git-annex" ${PN}.xpm "Office"
  152. fi
  153. }