Page MenuHomeFreeBSD

D18407.id51502.diff
No OneTemporary

D18407.id51502.diff

Index: deskutils/Makefile
===================================================================
--- deskutils/Makefile
+++ deskutils/Makefile
@@ -230,6 +230,7 @@
SUBDIR += preferences
SUBDIR += projectlibre
SUBDIR += puush
+ SUBDIR += py-autokey
SUBDIR += py-bugwarrior
SUBDIR += py-khal
SUBDIR += py-khard
Index: deskutils/py-autokey/Makefile
===================================================================
--- /dev/null
+++ deskutils/py-autokey/Makefile
@@ -0,0 +1,55 @@
+# $FreeBSD$
+
+PORTNAME= autokey
+DISTVERSION= 0.95.4
+CATEGORIES= deskutils python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= daniel@shafer.cc
+COMMENT= Desktop automation utility for Linux and X11
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyinotify>0:devel/py-pyinotify@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}xlib>0:x11-toolkits/py-xlib@${PY_FLAVOR}
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyinotify>0:devel/py-pyinotify@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}xlib>0:x11-toolkits/py-xlib@${PY_FLAVOR}
+
+USES= desktop-file-utils python:3.5+ shebangfix
+USE_PYTHON= autoplist distutils
+
+INSTALLS_ICONS= yes
+NO_ARCH= yes
+
+OPTIONS_MULTI= UI
+OPTIONS_MULTI_UI= GTK3 QT5
+OPTIONS_DEFAULT= GTK3
+
+GTK3_RUN_DEPENDS= libappindicator>0:devel/libappindicator
+GTK3_USES= gnome
+GTK3_USE= GNOME=gtk30,gtksourceview3,pygobject3
+
+QT5_USES= pyqt:5 qt:5
+QT5_USE= PYQT=qscintilla2,sip,svg,xml
+
+post-patch:
+ ${REINPLACE_CMD} 's|share/man|man|g' ${WRKSRC}/setup.py
+ # Remove dbus-python from reqs as its the wrong dep name, devs will fix next release.
+ ${REINPLACE_CMD} "/install_requires=/s|'dbus-python', ||g" ${WRKSRC}/setup.py
+
+# setup.py installs both gtk and qt files no matter what, need to clean that up.
+post-install-GTK3-off:
+ ${RM} ${STAGEDIR}${PREFIX}/share/applications/autokey-gtk.desktop
+ ${RM} ${STAGEDIR}${PREFIX}/bin/autokey-gtk
+ ${RM} ${STAGEDIR}${PREFIX}/man/man1/autokey-gtk.1
+post-install-QT5-off:
+ ${RM} ${STAGEDIR}${PREFIX}/share/applications/autokey-qt.desktop
+ ${RM} ${STAGEDIR}${PREFIX}/bin/autokey-qt
+ ${RM} ${STAGEDIR}${PREFIX}/man/man1/autokey-qt.1
+
+.include <bsd.port.mk>
Index: deskutils/py-autokey/distinfo
===================================================================
--- /dev/null
+++ deskutils/py-autokey/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1543643976
+SHA256 (autokey-0.95.4.tar.gz) = 0e46d27727cd611ddf5a23a5a88924fc614662bd797db4fa177cabbe63448206
+SIZE (autokey-0.95.4.tar.gz) = 263627
Index: deskutils/py-autokey/pkg-descr
===================================================================
--- /dev/null
+++ deskutils/py-autokey/pkg-descr
@@ -0,0 +1,3 @@
+Desktop automation utility for Linux and X11 written in Python 3.
+
+WWW: https://github.com/autokey-py3/autokey
Index: deskutils/py-autokey/pkg-message
===================================================================
--- /dev/null
+++ deskutils/py-autokey/pkg-message
@@ -0,0 +1,5 @@
+*Important*
+
+This is an X11 application, and as such will not function 100% on
+distributions that default to using Wayland instead of Xorg.
+

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 30, 2:27 PM (18 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32525668
Default Alt Text
D18407.id51502.diff (3 KB)

Event Timeline