Added
Link Here
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= autokey |
4 |
DISTVERSION= 0.95.4 |
5 |
CATEGORIES= deskutils python |
6 |
MASTER_SITES= CHEESESHOP |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
|
9 |
MAINTAINER= daniel@shafer.cc |
10 |
COMMENT= Desktop automation utility for Linux and X11 |
11 |
|
12 |
LICENSE= GPLv3 |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
15 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}pyinotify>0:devel/py-pyinotify@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}xlib>0:x11-toolkits/py-xlib@${PY_FLAVOR} |
18 |
|
19 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}pyinotify>0:devel/py-pyinotify@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}xlib>0:x11-toolkits/py-xlib@${PY_FLAVOR} |
22 |
|
23 |
USES= desktop-file-utils python:3.5+ shebangfix |
24 |
USE_PYTHON= autoplist distutils |
25 |
|
26 |
NO_ARCH= yes |
27 |
|
28 |
OPTIONS_MULTI= UI |
29 |
OPTIONS_MULTI_UI= GTK3 QT5 |
30 |
OPTIONS_DEFAULT= GTK3 |
31 |
|
32 |
GTK3_RUN_DEPENDS= libappindicator>0:devel/libappindicator |
33 |
GTK3_USES= gnome |
34 |
GTK3_USE= GNOME=gtk30,gtksourceview3,pygobject3 |
35 |
|
36 |
QT5_USES= pyqt:5 qt:5 |
37 |
QT5_USE= PYQT=qscintilla2,sip,svg,xml |
38 |
|
39 |
post-patch: |
40 |
${REINPLACE_CMD} 's|share/man|man|g' ${WRKSRC}/setup.py |
41 |
# Remove dbus-python from reqs as its the wrong dep name, devs will fix next release. |
42 |
${REINPLACE_CMD} "/install_requires=/s|'dbus-python', ||g" ${WRKSRC}/setup.py |
43 |
|
44 |
# setup.py installs both gtk and qt files no matter what, need to clean that up. |
45 |
post-install-GTK3-off: |
46 |
${RM} ${STAGEDIR}${PREFIX}/share/applications/autokey-gtk.desktop |
47 |
${RM} ${STAGEDIR}${PREFIX}/bin/autokey-gtk |
48 |
${RM} ${STAGEDIR}${PREFIX}/man/man1/autokey-gtk.1 |
49 |
post-install-QT5-off: |
50 |
${RM} ${STAGEDIR}${PREFIX}/share/applications/autokey-qt.desktop |
51 |
${RM} ${STAGEDIR}${PREFIX}/bin/autokey-qt |
52 |
${RM} ${STAGEDIR}${PREFIX}/man/man1/autokey-qt.1 |
53 |
|
54 |
.include <bsd.port.mk> |