s3ql-2.14.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python3_4 )
  5. inherit distutils-r1
  6. DESCRIPTION="A full-featured file system for online data storage"
  7. HOMEPAGE="https://bitbucket.org/nikratio/s3ql/"
  8. SRC_URI="https://www.bitbucket.org/nikratio/s3ql/downloads/${P}.tar.bz2"
  9. LICENSE="GPL-3"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="contrib doc test"
  13. RDEPEND=">=dev-db/sqlite-3.7.0:3
  14. dev-python/defusedxml[${PYTHON_USEDEP}]
  15. dev-python/setuptools[${PYTHON_USEDEP}]
  16. >=dev-python/apsw-3.7.0[${PYTHON_USEDEP}]
  17. >=dev-python/dugong-3.4[${PYTHON_USEDEP}]
  18. >=dev-python/llfuse-0.39[${PYTHON_USEDEP}]
  19. dev-python/pycrypto[${PYTHON_USEDEP}]
  20. dev-python/requests[${PYTHON_USEDEP}]
  21. sys-fs/fuse"
  22. DEPEND="${RDEPEND}
  23. test? (
  24. dev-python/pytest[${PYTHON_USEDEP}]
  25. net-misc/rsync[xattr]
  26. )"
  27. RESTRICT="test"
  28. python_test() {
  29. addwrite /dev/fuse
  30. py.test -v tests || die "Tests fail with ${EPYTHON}"
  31. }
  32. python_install_all() {
  33. distutils-r1_python_install_all
  34. if use contrib ; then
  35. exeinto /usr/share/doc/${PF}/contrib
  36. docompress -x /usr/share/doc/${PF}/contrib
  37. doexe contrib/*.{py,sh}
  38. doman contrib/*.1
  39. fi
  40. if use doc ; then
  41. dodoc doc/manual.pdf
  42. dohtml -r doc/html/*
  43. fi
  44. }