# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit cmake-utils DESCRIPTION="A file synchronizer especially designed for you, the normal user" HOMEPAGE="http://csync.org/" SRC_URI="https://open.cryptomilk.org/attachments/download/27/${P}.tar.xz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc samba +sftp test" RDEPEND=" >=dev-db/sqlite-3.4 >=dev-libs/iniparser-2.1 samba? ( >=net-fs/samba-3.5 ) sftp? ( >=net-libs/libssh-0.5 ) " DEPEND="${DEPEND} app-text/asciidoc doc? ( app-doc/doxygen ) test? ( >=dev-libs/check-0.9.5 dev-util/cmocka ) " S="${WORKDIR}/${P}" src_configure() { local mycmakeargs=( $(cmake-utils_use test UNIT_TESTING) $(cmake-utils_use_find_package doc Doxygen) $(cmake-utils_use_find_package samba Libsmbclient) $(cmake-utils_use_find_package sftp LibSSH) ) cmake-utils_src_configure } src_install() { cmake-utils_src_install mv "${D}/usr/etc/csync" "${D}/etc/" rm -r "${D}/usr/etc/" }