summaryrefslogtreecommitdiff
path: root/www-apps/radicale
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/radicale')
-rw-r--r--www-apps/radicale/Manifest2
-rw-r--r--www-apps/radicale/radicale-3.0.6-r3.ebuild (renamed from www-apps/radicale/radicale-3.0.6-r1.ebuild)46
2 files changed, 32 insertions, 16 deletions
diff --git a/www-apps/radicale/Manifest b/www-apps/radicale/Manifest
index 248e7cefd06a..ef36ca5d567c 100644
--- a/www-apps/radicale/Manifest
+++ b/www-apps/radicale/Manifest
@@ -4,5 +4,5 @@ AUX radicale.service 546 BLAKE2B 6d43e9b9aec713a944259e6323442f6796068ede3da5399
DIST radicale-2.1.12.tar.gz 123828 BLAKE2B 38ffb264b1f8e185642e0236821bd1a7714c34306f4d67d181a9130c7955b9f3a616547fa04a15781c2587bbdc5e7ea1eeab9da65790b72fb78cd83d78b0fd43 SHA512 98b5c1e6c71928859de9f497b7e968e56c659e9e5d8c559d4359718511d67a23d4daa9adca679f5f732ad531cb04d184b022cf2684fa5fdbfe24a35c92813968
DIST radicale-3.0.6.tar.gz 123817 BLAKE2B fa4b70c9920d518df6c939395eca857c237a75218b90ada45564f2d84266d65df12898e4efbb52905829948061e10e72b5442943fd5061a28447330ae8d491e8 SHA512 e9741547395fae8886ad84b6807422ebb196f5293d484f5f6136498058576cff697e28c117216f151d56494af83593347ceee40a6efa21272b803d0f301a396d
EBUILD radicale-2.1.12.ebuild 1722 BLAKE2B 3aa793d57898fd60726422114c247265f2566134587f1bf04a0cd94d0525baa4935ffb53bdf77996b3f12f5faa6c3f9845a78a8d9ae0bfb9de725a7033e0e866 SHA512 32b0893d0778ac3f6b8ae40387a8e7817e77a165d572b311f21565fb37c5e97ddf527e2adafde4784de10e3fa3a6466ac5922b5d778562d6894d1e2f1408d8cb
-EBUILD radicale-3.0.6-r1.ebuild 1678 BLAKE2B 74750c50d9628decb9d98f4d9d1706df9bed787b3c6c3771868c6002be46c26de725b1b2076c7341264e6f5916de8904bdee255d136635a5fa60bc9c8c495e9c SHA512 1a26bc9d92733e89e8f1820d9b1e40a742f10547ce44d36fed22e02a9e452c3f1ba8f1af7645e55bfe879bd52d97dfcdb693617b8db9d083c3d693993cc08fc2
+EBUILD radicale-3.0.6-r3.ebuild 1917 BLAKE2B 48306d0aa313277ab4e19bb76d102a767ab913313901686202340a77588a4f2a35f68f3e4a6b849e81b155cf7257df4ab509d0ad704c70c780da3dc4603e32e0 SHA512 a6a6fa838dca885f21e2694d43cb645abe1b87168d34e15d940af9ab4be90f06cde55baf25f81ce8d170befd1b0f76c03d8f9354dabfc76c24d72a1940155300
MISC metadata.xml 556 BLAKE2B b07d7f83f54dd115fc7fc0e775b97bc30653389d301fa39e0cf8a8ee9a94bc3b3cf6b8bfcbd8c53c2b0502b73011707d7ffa267b9882be935b3f3a489e127957 SHA512 9b5981e5efb581f950a766bda19a405edb78773fbeec2a19fe9bca75d6c208c3f9628954d3ce346d5a90701e0f2e8eb182fbfcf4ca458abafb10d683156ea6fd
diff --git a/www-apps/radicale/radicale-3.0.6-r1.ebuild b/www-apps/radicale/radicale-3.0.6-r3.ebuild
index 3c2169639c60..634dd1140c4b 100644
--- a/www-apps/radicale/radicale-3.0.6-r1.ebuild
+++ b/www-apps/radicale/radicale-3.0.6-r3.ebuild
@@ -4,7 +4,7 @@
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8,9} )
inherit distutils-r1 systemd
@@ -23,38 +23,53 @@ RDEPEND="
acct-group/radicale
dev-python/defusedxml
dev-python/passlib[bcrypt,${PYTHON_USEDEP}]
- >=dev-python/vobject-0.9.6[${PYTHON_USEDEP}]
- >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/vobject[${PYTHON_USEDEP}]
sys-apps/util-linux
"
+BDEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/waitress[${PYTHON_USEDEP}]
+ )
+"
+
S="${WORKDIR}/${MY_P}"
-RDIR=/var/lib/${PN}
+RDIR=/var/lib/"${PN}"
+
+DOCS=( DOCUMENTATION.md NEWS.md )
+
+src_prepare() {
+ sed -i '/^addopts =/d' setup.cfg || die
+ distutils-r1_src_prepare
+}
python_install_all() {
rm README* || die
-
# init file
newinitd "${FILESDIR}"/radicale-r3.init.d radicale
systemd_dounit "${FILESDIR}/${PN}.service"
# directories
- keepdir ${RDIR}
- fowners ${PN}:${PN} ${RDIR}
- fperms 0750 ${RDIR}
+ keepdir "${RDIR}"
+ fperms 0750 "${RDIR}"
+ fowners "${PN}:${PN}" "${RDIR}"
# config file
- insinto /etc/${PN}
+ insinto /etc/"${PN}"
doins config
# fcgi and wsgi files
- exeinto /usr/share/${PN}
+ exeinto /usr/share/"${PN}"
doexe radicale.wsgi
distutils-r1_python_install_all
}
+distutils_enable_tests pytest
+
pkg_postinst() {
local _erdir="${EROOT}${RDIR}"
@@ -62,11 +77,12 @@ pkg_postinst() {
einfo "You will also find there an example FastCGI script."
if [[ $(stat --format="%U:%G:%a" "${_erdir}") != "${PN}:${PN}:750" ]]
then
- ewarn "Unsafe file permissions detected on ${_erdir}. This probably comes"
- ewarn "from an earlier version of this ebuild."
+ ewarn ""
+ ewarn "Unsafe file permissions detected on ${_erdir}."
+ ewarn "This probably comes from an earlier version of this ebuild."
ewarn "To fix run:"
- ewarn " \`chown -R ${PN}:${PN} ${_erdir}\`"
- ewarn " \`chmod 0750 ${_erdir}\`"
- ewarn " \`chmod -R o= ${_erdir}\`"
+ ewarn "# \`chown -R ${PN}:${PN} ${_erdir}\`"
+ ewarn "# \`chmod 0750 ${_erdir}\`"
+ ewarn "# \`chmod -R o= ${_erdir}\`"
fi
}