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