[oe-commits] org.oe.dev python-pygobject: updated to 2.12.3, added fix to get it built on 64bit (from Poky)

hrw commit openembedded-commits at lists.openembedded.org
Fri Mar 23 11:12:07 UTC 2007


python-pygobject: updated to 2.12.3, added fix to get it built on 64bit (from Poky)

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 27da4e71e0cfec0f89680d407ee1de218f47d599
ViewMTN: http://monotone.openembedded.org/revision.psp?id=27da4e71e0cfec0f89680d407ee1de218f47d599
Files:
1
packages/python/python-pygobject
packages/python/python-pygobject/python-path.patch
packages/python/python-pygobject-native_2.12.3.bb
packages/python/python-pygobject_2.12.3.bb
Diffs:

#
# mt diff -r263476daf552224b7a7d82d28a0890e46e8c8c27 -r27da4e71e0cfec0f89680d407ee1de218f47d599
#
# 
# 
# add_dir "packages/python/python-pygobject"
# 
# add_file "packages/python/python-pygobject/python-path.patch"
#  content [456c80476d80369857a7d37278a32421de5f4674]
# 
# add_file "packages/python/python-pygobject-native_2.12.3.bb"
#  content [b12c35aa95676b05bbac981e68101d677cf0edcf]
# 
# add_file "packages/python/python-pygobject_2.12.3.bb"
#  content [69b36019c8f35804ff9296dea57d7589ecb481ae]
# 
============================================================
--- packages/python/python-pygobject/python-path.patch	456c80476d80369857a7d37278a32421de5f4674
+++ packages/python/python-pygobject/python-path.patch	456c80476d80369857a7d37278a32421de5f4674
@@ -0,0 +1,23 @@
+Index: pygobject-2.12.3/m4/python.m4
+===================================================================
+--- pygobject-2.12.3.orig/m4/python.m4	2007-03-02 15:00:20.945635455 +0100
++++ pygobject-2.12.3/m4/python.m4	2007-03-02 15:00:43.532189734 +0100
+@@ -43,12 +43,18 @@
+ [AC_REQUIRE([AM_PATH_PYTHON])
+ 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}"
+ 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:
+ save_CPPFLAGS="$CPPFLAGS"
============================================================
--- packages/python/python-pygobject-native_2.12.3.bb	b12c35aa95676b05bbac981e68101d677cf0edcf
+++ packages/python/python-pygobject-native_2.12.3.bb	b12c35aa95676b05bbac981e68101d677cf0edcf
@@ -0,0 +1,7 @@
+require python-pygobject_${PV}.bb
+
+DEPENDS = "python-native"
+
+SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/2.12/pygobject-${PV}.tar.bz2 "
+
+inherit native
============================================================
--- packages/python/python-pygobject_2.12.3.bb	69b36019c8f35804ff9296dea57d7589ecb481ae
+++ packages/python/python-pygobject_2.12.3.bb	69b36019c8f35804ff9296dea57d7589ecb481ae
@@ -0,0 +1,22 @@
+DESCRIPTION = "Python GObject bindings"
+SECTION = "devel/python"
+LICENSE = "LGPL"
+DEPENDS = "python-pygobject-native"
+PR = "r1"
+
+SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/2.12/pygobject-${PV}.tar.bz2 \
+           file://python-path.patch;patch=1"
+
+S = "${WORKDIR}/pygobject-${PV}"
+
+inherit autotools distutils-base pkgconfig
+
+EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
+
+do_stage() {
+	autotools_stage_all
+	install -d ${STAGING_LIBDIR}/../share/pygobject/
+	cp -dpfR docs/* ${STAGING_LIBDIR}/../share/pygobject/
+	install -d ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
+	cp docs/style.css ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
+}






More information about the Openembedded-commits mailing list