blob: 5ab13257f32776a5ea324675182ede8f9a3df38d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git-annex/git-annex-5.20131130.ebuild,v 1.3 2014/02/10 09:01:13 qnikst Exp $
EAPI=5
# ebuild generated by hackport 0.3.4.9999
CABAL_FEATURES="bin"
inherit haskell-cabal
DESCRIPTION="manage files with git, without checking their contents into git"
HOMEPAGE="http://git-annex.branchable.com/"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
RESTRICT="test"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux"
IUSE="android +assistant +cryptohash +dbus +dns doc +feed +inotify +pairing +production +quvi +s3 +tdfa +testsuite +webapp +webdav +xmpp"
# hackport-args: --extra-dep='doc? ( www-apps/ikiwiki )'
RDEPEND="dev-vcs/git
"
DEPEND="${RDEPEND}
dev-haskell/async
dev-haskell/bloomfilter
>=dev-haskell/cabal-1.8
dev-haskell/dataenc
dev-haskell/dlist
dev-haskell/edit-distance
dev-haskell/extensible-exceptions
dev-haskell/hslogger
dev-haskell/http
dev-haskell/ifelse
dev-haskell/json[generic]
dev-haskell/missingh
dev-haskell/monad-control
dev-haskell/monadcatchio-transformers
>=dev-haskell/mtl-2
>=dev-haskell/network-2.0
>=dev-haskell/quickcheck-2.1
dev-haskell/random
dev-haskell/safesemaphore
dev-haskell/sha
dev-haskell/text
dev-haskell/unix-compat
dev-haskell/utf8-string
dev-haskell/uuid
>=dev-lang/ghc-7.4.1
android? ( dev-haskell/data-endian )
quvi? ( dev-haskell/aeson )
assistant? ( >=dev-haskell/stm-2.3
inotify? ( dev-haskell/hinotify ) )
cryptohash? ( >=dev-haskell/cryptohash-0.10.0 )
dbus? ( >=dev-haskell/dbus-0.10.3 )
dns? ( dev-haskell/dns )
doc? ( www-apps/ikiwiki )
feed? ( dev-haskell/feed )
pairing? ( dev-haskell/network-info
dev-haskell/network-multicast )
s3? ( dev-haskell/aeson
dev-haskell/hs3
webapp? ( !webdav? ( dev-haskell/http-types ) ) )
tdfa? ( dev-haskell/regex-tdfa )
testsuite? ( >=dev-haskell/tasty-0.5.1
>=dev-haskell/tasty-hunit-0.4.1
>=dev-haskell/tasty-quickcheck-0.3.1 )
webapp? ( dev-haskell/blaze-builder
dev-haskell/aeson
dev-haskell/case-insensitive
dev-haskell/clientsession
dev-haskell/crypto-api
dev-haskell/data-default
dev-haskell/hamlet
dev-haskell/transformers
dev-haskell/wai
dev-haskell/wai-logger
dev-haskell/warp
dev-haskell/yesod
dev-haskell/yesod-core
dev-haskell/yesod-default
dev-haskell/yesod-form
dev-haskell/yesod-static )
webdav? ( >=dev-haskell/dav-0.3
dev-haskell/http-conduit
dev-haskell/xml-conduit )
xmpp? ( >=dev-haskell/gnutls-0.1.4
dev-haskell/network-protocol-xmpp
dev-haskell/xml-types )
dev-lang/perl
doc? ( www-apps/ikiwiki net-misc/rsync )
"
src_configure() {
haskell-cabal_src_configure \
$(cabal_flag android android) \
$(cabal_flag assistant assistant) \
$(cabal_flag cryptohash cryptohash) \
$(cabal_flag dbus dbus) \
$(cabal_flag dns dns) \
$(cabal_flag feed feed) \
$(cabal_flag inotify inotify) \
$(cabal_flag pairing pairing) \
$(cabal_flag production production) \
$(cabal_flag quvi quvi) \
$(cabal_flag s3 s3) \
$(cabal_flag tdfa tdfa) \
$(cabal_flag testsuite testsuite) \
$(cabal_flag webapp webapp) \
$(cabal_flag webdav webdav) \
$(cabal_flag xmpp xmpp)
}
src_compile() {
haskell-cabal_src_compile
use doc && emake docs
}
src_test() {
if use webapp; then
export GIT_CONFIG=${T}/temp-git-config
git config user.email "git@src_test"
git config user.name "Mr. ${P} The Test"
emake test
fi
}
src_install() {
haskell-cabal_src_install
dosym git-annex /usr/bin/git-annex-shell # standard make install does more, than needed
# install-mans wants ikiwiki. It returns 0 and builds the man pages without ikiwiki.
emake install-mans DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
use doc && emake install-docs DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
mv "${ED}"/usr/share/doc/{${PN},${PF}}
dodoc CHANGELOG README
if use webapp ; then
doicon "${FILESDIR}"/${PN}.xpm
make_desktop_entry "${PN} webapp" "git-annex" ${PN}.xpm "Office"
fi
}
|