ocsync-0.90.4.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-utils
  5. DESCRIPTION="A file synchronizer especially designed for you, the normal user"
  6. HOMEPAGE="http://csync.org/"
  7. SRC_URI="http://download.owncloud.com/download/${P}.tar.bz2"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="doc iconv samba +sftp test"
  12. RESTRICT="test"
  13. RDEPEND="
  14. dev-db/sqlite:3
  15. >=dev-libs/iniparser-3.1:0
  16. net-libs/neon[ssl]
  17. iconv? ( virtual/libiconv )
  18. samba? ( net-fs/samba )
  19. sftp? ( net-libs/libssh )
  20. !net-misc/csync
  21. !>=net-misc/owncloud-client-1.5.1
  22. "
  23. DEPEND="${DEPEND}
  24. app-text/asciidoc
  25. doc? ( app-doc/doxygen )
  26. test? ( dev-libs/check dev-util/cmocka )
  27. "
  28. src_prepare() {
  29. cmake-utils_src_prepare
  30. sed -e "s/__FUNCTION__/__func__/" -i \
  31. src/csync_log.h src/httpbf/src/httpbf.c \
  32. tests/csync_tests/check_csync_log.c || die
  33. # proper docdir
  34. sed -e "s:/doc/ocsync:/doc/${PF}:" \
  35. -i doc/CMakeLists.txt || die
  36. }
  37. src_configure() {
  38. local mycmakeargs=(
  39. $(cmake-utils_use test UNIT_TESTING)
  40. $(cmake-utils_use_find_package doc Doxygen)
  41. $(cmake-utils_use_find_package samba Libsmbclient)
  42. $(cmake-utils_use_find_package sftp LibSSH)
  43. )
  44. cmake-utils_src_configure
  45. }
  46. src_install() {
  47. cmake-utils_src_install
  48. mv "${D}/usr/etc/ocsync" "${D}/etc/"
  49. rm -r "${D}/usr/etc/"
  50. }