blob: bb14539c417e86d29e766cced9fb1975070066c7 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{4,5,6} )
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=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="dev-python/vobject[${PYTHON_USEDEP}]"
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
}
|