summaryrefslogtreecommitdiff
path: root/x11-wm/obkey
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2013-02-25 02:16:30 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2013-02-25 02:16:30 +0000
commit49da4515391c1e968a3dcc9126e2f99e9050931d (patch)
tree84dfcaee9f5831a83d58cafc7935e00ada0a244e /x11-wm/obkey
parent- Add LC_TYPE to avoid encoding issues with many gems (diff)
Add obkey 1.0, a hotkey editor for Openbox window manager.
PR: ports/175606 Submitted by: Uffe Jakobsen
Notes
Notes: svn path=/head/; revision=312898
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