summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MOVED1
-rw-r--r--deskutils/Makefile1
-rw-r--r--deskutils/py-khal/Makefile43
-rw-r--r--deskutils/py-khal/distinfo3
-rw-r--r--deskutils/py-khal/files/patch-pyproject.toml20
-rw-r--r--deskutils/py-khal/pkg-descr3
-rw-r--r--deskutils/py-khal/pkg-message7
7 files changed, 77 insertions, 1 deletions
diff --git a/MOVED b/MOVED
index 3eeaa11adec6..989d5365594a 100644
--- a/MOVED
+++ b/MOVED
@@ -4536,7 +4536,6 @@ misc/py-orange3-network||2025-06-23|Has expired: Depends on expiring misc/orange
www/onionshare||2025-06-23|Has expired: Depends on expired devel/py-atomicwrites
deskutils/py-todoman||2025-06-23|Has expired: Depends on expired devel/py-atomicwrites
deskutils/py-khard||2025-06-23|Has expired: Depends on expired devel/py-atomicwrites
-deskutils/py-khal||2025-06-23|Has expired: Depends on expired devel/py-atomicwrites
devel/py-pytest-relaxed||2025-06-23|Has expired: Depends on expiring devel/py-pytest4
devel/py-pytest4-flakes||2025-06-23|Has expired: Depends on expiring devel/py-pytest4
devel/py-pytest-pep8||2025-06-23|Has expired: Depends on expiring devel/py-pytest4
diff --git a/deskutils/Makefile b/deskutils/Makefile
index 4a3d23f89f34..3425305cf110 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -229,6 +229,7 @@
SUBDIR += py-bugwarrior
SUBDIR += py-calendar_cli
SUBDIR += py-i3-gnome-pomodoro
+ SUBDIR += py-khal
SUBDIR += py-paperless
SUBDIR += py-paperless-ngx
SUBDIR += py-py3status
diff --git a/deskutils/py-khal/Makefile b/deskutils/py-khal/Makefile
new file mode 100644
index 000000000000..382784b3f6e1
--- /dev/null
+++ b/deskutils/py-khal/Makefile
@@ -0,0 +1,43 @@
+PORTNAME= khal
+DISTVERSION= 0.11.4
+CATEGORIES= deskutils python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= CalDAV-based calendar
+WWW= https://lostpackets.de/khal/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8.0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=3.2:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click-log>=0.2.0:devel/py-click-log@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}configobj>=0:devel/py-configobj@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-dateutil>=0:devel/py-python-dateutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}icalendar>=4.0.3:devel/py-icalendar@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tzlocal>=1.0:devel/py-tzlocal@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}urwid>=2.6.15:devel/py-urwid@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}vdirsyncer>=0:deskutils/py-vdirsyncer@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}xdg>=0:devel/py-xdg@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517
+NO_ARCH= yes
+
+OPTIONS_DEFINE= SETPROCTITLE
+
+SETPROCTITLE_DESC= Set the process title
+SETPROCTITLE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setproctitle>=0:devel/py-setproctitle@${PY_FLAVOR}
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC} && \
+ ${INSTALL_DATA} khal.conf.sample ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>
diff --git a/deskutils/py-khal/distinfo b/deskutils/py-khal/distinfo
new file mode 100644
index 000000000000..360fba564c20
--- /dev/null
+++ b/deskutils/py-khal/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1750768306
+SHA256 (khal-0.11.4.tar.gz) = 3e97107846c27cdce303c054e8873cdde7190006f0a854bf8e6e4ad3974165f4
+SIZE (khal-0.11.4.tar.gz) = 208895
diff --git a/deskutils/py-khal/files/patch-pyproject.toml b/deskutils/py-khal/files/patch-pyproject.toml
new file mode 100644
index 000000000000..30f33d1a9e9c
--- /dev/null
+++ b/deskutils/py-khal/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig 2025-04-10 21:43:33 UTC
++++ pyproject.toml
+@@ -6,7 +6,7 @@ authors = [
+ authors = [
+ {name = "khal contributors", email = "khal@lostpackets.de"},
+ ]
+-license = {file = "LICENSE"}
++license = { file = "doc/source/license.rst" }
+ classifiers = [
+ "Development Status :: 4 - Beta",
+ "Environment :: Console :: Curses",
+@@ -67,7 +67,7 @@ ikhal = "khal.cli:main_ikhal"
+ ikhal = "khal.cli:main_ikhal"
+
+ [build-system]
+-requires = ["setuptools>=64", "setuptools_scm>=8"]
++requires = ["setuptools>=63", "setuptools_scm>=8"]
+ build-backend = "setuptools.build_meta"
+
+ [tool.setuptools.packages]
diff --git a/deskutils/py-khal/pkg-descr b/deskutils/py-khal/pkg-descr
new file mode 100644
index 000000000000..953f8e778427
--- /dev/null
+++ b/deskutils/py-khal/pkg-descr
@@ -0,0 +1,3 @@
+Khal is a calendar program for the terminal for viewing, adding and editing
+events and calendars. Khal is build on the iCalendar and vdir (allowing the
+use of vdirsyncer for CalDAV compatibility) standards.
diff --git a/deskutils/py-khal/pkg-message b/deskutils/py-khal/pkg-message
new file mode 100644
index 000000000000..d6b2951cd2f0
--- /dev/null
+++ b/deskutils/py-khal/pkg-message
@@ -0,0 +1,7 @@
+[
+{ type: install
+ message: <<EOM
+Khal needs LANG to be set to a UTF-8 locale (e.g. en_US.UTF-8) to run.
+EOM
+}
+]