[oe-commits] org.oe.dev flumotion: add 0.4.1 from poky

koen commit openembedded-commits at lists.openembedded.org
Sun Jun 17 10:34:38 UTC 2007


flumotion: add 0.4.1 from poky

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: b0f2b6b66673367e2119e54761590a724c20c2e1
ViewMTN: http://monotone.openembedded.org/revision.psp?id=b0f2b6b66673367e2119e54761590a724c20c2e1
Files:
1
packages/flumotion
packages/flumotion/files
packages/flumotion/files/no-check-for-python-stuff.patch
packages/flumotion/files/python-path.patch
packages/flumotion/flumotion_0.4.1.bb
Diffs:

#
# mt diff -r381f062d9435d56c4a2fe6ab295046be014e94a1 -rb0f2b6b66673367e2119e54761590a724c20c2e1
#
# 
# 
# add_dir "packages/flumotion"
# 
# add_dir "packages/flumotion/files"
# 
# add_file "packages/flumotion/files/no-check-for-python-stuff.patch"
#  content [5dfdb0b91e2af78134cf08c837662a23ed1331e7]
# 
# add_file "packages/flumotion/files/python-path.patch"
#  content [a5175a8645f591de1724bed3939cce5f12254f2a]
# 
# add_file "packages/flumotion/flumotion_0.4.1.bb"
#  content [557d935006f3f78e002d01f7cfa47b79871cbf30]
# 
============================================================
--- packages/flumotion/files/no-check-for-python-stuff.patch	5dfdb0b91e2af78134cf08c837662a23ed1331e7
+++ packages/flumotion/files/no-check-for-python-stuff.patch	5dfdb0b91e2af78134cf08c837662a23ed1331e7
@@ -0,0 +1,68 @@
+Index: flumotion-0.4.1/configure.ac
+===================================================================
+--- flumotion-0.4.1.orig/configure.ac	2007-03-05 17:16:48.121264330 +0100
++++ flumotion-0.4.1/configure.ac	2007-03-05 17:20:40.343837320 +0100
+@@ -73,13 +73,6 @@
+   AC_MSG_ERROR([PyGTK 2.5.2 contains known bugs, please install other version])
+ fi
+ 
+-if test "x$DISPLAY" != "x"; then
+-  AS_PYTHON_IMPORT([gtk.glade],,
+-                   AC_MSG_ERROR([You need to have python libglade bindings installed]))
+-else
+-  AC_MSG_NOTICE([Not trying to import gtk.glade because DISPLAY is unset])
+-fi
+-
+ if test $GST_010_SUPPORTED = "no"; then
+   AC_MSG_ERROR([No appropriate version of PyGTK installed. Correct the above
+ errors and try again.])
+@@ -94,16 +87,6 @@
+       [AC_MSG_RESULT([$PYGST_010_PKG_ERRORS])
+        GST_010_SUPPORTED=no])
+ 
+-  if test $GST_010_SUPPORTED = "yes"; then
+-    saved_PYTHONPATH=$PYTHONPATH
+-    export PYTHONPATH=$PYGST_010_DIR:$PYTHONPATH
+-    AS_PYTHON_IMPORT([gst],,
+-                     [AC_MSG_NOTICE([Unable to import gst-python 0.10 -- check your PYTHONPATH?])
+-                      GST_010_SUPPORTED=no],
+-                     [import pygst; pygst.require('0.10')],
+-                     [assert gst.pygst_version[[1]] == 10 or (gst.pygst_version[[1]] == 9 and gst.pygst_version[[2]] >= 7)])
+-
+-  fi
+ fi
+ 
+ if test $GST_010_SUPPORTED = "no"; then
+@@ -158,32 +141,7 @@
+ AC_CHECK_PROG(PYCHECKER, pychecker, yes, no)
+ AM_CONDITIONAL(HAVE_PYCHECKER, test "x$PYCHECKER" = "xyes")
+ 
+-dnl check for Twisted
+-AS_PYTHON_IMPORT(twisted,
+-  [
+-  AC_MSG_CHECKING(for Twisted >= 2.0.1)
+-  prog="
+-import sys
+-import twisted.copyright
+-minver = '2.0.1'
+-if twisted.copyright.version < minver:
+-    sys.exit(1)
+-sys.exit(0)
+-"
+-  if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
+-  then
+-    AC_MSG_RESULT(found)
+-  else
+-    AC_MSG_RESULT(too old)
+-    AC_MSG_ERROR([You need at least version 2.0.1 of Twisted])
+-  fi
+-  ]
+-  ,
+-  AC_MSG_ERROR([You need at least version 2.0.1 of Twisted])
+-)
+ 
+-TWISTED_MODULE([twisted.names])
+-TWISTED_MODULE([twisted.web])
+ 
+ AC_CONFIG_FILES([env], [chmod +x env])
+ AC_CONFIG_FILES([bin/flumotion], [chmod +x bin/flumotion])
============================================================
--- packages/flumotion/files/python-path.patch	a5175a8645f591de1724bed3939cce5f12254f2a
+++ packages/flumotion/files/python-path.patch	a5175a8645f591de1724bed3939cce5f12254f2a
@@ -0,0 +1,25 @@
+Index: flumotion-0.3.1/common/as-python.m4
+===================================================================
+--- flumotion-0.3.1.orig/common/as-python.m4	2007-03-02 15:26:46.704717964 +0100
++++ flumotion-0.3.1/common/as-python.m4	2007-03-02 15:27:28.601326374 +0100
+@@ -199,6 +199,12 @@
+   AC_MSG_CHECKING(for headers required to compile python extensions)
+ 
+   dnl deduce PYTHON_INCLUDES
++
++  AC_ARG_WITH(python-includes,
++  	[  --with-python-includes=DIR  path to Python includes], py_exec_prefix=$withval)
++  if test x$py_exec_prefix != x; then
++  PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
++  else
+   py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
+   py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+   PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+@@ -206,6 +212,7 @@
+   if test "$py_prefix" != "$py_exec_prefix"; then
+     PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+   fi
++  fi
+   AC_SUBST(PYTHON_INCLUDES)
+ 
+   dnl check if the headers exist:
============================================================
--- packages/flumotion/flumotion_0.4.1.bb	557d935006f3f78e002d01f7cfa47b79871cbf30
+++ packages/flumotion/flumotion_0.4.1.bb	557d935006f3f78e002d01f7cfa47b79871cbf30
@@ -0,0 +1,30 @@
+DESCRIPTION = "Fluendo Streaming Server"
+LICENSE = "GPL"
+DEPENDS = "gstreamer python-gst twisted python-pygtk2"
+RDEPENDS = "python-twisted-core python-twisted-web python-core python-gst"
+RDEPENDS_${PN}-gui = "${PN} python-pygtk2"
+PR = "r3"
+
+SRC_URI = "http://www.flumotion.net/src/flumotion/flumotion-${PV}.tar.bz2 \
+           file://python-path.patch;patch=1 \
+	   file://no-check-for-python-stuff.patch;patch=1"
+
+inherit autotools distutils-base pkgconfig
+
+export EPYDOC = "no"
+
+EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
+
+PACKAGES =+ "flumotion-gui"
+
+FILES_${PN} = "${bindir} ${sbindir} ${libdir}/flumotion"
+FILES_${PN}-dev += "${libdir}/pkgconfig"
+FILES_${PN}-gui = "${bindir}/flumotion-admin ${bindir}/flumotion-tester \
+                   ${libdir}/flumotion/python/flumotion/admin/gtk \
+                   ${libdir}/flumotion/python/flumotion/component/*/admin_gtk* \
+                   ${libdir}/flumotion/python/flumotion/component/*/*/admin_gtk* \
+                   ${libdir}/flumotion/python/flumotion/extern \
+                   ${libdir}/flumotion/python/flumotion/manager \
+                   ${libdir}/flumotion/python/flumotion/ui \
+                   ${libdir}/flumotion/python/flumotion/wizard \
+                   ${datadir}/pixmaps ${datadir}/flumotion ${datadir}/applications"






More information about the Openembedded-commits mailing list