summaryrefslogtreecommitdiff
blob: a4f28e4dcf751fcf627d04bfc277842fa3668c3d (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/mirall/mirall-1.2.0_beta2.ebuild,v 1.2 2013/01/22 21:38:46 creffett Exp $

EAPI=5

LANG_DIR="translations"
PLOCALES="ca cs_CZ da de el en eo es es_AR et_EE eu fa fi_FI fr gl he hr hu_HU it ja_JP ko lb lt_LT mk
nb_NO nl oc pl pt_BR pt_PT ro ru ru_RU sk_SK sl sr@latin sv ta_LK tr uk vi zh_CN zh_TW"
inherit cmake-utils l10n

MY_P="${PN}-${PV/_/}"

DESCRIPTION="Synchronization of your folders with another computers"
HOMEPAGE="http://owncloud.org/"
SRC_URI="http://download.owncloud.com/download/testing/${MY_P}.tar.bz2"

LICENSE="CCPL-Attribution-3.0 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

RDEPEND="
	>=net-misc/csync-0.70.1
	sys-fs/inotify-tools
	x11-libs/qt-core:4
	x11-libs/qt-gui:4
	x11-libs/qt-test:4
"
DEPEND="${RDEPEND}
	doc? ( dev-python/sphinx virtual/latex-base )
"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	# Yay for fcked detection.
	export CSYNC_DIR="${EPREFIX}/usr/include/ocsync/"

	local lang
	for lang in ${PLOCALES} ; do
		if ! use linguas_${lang} ; then
			rm ${LANG_DIR}/${PN}_${lang}.ts
		fi
	done
	epatch "${FILESDIR}/${PN}-1.2.0_beta2-automagicness.patch"
}

src_configure() {
	local mycmakeargs=(
		$(cmake-utils_use_with doc SPHINX)
	)
	cmake-utils_src_configure
}

pkg_postinst() {
	if ! has_version net-misc/csync[samba]; then
		elog "For samba support, build net-misc/csync with USE=samba"
	fi
	if ! has_version net-misc/csync[sftp]; then
		elog "For sftp support, build net-misc/csync with USE=sftp"
	fi
}