[Lunar-commits] <moonbase> pygobject2: a 2.x version of the pygobject module needed by pygtk.

Florin Braescu florin at lunar-linux.org
Fri Apr 13 20:48:52 CEST 2012


commit 4a8dc1a6e116254156039e1e46294a918bed3e33
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Fri Apr 13 20:48:52 2012 +0200

    pygobject2: a 2.x version of the pygobject module needed by pygtk.
---
 python/pygobject2/BUILD     |   18 ++++++++++++++++++
 python/pygobject2/CONFIGURE |    1 +
 python/pygobject2/DEPENDS   |    5 +++++
 python/pygobject2/DETAILS   |   22 ++++++++++++++++++++++
 4 files changed, 46 insertions(+)

diff --git a/python/pygobject2/BUILD b/python/pygobject2/BUILD
new file mode 100644
index 0000000..8c2d844
--- /dev/null
+++ b/python/pygobject2/BUILD
@@ -0,0 +1,18 @@
+(
+
+  patch_it $SOURCE_CACHE/$SOURCE2 1  &&
+
+  if [ "`get_module_config DOCS`" = "n" ] ; then
+    sedit "s/SUBDIRS = docs codegen/SUBDIRS = codegen/g" Makefile.in
+  fi  &&
+
+   ./configure  --prefix=${GNOME210_PREFIX:-/usr}  \
+                --build=$BUILD        \
+                --sysconfdir=/etc     \
+                --localstatedir=/var  \
+                --infodir=${GNOME210_PREFIX:-/usr}/share/info  \
+                --mandir=${GNOME210_PREFIX:-/usr}/share/man    \
+                $OPTS                                         &&
+    default_make
+
+) > $C_FIFO 2>&1
diff --git a/python/pygobject2/CONFIGURE b/python/pygobject2/CONFIGURE
new file mode 100644
index 0000000..04b5a83
--- /dev/null
+++ b/python/pygobject2/CONFIGURE
@@ -0,0 +1 @@
+mquery DOCS "Build docs?" n
diff --git a/python/pygobject2/DEPENDS b/python/pygobject2/DEPENDS
new file mode 100644
index 0000000..d5d219d
--- /dev/null
+++ b/python/pygobject2/DEPENDS
@@ -0,0 +1,5 @@
+depends  Python
+depends  glib-2
+depends  pycairo
+
+optional_depends gobject-introspection "" "--enable-introspection=no" "for introspection"
diff --git a/python/pygobject2/DETAILS b/python/pygobject2/DETAILS
new file mode 100644
index 0000000..24bacdd
--- /dev/null
+++ b/python/pygobject2/DETAILS
@@ -0,0 +1,22 @@
+          MODULE=pygobject2
+           MAJOR=2.28
+         VERSION=$MAJOR.6
+          SOURCE=pygobject-$VERSION.tar.xz
+         SOURCE2=pygobject-$VERSION-fixes.patch.xz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/pygobject-$VERSION
+      SOURCE_URL=$GNOME_URL/sources/pygobject/${VERSION%.*}
+     SOURCE2_URL=$PATCH_URL
+      SOURCE_VFY=sha1:b1749ba806499f4c2780dbd1cbb363aaf1f41e78
+#     SOURCE2_VFY=sha1:
+        WEB_SITE=http://www.pygtk.org
+         ENTERED=20050319
+         UPDATED=20120413
+           SHORT="Python bindings for GObject"
+
+cat << EOF
+PyGObject provides a convenient wrapper for the GObject+ library for
+use in Python programs, and takes care of many of the boring details
+such as managing memory and type casting. When combined with PyGTK,
+PyORBit and gnome-python, it can be used to write full featured GNOME
+applications.
+EOF


More information about the Lunar-commits mailing list