[oe-commits] org.oe.dev python-gst 0.10.10 do not require pygtk, gobject is really all it needs

mickeyl commit oe at amethyst.openembedded.net
Fri Jun 13 07:05:43 UTC 2008


python-gst 0.10.10 do not require pygtk, gobject is really all it needs

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 13c50763e78e43157246378760417af6c020c6e1
ViewMTN: http://monotone.openembedded.org/revision/info/13c50763e78e43157246378760417af6c020c6e1
Files:
1
packages/python/python-gst/import-gobject-instead-of-pygtk.patch
packages/python/python-gst_0.10.10.bb
Diffs:

#
# mt diff -rc95a34ec137b1fa08dd01dde4e91ba8fd1748647 -r13c50763e78e43157246378760417af6c020c6e1
#
#
#
# add_file "packages/python/python-gst/import-gobject-instead-of-pygtk.patch"
#  content [db291eefc86b7b9ce16681be6307b285e08260a6]
# 
# patch "packages/python/python-gst_0.10.10.bb"
#  from [567b17a1de7384771221d1f7b1e49482a299d604]
#    to [1f6718ef0b284396331b32ae8df4e6e319f69a34]
#
============================================================
--- packages/python/python-gst/import-gobject-instead-of-pygtk.patch	db291eefc86b7b9ce16681be6307b285e08260a6
+++ packages/python/python-gst/import-gobject-instead-of-pygtk.patch	db291eefc86b7b9ce16681be6307b285e08260a6
@@ -0,0 +1,19 @@
+Index: gst-python-0.10.10/gst/__init__.py
+===================================================================
+--- gst-python-0.10.10.orig/gst/__init__.py
++++ gst-python-0.10.10/gst/__init__.py
+@@ -28,13 +28,8 @@ try:
+ except:
+    pass
+ 
+-import sys
++import sys, gobject
+ 
+-# we always require 2.0 of pygtk; so if pygtk is not imported anywhere
+-# yet, we import pygtk here and .require
+-if 'gobject' not in sys.modules:
+-    import pygtk
+-    pygtk.require('2.0')
+ 
+ class Value:
+    def __init__(self, type):
============================================================
--- packages/python/python-gst_0.10.10.bb	567b17a1de7384771221d1f7b1e49482a299d604
+++ packages/python/python-gst_0.10.10.bb	1f6718ef0b284396331b32ae8df4e6e319f69a34
@@ -2,10 +2,13 @@ DEPENDS = "gstreamer gst-plugins-base py
 SECTION = "devel/python"
 LICENSE = "LGPL"
 DEPENDS = "gstreamer gst-plugins-base python-pygobject"
-PR = "ml1"
+PR = "ml2"
 
-SRC_URI = "http://gstreamer.freedesktop.org/src/gst-python/gst-python-${PV}.tar.bz2 \
-           file://python-path.patch;patch=1"
+SRC_URI = "\
+  http://gstreamer.freedesktop.org/src/gst-python/gst-python-${PV}.tar.bz2 \
+  file://python-path.patch;patch=1 \
+  file://import-gobject-instead-of-pygtk.patch;patch=1 \
+"
 S = "${WORKDIR}/gst-python-${PV}"
 
 inherit autotools distutils-base pkgconfig
@@ -30,3 +33,4 @@ FILES_${PN}-examples = "${datadir}/gst-p
 "
 FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/gst-0.10/gst/.debug/"
 FILES_${PN}-examples = "${datadir}/gst-python/0.10/examples"
+






More information about the Openembedded-commits mailing list