# 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="" DEPENDS="dev-python/setuptools[${PYTHON_USEDEP}]" RDEPENDS="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 }