summaryrefslogtreecommitdiff
path: root/www-apps/radicale/radicale-2.1.8.ebuild
blob: dd2c063aa5412cd4d3826ed0307ece6436d4c582 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python{2_7,3_4,3_5} )

inherit eutils distutils-r1 user

DESCRIPTION="A simple CalDAV calendar server"
HOMEPAGE="http://www.radicale.org/"
SRC_URI="https://github.com/Kozea/Radicale/archive/${PV}.tar.gz"
S="${WORKDIR}/Radicale-${PV}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ~x86"
IUSE=""

UDIR=/var/lib/radicale

pkg_setup() {
	enewgroup radicale
	enewuser radicale -1 -1 ${UDIR} radicale
}

python_install_all() {
	# init file
	newinitd "${FILESDIR}"/radicale.init.d radicale

	# directories
	diropts -m0750
	dodir ${UDIR}
	fowners radicale:radicale ${UDIR}

	distutils-r1_python_install_all
}