[arch-commits] Commit in pygtk (3 files)

Jan de Groot jgc at archlinux.org
Wed Aug 12 12:23:12 UTC 2009


    Date: Wednesday, August 12, 2009 @ 08:23:12
  Author: jgc
Revision: 49558

Update to 2.15.2:
- Remove numpy patch, this has been integrated upstream

Added:
  pygtk/gnome-unstable/
Modified:
  pygtk/gnome-unstable/PKGBUILD
Deleted:
  pygtk/gnome-unstable/pygtk-2.13.0-numpy.patch

--------------------------+
 PKGBUILD                 |   18 +---
 pygtk-2.13.0-numpy.patch |  169 ---------------------------------------------
 2 files changed, 6 insertions(+), 181 deletions(-)

Modified: gnome-unstable/PKGBUILD
===================================================================
--- trunk/PKGBUILD	2009-08-12 11:53:09 UTC (rev 49556)
+++ gnome-unstable/PKGBUILD	2009-08-12 12:23:12 UTC (rev 49558)
@@ -3,27 +3,21 @@
 # Contributor: Sarah Hay <sarahhay at mb.sympatico.ca>
 
 pkgname=pygtk
-pkgver=2.14.1
-pkgrel=4
+pkgver=2.15.2
+pkgrel=1
 pkgdesc="Python bindings for the GTK widget set"
 arch=('i686' 'x86_64')
 license=('LGPL')
-depends=('libglade>=2.6.3' 'pycairo>=1.6.4' 'pygobject>=2.16.0' 'python-numpy')
-options=('!libtool' 'force')
+depends=('libglade>=2.6.4' 'pycairo>=1.8.6' 'pygobject>=2.19.0' 'python-numpy')
+options=('!libtool')
 url="http://www.pygtk.org/"
-source=(http://ftp.gnome.org/pub/gnome/sources/pygtk/2.14/${pkgname}-${pkgver}.tar.bz2
-        pygtk-2.13.0-numpy.patch)
+source=(http://ftp.gnome.org/pub/gnome/sources/pygtk/2.15/${pkgname}-${pkgver}.tar.bz2)
+sha1sums=('14b1ce62d3a246a386feaaea74ef9de1dfcaa803')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-
-  # Patch to use numpy instead of numeric (thanks gentoo)
-  patch -Np1 < ${srcdir}/pygtk-2.13.0-numpy.patch || return 1
-
   ./configure --prefix=/usr || return 1
   make || return 1
   make DESTDIR="${pkgdir}" install || return 1
   install -m644 gtk/gtk-extrafuncs.defs "${pkgdir}/usr/share/pygtk/2.0/defs/" || return 1
 }
-md5sums=('c27a7d21b87910e80605d9135d220592'
-         'a4b3c8d3c46711db7b8679624b4a0207')

Deleted: gnome-unstable/pygtk-2.13.0-numpy.patch
===================================================================
--- trunk/pygtk-2.13.0-numpy.patch	2009-08-12 11:53:09 UTC (rev 49556)
+++ gnome-unstable/pygtk-2.13.0-numpy.patch	2009-08-12 12:23:12 UTC (rev 49558)
@@ -1,169 +0,0 @@
-diff -Nur pygtk-2.13.0.orig/configure.ac pygtk-2.13.0/configure.ac
---- pygtk-2.13.0.orig/configure.ac	2009-01-19 21:59:23.745618038 +0000
-+++ pygtk-2.13.0/configure.ac	2009-01-19 22:02:53.691466899 +0000
-@@ -336,18 +336,19 @@
- esac
- 
- 
--dnl checks to see if Numeric Python is installed.
-+dnl checks to see if numpy is installed.
- AC_ARG_ENABLE(numpy,
--  AC_HELP_STRING([--disable-numpy], [Disable numeric python features]),,
-+  AC_HELP_STRING([--disable-numpy], [Disable numpy features]),,
-   enable_numpy=yes)
- 
- if test "x$enable_numpy" != xno; then
-   save_CPPFLAGS="$CPPFLAGS"
--  CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
--  AC_CHECK_HEADER([Numeric/arrayobject.h],
--    [AC_DEFINE(HAVE_NUMPY,,[whether to include numeric python support])],,
-+  numpy_INCLUDES=`$PYTHON -c "import numpy; print numpy.get_include()"`
-+  CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES -I$numpy_INCLUDES"
-+  AC_CHECK_HEADER([numpy/arrayobject.h],
-+    [AC_DEFINE(HAVE_NUMPY,,[whether to include numpy support])],,
-     [#include <Python.h>])
--  CPPFLAGS="$save_CPPFLAGS"
-+  CPPFLAGS="$save_CPPFLAGS -I$numpy_INCLUDES"
- fi
- 
- 
-diff -Nur pygtk-2.13.0.orig/docs/reference/pygtk-gdkpixbuf.xml pygtk-2.13.0/docs/reference/pygtk-gdkpixbuf.xml
---- pygtk-2.13.0.orig/docs/reference/pygtk-gdkpixbuf.xml	2009-01-19 21:59:23.705618876 +0000
-+++ pygtk-2.13.0/docs/reference/pygtk-gdkpixbuf.xml	2009-01-19 22:07:24.796976315 +0000
-@@ -484,13 +484,13 @@
- 	    <row valign="top">
- 	      <entry>"pixel_array"</entry>
- 	      <entry>Read</entry>
--	      <entry>A numeric array containing the pixel values of the
-+	      <entry>A numpy array containing the pixel values of the
- <link
- linkend="class-gdkpixbuf"><classname>gtk.gdk.Pixbuf</classname></link>. The
--contents of the numeric array can be changed even though the array is
-+contents of the numpy array can be changed even though the array is
- read-only. However you cannot change the pixel data of pixbufs that are
- backed by a const string such as stock icon pixbufs.
--<literal>PyGTK</literal> must be compiled with Numeric Python support for
-+<literal>PyGTK</literal> must be compiled with numpy support for
- this to work.</entry>
- 	    </row>
- 
-@@ -2410,7 +2410,7 @@
-       <variablelist>
- 	<varlistentry>
- 	  <term><emphasis>Returns</emphasis> :</term>
--	  <listitem><simpara>a Numeric Python array containing the pixel
-+	  <listitem><simpara>a numpy array containing the pixel
- 	  data of the pixbuf</simpara></listitem>
- 	</varlistentry>
-       </variablelist>
-@@ -2420,10 +2420,10 @@
-       </note>
- 
-       <para>The <methodname>get_pixels_array</methodname>() method returns a
--Numeric Python array containing the pixel data of the pixbuf.</para>
-+numpy array containing the pixel data of the pixbuf.</para>
- 
-       <note>
--	<para>PyGTK must be compiled with Numeric Python support for this
-+	<para>PyGTK must be compiled with numpy support for this
- method to be available.</para>
-       </note>
- 
-@@ -2761,7 +2761,7 @@
-       </note>
- 
-       <para>The <function>gtk.gdk.pixbuf_new_from_array</function>()
--function returns a new pixbuf created from the Numeric Python array
-+function returns a new pixbuf created from the numpy array
- specified by <parameter>array</parameter>. <parameter>array</parameter> must
- be a 3 or 4 dimensional array (4 if the image has an alpha channel) with
- <parameter>bits_per_sample</parameter> bits per sample.
-@@ -2769,7 +2769,7 @@
- <literal>gtk.gdk.COLORSPACE_RGB</literal>.</para>
- 
-       <note>
--	<para>PyGTK must be compiled with the Numeric Python module to
-+	<para>PyGTK must be compiled with the numpy module to
- support this function.</para>
-       </note>
- 
-diff -Nur pygtk-2.13.0.orig/gtk/gdk.override pygtk-2.13.0/gtk/gdk.override
---- pygtk-2.13.0.orig/gtk/gdk.override	2009-01-19 21:59:23.625620552 +0000
-+++ pygtk-2.13.0/gtk/gdk.override	2009-01-19 22:03:16.638820999 +0000
-@@ -43,7 +43,7 @@
- #define GDK_DISPLAY(object) (GDK_DISPLAY_OBJECT(object))
- 
- #ifdef HAVE_NUMPY
--#  include <Numeric/arrayobject.h>
-+#  include <numpy/arrayobject.h>
- static int have_numpy(void);
- #endif
- 
-diff -Nur pygtk-2.13.0.orig/gtk/gdkpixbuf.override pygtk-2.13.0/gtk/gdkpixbuf.override
---- pygtk-2.13.0.orig/gtk/gdkpixbuf.override	2009-01-19 21:59:23.629619993 +0000
-+++ pygtk-2.13.0/gtk/gdkpixbuf.override	2009-01-19 22:08:05.661044737 +0000
-@@ -63,7 +63,7 @@
- static int
- have_numpy(void)
- {
--    /* Return 1 if Numeric is available,
-+    /* Return 1 if numpy is available,
-        return 0 and set and exception if it is not. */
-     static int import_done = 0;
-     static PyObject *exc_type=NULL, *exc_value=NULL;
-@@ -123,7 +123,7 @@
-     array->base = (PyObject *)self;
-     return PyArray_Return(array);
- #else
--    PyErr_SetString(PyExc_RuntimeError, "pygtk was not compiled with Numeric Python support");
-+    PyErr_SetString(PyExc_RuntimeError, "pygtk was not compiled with numpy support");
-     return NULL;
- #endif
- }
-@@ -410,7 +410,7 @@
-     return ret;
- 
- #else
--    PyErr_SetString(PyExc_RuntimeError, "pygtk was not compiled with Numeric Python support");
-+    PyErr_SetString(PyExc_RuntimeError, "pygtk was not compiled with numpy support");
-     return NULL;
- #endif
- }
-diff -Nur pygtk-2.13.0.orig/README pygtk-2.13.0/README
---- pygtk-2.13.0.orig/README	2009-01-19 21:59:23.745618038 +0000
-+++ pygtk-2.13.0/README	2009-01-19 21:59:38.861230833 +0000
-@@ -54,7 +54,7 @@
-     GTK+ 2.14.0 or higher for 2.14 API
-   * libglade 2.5.0 or higher (optional)
-   * pycairo 1.0.2 or higher (optional)
--  * Numeric (optional)
-+  * numpy (optional)
- 
- This release is supporting the following GTK+ releases:
- 
-diff -Nur pygtk-2.13.0.orig/setup.py pygtk-2.13.0/setup.py
---- pygtk-2.13.0.orig/setup.py	2009-01-19 21:59:23.749618038 +0000
-+++ pygtk-2.13.0/setup.py	2009-01-19 22:04:57.850587168 +0000
-@@ -228,16 +228,16 @@
-         data_files.append((DEFS_DIR, ('pangocairo.defs',)))
-         GLOBAL_MACROS.append(('HAVE_PYCAIRO',1))
- if gtk.can_build():
--    if '--disable-numeric' in sys.argv:
--        sys.argv.remove('--disable-numeric')
-+    if '--disable-numpy' in sys.argv:
-+        sys.argv.remove('--disable-numpy')
-     else:
-         try:
--            import Numeric
--            Numeric # pyflakes
-+            import numpy
-+            numpy # pyflakes
-             GLOBAL_MACROS.append(('HAVE_NUMPY', 1))
-         except ImportError:
--            print ('* Numeric module could not be found, '
--                   'will build without Numeric support.')
-+            print ('* numpy module could not be found, '
-+                   'will build without numpy support.')
-     ext_modules.append(gtk)
-     data_files.append((os.path.join(INCLUDE_DIR, 'pygtk'), ('gtk/pygtk.h',)))
-     data_files.append((DEFS_DIR, ('gtk/gdk.defs', 'gtk/gdk-types.defs',




More information about the arch-commits mailing list