summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Druzenko <vvd@FreeBSD.org>2025-07-28 21:28:10 +0300
committerVladimir Druzenko <vvd@FreeBSD.org>2025-07-28 21:28:10 +0300
commit59b9c800659e65772550114a5a37bc495168120f (patch)
tree47aafbc120b2a69bf2f5ca863a3cf7956f789363
parentnet/tayga: Update 0.9.2 => 0.9.5 (diff)
deskutils/py-khard: Resurect port after "Remove expired port"
-rw-r--r--MOVED1
-rw-r--r--deskutils/Makefile1
-rw-r--r--deskutils/py-khard/Makefile63
-rw-r--r--deskutils/py-khard/distinfo3
-rw-r--r--deskutils/py-khard/files/pkg-message.in9
-rw-r--r--deskutils/py-khard/pkg-descr3
6 files changed, 79 insertions, 1 deletions
diff --git a/MOVED b/MOVED
index 65a2e343476f..d34c59953fff 100644
--- a/MOVED
+++ b/MOVED
@@ -4534,7 +4534,6 @@ misc/py-orange3-associate||2025-06-23|Has expired: Depends on expiring misc/oran
misc/py-orange3-network||2025-06-23|Has expired: Depends on expiring misc/orange3
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
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
devel/py-pytest4-cache||2025-06-23|Has expired: Depends on expiring devel/py-pytest4
diff --git a/deskutils/Makefile b/deskutils/Makefile
index ca3b1442d8ae..343e7aaa2fda 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -229,6 +229,7 @@
SUBDIR += py-calendar_cli
SUBDIR += py-i3-gnome-pomodoro
SUBDIR += py-khal
+ SUBDIR += py-khard
SUBDIR += py-paperless
SUBDIR += py-paperless-ngx
SUBDIR += py-py3status
diff --git a/deskutils/py-khard/Makefile b/deskutils/py-khard/Makefile
new file mode 100644
index 000000000000..8d00b7aa9c7b
--- /dev/null
+++ b/deskutils/py-khard/Makefile
@@ -0,0 +1,63 @@
+PORTNAME= khard
+DISTVERSION= 0.19.1
+CATEGORIES= deskutils python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= andreas@bilke.org
+COMMENT= Console carddav client
+WWW= https://github.com/lucc/khard/
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+DEPRECATED= Depends on expired devel/py-atomicwrites
+EXPIRATION_DATE=2025-06-21
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}atomicwrites>=0.1.7:devel/py-atomicwrites@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}configobj>=5.0.6:devel/py-configobj@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.15:devel/py-ruamel.yaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}unidecode>=0.04.21:converters/py-unidecode@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}vdirsyncer>=0:deskutils/py-vdirsyncer@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}vobject>=0.9.5:deskutils/py-vobject@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.2:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sphinx-autoapi>0:textproc/py-sphinx-autoapi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sphinx-autodoc-typehints>0:textproc/py-sphinx-autodoc-typehints@${PY_FLAVOR}
+
+USES= python gmake
+USE_PYTHON= autoplist pep517
+NO_ARCH= yes
+
+PLIST_FILES= share/zsh/site-functions/_khard \
+ share/zsh/site-functions/_email-khard \
+ ${EXAMPLESDIR}/khard.conf.example \
+ ${EXAMPLESDIR}/template.yaml \
+ share/man/man1/khard.1.gz \
+ share/man/man5/khard.conf.5.gz
+
+SUB_FILES= pkg-message
+
+post-patch:
+ @${REINPLACE_CMD} \
+ -e 's|sphinx-build|${LOCALBASE}/bin/sphinx-build-${PYTHON_VER}|g' \
+ -e 's|sphinx-apidoc|${LOCALBASE}/bin/sphinx-apidoc-${PYTHON_VER}|g' \
+ ${WRKSRC}/doc/Makefile
+
+pre-build:
+ (cd ${WRKSRC}/doc && ${MAKE_CMD} man)
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${INSTALL_DATA} ${WRKSRC}/misc/zsh/_khard \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${INSTALL_DATA} ${WRKSRC}/misc/zsh/_email-khard \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/doc/source/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+ ${INSTALL_MAN} ${WRKSRC}/doc/build/man/khard.1 ${STAGEDIR}${PREFIX}/share/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/build/man/khard.conf.5 ${STAGEDIR}${PREFIX}/share/man/man5
+
+.include <bsd.port.mk>
diff --git a/deskutils/py-khard/distinfo b/deskutils/py-khard/distinfo
new file mode 100644
index 000000000000..ae3b05005558
--- /dev/null
+++ b/deskutils/py-khard/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1701533025
+SHA256 (khard-0.19.1.tar.gz) = 59f30a0da3c3da3eb04f4dbe18ee4763913b685d99ec8418fd574a88c491c490
+SIZE (khard-0.19.1.tar.gz) = 605230
diff --git a/deskutils/py-khard/files/pkg-message.in b/deskutils/py-khard/files/pkg-message.in
new file mode 100644
index 000000000000..50487d89b4a1
--- /dev/null
+++ b/deskutils/py-khard/files/pkg-message.in
@@ -0,0 +1,9 @@
+[
+{ type: install
+ message: <<EOM
+Copy the example configuration from
+%%PREFIX%%/share/examples/khard/khard.conf.example to
+$XDG_CONFIG_HOME/khard/khard.conf
+EOM
+}
+]
diff --git a/deskutils/py-khard/pkg-descr b/deskutils/py-khard/pkg-descr
new file mode 100644
index 000000000000..5aec8083d4e9
--- /dev/null
+++ b/deskutils/py-khard/pkg-descr
@@ -0,0 +1,3 @@
+Khard is an address book for the console. It creates, reads, modifies and
+removes carddav address book entries at your local machine. Khard is also
+compatible to the email clients mutt and alot and the SIP client twinkle.