blob: 2090db6efc6ea128ed32b3a2e05b2ec1bbd413d4 (
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=( 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=""
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
}
|