aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/obkey
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-02-25 10:16:30 +0800
committerdanfe <danfe@FreeBSD.org>2013-02-25 10:16:30 +0800
commit21abad4f107c8fbafb271475e6b737aa34b4d9c7 (patch)
tree84dfcaee9f5831a83d58cafc7935e00ada0a244e /x11-wm/obkey
parentc0493d16921102895e75e0ba51daf0c1cfa14b78 (diff)
downloadfreebsd-ports-gnome-21abad4f107c8fbafb271475e6b737aa34b4d9c7.tar.gz
freebsd-ports-gnome-21abad4f107c8fbafb271475e6b737aa34b4d9c7.tar.zst
freebsd-ports-gnome-21abad4f107c8fbafb271475e6b737aa34b4d9c7.zip
Add obkey 1.0, a hotkey editor for Openbox window manager.
PR: ports/175606 Submitted by: Uffe Jakobsen
Diffstat (limited to 'x11-wm/obkey')
-rw-r--r--x11-wm/obkey/Makefile39
-rw-r--r--x11-wm/obkey/distinfo2
-rw-r--r--x11-wm/obkey/pkg-descr4
-rw-r--r--x11-wm/obkey/pkg-plist11
4 files changed, 56 insertions, 0 deletions
diff --git a/x11-wm/obkey/Makefile b/x11-wm/obkey/Makefile
new file mode 100644
index 000000000000..fab95e76634c
--- /dev/null
+++ b/x11-wm/obkey/Makefile
@@ -0,0 +1,39 @@
+# Created by: Uffe Jakobsen <uffe@uffe.org>
+# $FreeBSD$
+
+PORTNAME= obkey
+PORTVERSION= 1.0
+CATEGORIES= x11-wm python
+MASTER_SITES= GOOGLE_CODE
+
+MAINTAINER= uffe@uffe.org
+COMMENT= Openbox hotkey editor, written in Python and PyGTK
+
+LICENSE= MIT
+
+RUN_DEPENDS= py2[67]-gtk>=2.14:${PORTSDIR}/x11-toolkits/py-gtk2
+
+USE_GETTEXT= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PORTDOCS= NEWS
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,python,env &,' \
+ ${WRKSRC}/obkey ${WRKSRC}/obkey_classes.py
+ @${REINPLACE_CMD} -e '/config_prefix/s,/usr,${LOCALBASE},' \
+ ${WRKSRC}/obkey_classes.py
+
+post-install:
+ @${MKDIR} ${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/misc/obkey.desktop ${DESKTOPDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11-wm/obkey/distinfo b/x11-wm/obkey/distinfo
new file mode 100644
index 000000000000..dc8d84f4a242
--- /dev/null
+++ b/x11-wm/obkey/distinfo
@@ -0,0 +1,2 @@
+SHA256 (obkey-1.0.tar.gz) = 15c72b083cb37550cc21924d22d17a98da6ff86e6b91306b49ae3403e161dfbd
+SIZE (obkey-1.0.tar.gz) = 18146
diff --git a/x11-wm/obkey/pkg-descr b/x11-wm/obkey/pkg-descr
new file mode 100644
index 000000000000..65e74bca9f71
--- /dev/null
+++ b/x11-wm/obkey/pkg-descr
@@ -0,0 +1,4 @@
+ObKey is a hotkey editor for Openbox window manager, written in Python and
+PyGTK. The latest version is 1.0 (looks stable). Development is halted.
+
+WWW: https://code.google.com/p/obkey/
diff --git a/x11-wm/obkey/pkg-plist b/x11-wm/obkey/pkg-plist
new file mode 100644
index 000000000000..99365c99cf65
--- /dev/null
+++ b/x11-wm/obkey/pkg-plist
@@ -0,0 +1,11 @@
+bin/obkey
+%%PYTHON_SITELIBDIR%%/obkey_classes.py
+%%PYTHON_SITELIBDIR%%/obkey_classes.pyc
+%%PYTHON_SITELIBDIR%%/obkey_classes.pyo
+share/locale/uk/LC_MESSAGES/obkey.mo
+share/applications/obkey.desktop
+share/obkey/icons/add_child.png
+share/obkey/icons/add_sibling.png
+@dirrm share/obkey/icons
+@dirrm share/obkey
+@dirrmtry share/applications