# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 # ebuild generated by hackport 0.5.6.9999 #hackport: flags: -production,-android,-androidsplice,-testsuite CABAL_FEATURES="" inherit haskell-cabal bash-completion-r1 git-r3 DESCRIPTION="manage files with git, without checking their contents into git" HOMEPAGE="http://git-annex.branchable.com/" EGIT_REPO_URI="git://git-annex.branchable.com/" RESTRICT="test" LICENSE="GPL-3" SLOT="0" IUSE="+assistant benchmark +concurrentoutput +dbus doc +magicmime +network-uri +pairing s3 +torrentparser +webapp +webdav" RDEPEND="dev-haskell/aeson:= dev-haskell/async:= dev-haskell/bloomfilter:= dev-haskell/byteable:= dev-haskell/case-insensitive:= dev-haskell/conduit:= >=dev-haskell/connection-0.2.6:= dev-haskell/crypto-api:= dev-haskell/cryptonite:= dev-haskell/data-default:= dev-haskell/disk-free-space:= dev-haskell/dlist:= dev-haskell/edit-distance:= dev-haskell/esqueleto:= >=dev-haskell/exceptions-0.6:= >=dev-haskell/feed-0.3.9:= dev-haskell/free:= dev-haskell/hslogger:= >=dev-haskell/http-client-0.4.31:= dev-haskell/http-client-tls:= >=dev-haskell/http-conduit-2.0:= >=dev-haskell/http-types-0.7:= dev-haskell/ifelse:= dev-haskell/memory:= dev-haskell/monad-control:= dev-haskell/monad-logger:= >=dev-haskell/mtl-2:= dev-haskell/old-locale:= >=dev-haskell/optparse-applicative-0.11.0:= dev-haskell/persistent:= dev-haskell/persistent-sqlite:= dev-haskell/persistent-template:= >=dev-haskell/quickcheck-2.1:2= dev-haskell/random:= dev-haskell/regex-tdfa:= dev-haskell/resourcet:= dev-haskell/safesemaphore:= dev-haskell/sandi:= dev-haskell/securemem:= dev-haskell/socks:= dev-haskell/split:= >=dev-haskell/stm-2.3:= dev-haskell/stm-chans:= dev-haskell/tagsoup:= >=dev-haskell/tasty-0.7:= dev-haskell/tasty-hunit:= dev-haskell/tasty-quickcheck:= dev-haskell/tasty-rerun:= dev-haskell/text:= dev-haskell/unix-compat:= dev-haskell/unordered-containers:= dev-haskell/utf8-string:= >=dev-haskell/uuid-1.2.6:= dev-haskell/vector:= >=dev-lang/ghc-7.8.2:= assistant? ( >=dev-haskell/dns-1.0.0:= dev-haskell/hinotify:= dev-haskell/mountpoints:= ) benchmark? ( dev-haskell/criterion:= ) concurrentoutput? ( >=dev-haskell/concurrent-output-1.6:= ) dbus? ( >=dev-haskell/dbus-0.10.7:= >=dev-haskell/fdo-notify-0.3:= ) magicmime? ( dev-haskell/magic:= ) network-uri? ( >=dev-haskell/network-2.6.3:= >=dev-haskell/network-uri-2.6:= ) !network-uri? ( >=dev-haskell/network-2.6.3:= ) pairing? ( dev-haskell/network-info:= dev-haskell/network-multicast:= ) s3? ( >=dev-haskell/aws-0.9.2:= ) torrentparser? ( >=dev-haskell/torrent-10000.0.0:= ) webapp? ( dev-haskell/blaze-builder:= dev-haskell/clientsession:= >=dev-haskell/path-pieces-0.1.4:= >=dev-haskell/shakespeare-2.0.0:= dev-haskell/wai:= dev-haskell/wai-extra:= >=dev-haskell/warp-3.0.0.5:= >=dev-haskell/warp-tls-1.4:= >=dev-haskell/yesod-1.2.6:= >=dev-haskell/yesod-core-1.2.19:= >=dev-haskell/yesod-form-1.3.15:= >=dev-haskell/yesod-static-1.2.4:= ) webdav? ( >=dev-haskell/dav-1.0:= ) " # not generated by hackport: RDEPEND="${RDEPEND} dev-vcs/git " DEPEND="${RDEPEND} >=dev-haskell/cabal-1.18.1.3 " # not generated by hackport: DEPEND="${DEPEND} dev-lang/perl doc? ( www-apps/ikiwiki net-misc/rsync ) " #PATCHES=( # "${FILESDIR}"/${PN}-6.20160114-QC-2.8.2.patch # "${FILESDIR}"/${PN}-6.20161210-directory-1.3.patch # "${FILESDIR}"/${PN}-6.20170101-crypto-api.patch #) src_configure() { # F: fopen_wr # S: deny # P: /dev/urandom # A: /dev/urandom # R: /dev/urandom # C: ssh -o ControlPersist=yes -V addpredict /dev/urandom haskell-cabal_src_configure \ --flag=-android \ --flag=-androidsplice \ $(cabal_flag assistant assistant) \ $(cabal_flag benchmark benchmark) \ $(cabal_flag concurrentoutput concurrentoutput) \ $(cabal_flag dbus dbus) \ $(cabal_flag magicmime magicmime) \ $(cabal_flag network-uri network-uri) \ $(cabal_flag pairing pairing) \ --flag=-production \ $(cabal_flag s3 s3) \ --flag=-testsuite \ $(cabal_flag torrentparser torrentparser) \ $(cabal_flag webapp webapp) \ $(cabal_flag webdav webdav) } 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 newbashcomp "${FILESDIR}"/${PN}.bash ${PN} dodoc CHANGELOG README if use webapp ; then doicon "${FILESDIR}"/${PN}.xpm make_desktop_entry "${PN} webapp" "git-annex" ${PN}.xpm "Office" fi }