summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2006-10-09 20:28:04 +0000
committerRobert Buchholz <rbu@gentoo.org>2006-10-09 20:28:04 +0000
commit41d6559a05a7e5f2fde4373e0e9acaa5824489bd (patch)
tree02e759e01206090fc5a85e23a15422af9dd3794d /app-misc
parentnetlcdclient import for testing (diff)
downloadjokey-41d6559a05a7e5f2fde4373e0e9acaa5824489bd.tar.gz
jokey-41d6559a05a7e5f2fde4373e0e9acaa5824489bd.tar.bz2
jokey-41d6559a05a7e5f2fde4373e0e9acaa5824489bd.zip
Python bindings added
svn path=/trunk/; revision=35
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/g15daemon/Manifest12
-rw-r--r--app-misc/g15daemon/g15daemon-1.2.1.ebuild40
2 files changed, 38 insertions, 14 deletions
diff --git a/app-misc/g15daemon/Manifest b/app-misc/g15daemon/Manifest
index 255c16c..983d832 100644
--- a/app-misc/g15daemon/Manifest
+++ b/app-misc/g15daemon/Manifest
@@ -3,14 +3,18 @@ MD5 aef7b9ffc954e24345400d7784fba315 files/g15daemon-1.2.1.rc 608
RMD160 431f7b5abab5a8f4d989976d8ff270f9812b3107 files/g15daemon-1.2.1.rc 608
SHA256 a440999cf2793ff1c59265d5b63e7e5a0494c57751159c6b4cdebb5263fb6092 files/g15daemon-1.2.1.rc 608
DIST g15daemon-1.2.1.tar.bz2 267042 RMD160 0b94f4541603448efbf6b4bdbb1bcadc254a614e SHA1 ba03cd08601b965f5afd84353dcd8eafefa2afe5 SHA256 207efaa4180e3ab6069213f042e149650cd9af54e4976fc0d36b48f6192fa8e9
-EBUILD g15daemon-1.2.1.ebuild 3182 RMD160 cd245ac20132ce5c5d59a65418e55fdd54e36aab SHA1 8ddeda895701b0653bee51107f9ed47c30d364a6 SHA256 21e83430e153d9c34eec2fd0fdfa8ac81890eacbc66a8415c8fd5e5fe7b4daaa
-MD5 0a30ff9c708721226cc133baed1183f1 g15daemon-1.2.1.ebuild 3182
-RMD160 cd245ac20132ce5c5d59a65418e55fdd54e36aab g15daemon-1.2.1.ebuild 3182
-SHA256 21e83430e153d9c34eec2fd0fdfa8ac81890eacbc66a8415c8fd5e5fe7b4daaa g15daemon-1.2.1.ebuild 3182
+EBUILD g15daemon-1.2.1.ebuild 3795 RMD160 1b6a567dcfe374c27a29c92793e6cf50a5c58a60 SHA1 15039f175e2be561256be9c1477a939d58ce470d SHA256 eb05ec53ec4dc20b5db942bc0d41ddb1fcc1a6e0fdb76d057a99d20461f169b2
+MD5 82badcde79c8f600ace7c34acd096693 g15daemon-1.2.1.ebuild 3795
+RMD160 1b6a567dcfe374c27a29c92793e6cf50a5c58a60 g15daemon-1.2.1.ebuild 3795
+SHA256 eb05ec53ec4dc20b5db942bc0d41ddb1fcc1a6e0fdb76d057a99d20461f169b2 g15daemon-1.2.1.ebuild 3795
MISC ChangeLog 445 RMD160 4b578d4c9f0b87b823774e510ff300e58021b852 SHA1 4bfeacee8bd29413694aa965d7ee1fb85802a632 SHA256 7cbd5b5c09f194057552d06245038d9db1a11aaefb20172c2221ecccbdbdd8cd
MD5 0da829acf6084a65cc2e5a63dd1a3d3d ChangeLog 445
RMD160 4b578d4c9f0b87b823774e510ff300e58021b852 ChangeLog 445
SHA256 7cbd5b5c09f194057552d06245038d9db1a11aaefb20172c2221ecccbdbdd8cd ChangeLog 445
+MISC g15daemon-1.2.1.ebuild~ 3794 RMD160 0fdbdc463eceb2b6a56f8694c2501ffca88298e0 SHA1 4dc5bba5b13ae997cc5f35a0f93da6e327f2408b SHA256 7513a622fcf5e9650de9117784315d7ddc6bfd1e55ace8084e3225ae032fb487
+MD5 d21c407a7d2f382e851f2026d293ce26 g15daemon-1.2.1.ebuild~ 3794
+RMD160 0fdbdc463eceb2b6a56f8694c2501ffca88298e0 g15daemon-1.2.1.ebuild~ 3794
+SHA256 7513a622fcf5e9650de9117784315d7ddc6bfd1e55ace8084e3225ae032fb487 g15daemon-1.2.1.ebuild~ 3794
MISC metadata.xml 347 RMD160 57d9115a67602540437d61e4bf94f2f5e164e061 SHA1 2fc61586cd884fab52bf7db6056aee450d2bfa22 SHA256 1f8d5bf798f8c8fbdd3c05d5a65edfb149dd36dacd054f237078a748816d6b61
MD5 c64d0b3bf93b0d9a555d4faaaa5fa9f3 metadata.xml 347
RMD160 57d9115a67602540437d61e4bf94f2f5e164e061 metadata.xml 347
diff --git a/app-misc/g15daemon/g15daemon-1.2.1.ebuild b/app-misc/g15daemon/g15daemon-1.2.1.ebuild
index 4b3443d..edd4505 100644
--- a/app-misc/g15daemon/g15daemon-1.2.1.ebuild
+++ b/app-misc/g15daemon/g15daemon-1.2.1.ebuild
@@ -3,6 +3,8 @@
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.2.1.ebuild,v 1.1 2006/10/04 18:50:38 jokey Exp $
inherit linux-info eutils
+inherit perl-module
+inherit python
DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
@@ -11,21 +13,17 @@ SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="perl xmms"
+IUSE="perl python xmms"
DEPEND="dev-libs/libusb
dev-libs/libdaemon
dev-libs/libg15
perl? ( >=dev-perl/Inline-0.4 )
+ python? ( dev-lang/python )
xmms? ( media-sound/xmms )"
RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"
-if use perl; then
- inherit perl-module
-fi
-
-
uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
@@ -50,14 +48,16 @@ pkg_setup() {
src_unpack() {
unpack ${A}
- cd "${WORKDIR}"
if use perl; then
- tar xzf "${S}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
+ unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
+ fi
+ if use python; then
+ unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
cd "${S}"
if use xmms; then
- sed -i "6s:-O2:${CFLAGS} -fPIC:" g15daemon_xmms/Makefile
+ sed -i "6s:-O2:${CFLAGS} -fPIC -I../libg15daemon_client -L../libg15daemon_client/.libs:" g15daemon_xmms/Makefile
fi
}
@@ -106,9 +106,24 @@ src_install() {
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_install
fi
+
+ if use python; then
+ einfo "Installing Python Bindings (g15daemon.py)"
+ cd "${WORKDIR}/pyg15daemon"
+ python_version
+
+ insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
+ doins g15daemon.py
+ newdoc AUTHORS pyg15daemon_AUTHORS
+ fi
}
pkg_postinst() {
+ if use python; then
+ python_mod_optimize "${ROOT}/usr/lib/python*/site-packages/g15daemon"
+ einfo ""
+ fi
+
einfo "To use g15daemon, you need to add g15daemon to the default runlevel."
einfo "This can be done with:"
einfo "# /sbin/rc-update add g15daemon default"
@@ -122,5 +137,10 @@ pkg_postinst() {
einfo ""
einfo "adding keycodes to an existing xmodmap:"
einfo "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
- einfo ""
}
+
+pkg_postrm() {
+ if use python; then
+ python_mod_cleanup "${ROOT}/usr/lib/python*/site-packages/g15daemon"
+ fi
+} \ No newline at end of file