summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/khal')
-rw-r--r--app-misc/khal/Manifest1
-rw-r--r--app-misc/khal/files/khal-0.10.4-add-etag.patch10
-rw-r--r--app-misc/khal/khal-0.10.4.ebuild45
3 files changed, 56 insertions, 0 deletions
diff --git a/app-misc/khal/Manifest b/app-misc/khal/Manifest
index d201adab37f0..53d3f40407cf 100644
--- a/app-misc/khal/Manifest
+++ b/app-misc/khal/Manifest
@@ -1,2 +1,3 @@
DIST khal-0.10.1.tar.gz 173636 BLAKE2B 97158bc78dfbda3a3555df3588c61f6a5e8b20d71921099a74ba997eb7ccef05ed931e930afbb09f9c125f3e0e782143dd2cdf4d0da6bd09952765b9117d6ac4 SHA512 5b81a60099c201fa112ab17740b73edb17b29efa1548086766d57d9d595451e7d779aad5a2ce7a2afc78050116782ff6696c4bd284021a5e12c87fe361d15e47
DIST khal-0.10.2.tar.gz 182534 BLAKE2B 0c7c4ab1234ebe90ef9ad8291f2a0087a3f6a60d25f5426445eedadb25f236b3598dacc051e959a108ad472efc56628bf7ba11ed714c885d956f1a8f905029ca SHA512 e15449b73175190f02b6fe5774a8feef8a5390966da3836624c94a044d146cc6e8a73985d991042fbb617f736c6759ded387a65292529e71f5b2f34bc80a686e
+DIST khal-0.10.4.tar.gz 185736 BLAKE2B 0cb9deb793f577bbcedcbba4788988973ee9d0ab71fdd30a01142a54434767d74b1d10e5bfa5f6a2feb9f18a8a9fe22717d4a38a07ab5e30b331c87b79a79f39 SHA512 b32f1bfe5d3a3976278726a6570eb345a5ad44f63a52b75f045fd0509d145edd5b76e11a10acffd9c3982edc124f93daec34a37c39299c2311796c0314016eb6
diff --git a/app-misc/khal/files/khal-0.10.4-add-etag.patch b/app-misc/khal/files/khal-0.10.4-add-etag.patch
new file mode 100644
index 000000000000..14b9e6df71bf
--- /dev/null
+++ b/app-misc/khal/files/khal-0.10.4-add-etag.patch
@@ -0,0 +1,10 @@
+--- a/khal/ui/__init__.py 2022-02-02 16:30:20.507169060 +0100
++++ b/khal/ui/__init__.py 2022-02-02 16:30:46.497378047 +0100
+@@ -1109,6 +1109,7 @@
+ account, href, etag = part.split('\n', 2)
+ event = self.collection.get_event(href, account)
+ event.delete_instance(rec_id)
++ event.etag = etag
+ self.collection.update(event)
+
+ def keypress(self, size, key):
diff --git a/app-misc/khal/khal-0.10.4.ebuild b/app-misc/khal/khal-0.10.4.ebuild
new file mode 100644
index 000000000000..3fb13770ef22
--- /dev/null
+++ b/app-misc/khal/khal-0.10.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8,9} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="A CalDAV based calendar"
+HOMEPAGE="https://lostpackets.de/khal/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="dev-python/click[${PYTHON_USEDEP}]
+ dev-python/click-log[${PYTHON_USEDEP}]
+ >=dev-python/icalendar-4.0.3[${PYTHON_USEDEP}]
+ >=dev-python/urwid-1.3.0[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/configobj[${PYTHON_USEDEP}]
+ >=dev-python/atomicwrites-0.1.7[${PYTHON_USEDEP}]
+ <dev-python/tzlocal-3[${PYTHON_USEDEP}]
+ dev-python/setproctitle[${PYTHON_USEDEP}]"
+BDEPEND=">dev-python/setuptools_scm-1.12.0[${PYTHON_USEDEP}]
+ dev-python/vdirsyncer[${PYTHON_USEDEP}]
+ dev-python/freezegun[${PYTHON_USEDEP}]"
+
+# https://github.com/pimutils/khal/issues/793
+PATCHES=( "${FILESDIR}/${P}-add-etag.patch" )
+DOCS=( AUTHORS.txt CHANGELOG.rst CONTRIBUTING.rst README.rst khal.conf.sample )
+
+distutils_enable_tests pytest
+
+src_install() {
+ distutils-r1_src_install
+
+ insinto /usr/share/zsh/site-functions
+ doins misc/__khal
+}