summaryrefslogtreecommitdiff
path: root/x11/py-keybinder
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2015-07-11 11:13:28 +0000
committerkamil <kamil@pkgsrc.org>2015-07-11 11:13:28 +0000
commit482fdbc5845e3dcdefb7b8c2b925bae2f85ba6a6 (patch)
tree10b28a13326bd4f916f9913d6118947b28c016dd /x11/py-keybinder
parent9c6c2933208f626896aace65ede986b854f7ac47 (diff)
downloadpkgsrc-482fdbc5845e3dcdefb7b8c2b925bae2f85ba6a6.tar.gz
Add x11/{,lua-,py-}keybinder version 0.3.0
The Keybinder package contains a library for registering global keyboard shortcuts. Keybinder works with GTK-based applications using the X Window System. The library contains: - A C library, libkeybinder - Python bindings, python-keybinder - An examples directory with programs in C, Lua, Python and Vala. There are: Python (py-keybinder) and Lua (lua-keybinder) bindings. Approved by <riastradh> Nobody complains to import it since 2015-04-08 http://mail-index.netbsd.org/tech-pkg/2015/04/07/msg014589.html Originally packaged in pkgsrc-wip by myself.
Diffstat (limited to 'x11/py-keybinder')
-rw-r--r--x11/py-keybinder/DESCR10
-rw-r--r--x11/py-keybinder/Makefile23
-rw-r--r--x11/py-keybinder/PLIST5
-rw-r--r--x11/py-keybinder/buildlink3.mk17
4 files changed, 55 insertions, 0 deletions
diff --git a/x11/py-keybinder/DESCR b/x11/py-keybinder/DESCR
new file mode 100644
index 00000000000..f923ca56133
--- /dev/null
+++ b/x11/py-keybinder/DESCR
@@ -0,0 +1,10 @@
+The Keybinder package contains a library for registering global keyboard
+shortcuts.
+Keybinder works with GTK-based applications using the X Window System.
+
+The library contains:
+- A C library, libkeybinder
+- Python bindings, python-keybinder
+- An examples directory with programs in C, Lua, Python and Vala.
+
+This package contains the Python bindings.
diff --git a/x11/py-keybinder/Makefile b/x11/py-keybinder/Makefile
new file mode 100644
index 00000000000..290fcedc132
--- /dev/null
+++ b/x11/py-keybinder/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2015/07/11 11:13:28 kamil Exp $
+
+.include "../../x11/keybinder/Makefile.common"
+
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= x11 python
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Python bindings for the keybinder library
+LICENSE= gnu-gpl-v2
+
+CONFIGURE_ARGS+= --disable-lua
+CONFIGURE_ARGS+= --enable-python
+
+PY_PATCHPLIST= yes
+PYTHON_VERSIONS_INCOMPATIBLE= 33 34
+
+INSTALL_DIRS= python-keybinder
+
+.include "../../lang/python/extension.mk"
+.include "../../x11/py-gtk2/buildlink3.mk"
+.include "../../x11/keybinder/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/py-keybinder/PLIST b/x11/py-keybinder/PLIST
new file mode 100644
index 00000000000..a4c858fe300
--- /dev/null
+++ b/x11/py-keybinder/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2015/07/11 11:13:28 kamil Exp $
+${PYSITELIB}/keybinder/__init__.py
+${PYSITELIB}/keybinder/__init__.pyc
+${PYSITELIB}/keybinder/__init__.pyo
+${PYSITELIB}/keybinder/_keybinder.la
diff --git a/x11/py-keybinder/buildlink3.mk b/x11/py-keybinder/buildlink3.mk
new file mode 100644
index 00000000000..348a684ef4f
--- /dev/null
+++ b/x11/py-keybinder/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/07/11 11:13:28 kamil Exp $
+
+BUILDLINK_TREE+= py-keybinder
+
+.if !defined(PY_KEYBINDER_BUILDLINK3_MK)
+PY_KEYBINDER_BUILDLINK3_MK:=
+
+.include "../../lang/python/pyversion.mk"
+
+BUILDLINK_API_DEPENDS.py-keybinder+= ${PYPKGPREFIX}-keybinder>=0.3.0
+BUILDLINK_PKGSRCDIR.py-keybinder?= ../../x11/py-keybinder
+
+.include "../../x11/py-gtk2/buildlink3.mk"
+.include "../../x11/keybinder/buildlink3.mk"
+.endif # PY_KEYBINDER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -py-keybinder