summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deskutils/Makefile1
-rw-r--r--deskutils/py-khard/Makefile40
-rw-r--r--deskutils/py-khard/distinfo3
-rw-r--r--deskutils/py-khard/files/pkg-message.in7
-rw-r--r--deskutils/py-khard/pkg-descr5
5 files changed, 56 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile
index b589ab947719..d4152d27659c 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -231,6 +231,7 @@
SUBDIR += puush
SUBDIR += py-bugwarrior
SUBDIR += py-khal
+ SUBDIR += py-khard
SUBDIR += py-pystash
SUBDIR += py-send2trash
SUBDIR += py-taskw
diff --git a/deskutils/py-khard/Makefile b/deskutils/py-khard/Makefile
new file mode 100644
index 000000000000..1c1cc89bbe04
--- /dev/null
+++ b/deskutils/py-khard/Makefile
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME= khard
+DISTVERSION= 0.12.2
+CATEGORIES= deskutils python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= andreas@bilke.org
+COMMENT= Console carddav client
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>1.12.0:devel/py-setuptools_scm@${PY_FLAVOR}
+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}
+
+USES= python:3.4+
+USE_PYTHON= autoplist distutils
+NO_ARCH= yes
+
+PLIST_FILES= share/zsh/site-functions/_khard \
+ ${EXAMPLESDIR}/khard.conf.example \
+ ${EXAMPLESDIR}/template_for_contact_creation.yaml
+
+SUB_FILES= pkg-message
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${INSTALL_DATA} ${WRKSRC}/misc/zsh/_khard \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/misc/khard/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>
diff --git a/deskutils/py-khard/distinfo b/deskutils/py-khard/distinfo
new file mode 100644
index 000000000000..94af4a39fa9b
--- /dev/null
+++ b/deskutils/py-khard/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1528305405
+SHA256 (khard-0.12.2.tar.gz) = 9193d2d07cdb69cc6e35a0732111efb92bbfba854a1dd42b4f9c91a52a16c507
+SIZE (khard-0.12.2.tar.gz) = 5064055
diff --git a/deskutils/py-khard/files/pkg-message.in b/deskutils/py-khard/files/pkg-message.in
new file mode 100644
index 000000000000..b417376b79f3
--- /dev/null
+++ b/deskutils/py-khard/files/pkg-message.in
@@ -0,0 +1,7 @@
+======================================================================
+
+Copy the example configuration from
+%%PREFIX%%/share/examples/khard/khard.conf.example to
+$XDG_CONFIG_HOME/khard/khard.conf
+
+======================================================================
diff --git a/deskutils/py-khard/pkg-descr b/deskutils/py-khard/pkg-descr
new file mode 100644
index 000000000000..f6f16e19af62
--- /dev/null
+++ b/deskutils/py-khard/pkg-descr
@@ -0,0 +1,5 @@
+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.
+
+WWW: https://github.com/scheibler/khard/