avahi-python: provides avahi, includes python bindings
authorPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 23 Aug 2007 10:12:02 +0000 (10:12 +0000)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 23 Aug 2007 10:12:02 +0000 (10:12 +0000)
packages/avahi/avahi-python_0.6.21.bb [new file with mode: 0644]
packages/avahi/files/configure-check-pymod.patch [new file with mode: 0644]

diff --git a/packages/avahi/avahi-python_0.6.21.bb b/packages/avahi/avahi-python_0.6.21.bb
new file mode 100644 (file)
index 0000000..8eaac07
--- /dev/null
@@ -0,0 +1,14 @@
+require avahi.inc
+PR = "r0"
+
+# FIXME: without --enable-gtk, avahi-discover (pygtk) won't be built
+FILES_avahi-discover = ""
+
+PROVIDES = "avahi"
+DEPENDS += "python-native"
+
+SRC_URI += "file://dbus-pre-1.1.1-support.patch;patch=1 \
+            file://configure-check-pymod.patch;patch=1"
+S = "${WORKDIR}/avahi-${PV}"
+
+AVAHI_PYTHON = "--enable-python"
diff --git a/packages/avahi/files/configure-check-pymod.patch b/packages/avahi/files/configure-check-pymod.patch
new file mode 100644 (file)
index 0000000..e2df5d6
--- /dev/null
@@ -0,0 +1,27 @@
+Index: avahi-0.6.21/configure.ac
+===================================================================
+--- avahi-0.6.21.orig/configure.ac     2007-08-16 21:36:12.000000000 +0200
++++ avahi-0.6.21/configure.ac  2007-08-16 21:45:14.000000000 +0200
+@@ -700,10 +700,6 @@
+         esac],
+         [HAVE_PYGTK=yes])
+     
+-    if test "x$HAVE_PYGTK" = "xyes" ; then
+-        AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(Could not find Python module gtk)])
+-    fi
+-
+     if test "x$HAVE_DBUS" = "xyes" ; then
+         AC_ARG_ENABLE(python-dbus,
+@@ -715,11 +711,6 @@
+             esac],
+             [HAVE_PYTHON_DBUS=yes])
+     
+-        if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
+-            AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)])
+-        fi
+-
+-        AM_CHECK_PYMOD(socket,,,[AC_MSG_ERROR(Could not find Python module socket)])
+         if test "x$HAVE_GDBM" = "xyes"; then
+             AM_CHECK_PYMOD(gdbm,,,[AC_MSG_ERROR(Could not find Python module gdbm)])
+         fi