Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/radicale/
Date: Tue, 02 Aug 2022 11:52:47
Message-Id: 1659441161.df81e8a8f2dcb91f84c2f2badd662c7ae22f6063.juippis@gentoo
1 commit: df81e8a8f2dcb91f84c2f2badd662c7ae22f6063
2 Author: Henning Schild <henning <AT> hennsch <DOT> de>
3 AuthorDate: Sun Jul 17 17:37:57 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 11:52:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df81e8a8
7
8 www-apps/radicale: bump to 3.1.8
9
10 Signed-off-by: Henning Schild <henning <AT> hennsch.de>
11 Closes: https://github.com/gentoo/gentoo/pull/26454
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 www-apps/radicale/Manifest | 1 +
15 www-apps/radicale/radicale-3.1.8.ebuild | 93 +++++++++++++++++++++++++++++++++
16 2 files changed, 94 insertions(+)
17
18 diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest
19 index 8518cd1fb662..c74fcb087f57 100644
20 --- a/www-apps/radicale/Manifest
21 +++ b/www-apps/radicale/Manifest
22 @@ -1,2 +1,3 @@
23 DIST radicale-3.1.5.tar.gz 136725 BLAKE2B 574032fc9a4010db2de0066758093b74fb29e43c3e8f3328441c92af99827a5f4174ac3ddbc2573083642af4c68073c470ce64ae7689b537a72aa0b813b641b8 SHA512 0febad350e970e4f0ef8199472bb94a81a2a412be2b55c1baee16967b39bf9a5f7b9e8aa7c95a19beedf2f8b2d871382aa0727803432575bff248bc0137adce3
24 DIST radicale-3.1.7.tar.gz 137416 BLAKE2B 3192acd1e4ee9a63803bcc7aac7b62ae50a94a88d294f3299508dbd1f7a42cb79ea87dc2675509c1b12f76e75e37635b1a97672db61b09f5dfaefc5bbc1d616e SHA512 04ae2072a90f303dd18de3a2cf6474263ca9650ee87ee72be0d7177ad2f2f61f4860784674bac8dbff2c2679ac45acd03aa38c02b00349f01669c6cf4a474605
25 +DIST radicale-3.1.8.tar.gz 137123 BLAKE2B ec855138aa18508da5375c5bde854cee4d4110fb75437cc1472afd3b589dfa523031cdd1b8a51a0f6a74dfe819308acd068b979acde32c05941d113d9d289f1e SHA512 5c4b55ee9cfc5060a0e0cf1f284d2c5a354bcabd7a088214e917fabb0083bcd172fd92aeb59b1f869f34e04f8c276efbed15c2a3ff2fdbc81b2220586bbaf31b
26
27 diff --git a/www-apps/radicale/radicale-3.1.8.ebuild b/www-apps/radicale/radicale-3.1.8.ebuild
28 new file mode 100644
29 index 000000000000..113b188e44b1
30 --- /dev/null
31 +++ b/www-apps/radicale/radicale-3.1.8.ebuild
32 @@ -0,0 +1,93 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +
40 +inherit distutils-r1 systemd
41 +
42 +DESCRIPTION="A simple CalDAV calendar server"
43 +HOMEPAGE="https://radicale.org/"
44 +SRC_URI="https://github.com/Kozea/Radicale/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~x86"
49 +
50 +MY_P="Radicale-${PV}"
51 +
52 +RDEPEND="
53 + >=acct-user/radicale-0-r2
54 + acct-group/radicale
55 + dev-python/bcrypt[${PYTHON_USEDEP}]
56 + dev-python/defusedxml[${PYTHON_USEDEP}]
57 + dev-python/passlib[${PYTHON_USEDEP}]
58 + dev-python/python-dateutil[${PYTHON_USEDEP}]
59 + dev-python/vobject[${PYTHON_USEDEP}]
60 + dev-python/setuptools[${PYTHON_USEDEP}]
61 + sys-apps/util-linux
62 +"
63 +
64 +BDEPEND="
65 + ${RDEPEND}
66 + test? (
67 + dev-python/waitress[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +distutils_enable_tests --install pytest
72 +
73 +S="${WORKDIR}/${MY_P}"
74 +
75 +RDIR=/var/lib/"${PN}"
76 +
77 +DOCS=( DOCUMENTATION.md CHANGELOG.md )
78 +
79 +src_prepare() {
80 + sed -i '/^addopts =/d' setup.cfg || die
81 + distutils-r1_src_prepare
82 +}
83 +
84 +python_test() {
85 + epytest radicale/tests/
86 +}
87 +
88 +python_install_all() {
89 + rm README* || die
90 + # init file
91 + newinitd "${FILESDIR}"/radicale-r3.init.d radicale
92 + systemd_dounit "${FILESDIR}/${PN}.service"
93 +
94 + # directories
95 + keepdir "${RDIR}"
96 + fperms 0750 "${RDIR}"
97 + fowners "${PN}:${PN}" "${RDIR}"
98 +
99 + # config file
100 + insinto /etc/"${PN}"
101 + doins config
102 +
103 + # fcgi and wsgi files
104 + exeinto /usr/share/"${PN}"
105 + doexe radicale.wsgi
106 +
107 + distutils-r1_python_install_all
108 +}
109 +
110 +pkg_postinst() {
111 + local _erdir="${EROOT}${RDIR}"
112 +
113 + einfo "A sample WSGI script has been put into ${EROOT}/usr/share/${PN}."
114 + einfo "You will also find there an example FastCGI script."
115 + if [[ $(stat --format="%U:%G:%a" "${_erdir}") != "${PN}:${PN}:750" ]]
116 + then
117 + ewarn ""
118 + ewarn "Unsafe file permissions detected on ${_erdir}."
119 + ewarn "This probably comes from an earlier version of this ebuild."
120 + ewarn "To fix run:"
121 + ewarn "# \`chown -R ${PN}:${PN} ${_erdir}\`"
122 + ewarn "# \`chmod 0750 ${_erdir}\`"
123 + ewarn "# \`chmod -R o= ${_erdir}\`"
124 + fi
125 +}