diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2009-07-26 23:24:07 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2009-07-26 23:24:07 +0000 |
commit | 9323d69b3f2d1521a7213fb91090b5a59c26d39a (patch) | |
tree | e61e4fa99ec9e1caec574f5da7236620a4e4d89e /dev-python | |
parent | Automated update of use.local.desc (diff) | |
download | historical-9323d69b3f2d1521a7213fb91090b5a59c26d39a.tar.gz historical-9323d69b3f2d1521a7213fb91090b5a59c26d39a.tar.bz2 historical-9323d69b3f2d1521a7213fb91090b5a59c26d39a.zip |
Version
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pygtk/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/pygtk/Manifest | 17 | ||||
-rw-r--r-- | dev-python/pygtk/files/pygtk-2.14.1-fix-numpy-warning.patch | 12 | ||||
-rw-r--r-- | dev-python/pygtk/files/pygtk-2.14.1-gtktoggle.patch | 11 | ||||
-rw-r--r-- | dev-python/pygtk/files/pygtk-2.14.1-ltihooks.patch | 191 | ||||
-rw-r--r-- | dev-python/pygtk/files/pygtk-2.14.1-numpy.patch | 113 | ||||
-rw-r--r-- | dev-python/pygtk/pygtk-2.14.1-r1.ebuild | 89 |
7 files changed, 442 insertions, 2 deletions
diff --git a/dev-python/pygtk/ChangeLog b/dev-python/pygtk/ChangeLog index 1598dd27b5b1..c3167024cb6a 100644 --- a/dev-python/pygtk/ChangeLog +++ b/dev-python/pygtk/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-python/pygtk # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.212 2009/05/04 14:05:59 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.213 2009/07/26 23:24:07 eva Exp $ + +*pygtk-2.14.1-r1 (26 Jul 2009) + + 26 Jul 2009; Gilles Dartiguelongue <eva@gentoo.org> + +pygtk-2.14.1-r1.ebuild, +files/pygtk-2.14.1-fix-numpy-warning.patch, + +files/pygtk-2.14.1-gtktoggle.patch, +files/pygtk-2.14.1-ltihooks.patch, + +files/pygtk-2.14.1-numpy.patch: + Version bump. fix tests with python-2.6, bug #268315. Switch to numpy, bug + #185692. Fix GtkToggleButton bug with gtk+-2.16, bug #275449. 04 May 2009; Jeroen Roovers <jer@gentoo.org> pygtk-2.14.1.ebuild: Stable for HPPA (bug #260063). diff --git a/dev-python/pygtk/Manifest b/dev-python/pygtk/Manifest index 7191be059c0e..ef77d7fe92da 100644 --- a/dev-python/pygtk/Manifest +++ b/dev-python/pygtk/Manifest @@ -1,9 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX pygtk-2.12.1-fix-amd64.patch 391 RMD160 ff177af662fb0e83cf38d593c73a5bb01f455fd7 SHA1 b0826471db034fefaab667a0f3db1dda0f29a93c SHA256 aaf2073f38cad27b84093e9e7b017a7e5959e9b70c76eec32de974b0d7ab8af8 AUX pygtk-2.12.1-fix-codegen-location.patch 1655 RMD160 3a7135fd9f8921ecca50ad023fba743dc87fcd53 SHA1 ed5725ee4b85d50463ef7d1ec8f19efa0084aedf SHA256 3c1015484633069a9c67446269f8bce9aed34889cd109bdbb31c56dcb8afe686 AUX pygtk-2.13.0-fix-codegen-location.patch 507 RMD160 30b49791ac11da80efae1ef0f3c7ccbb72fc82f9 SHA1 dc7d975fe4ebd95afba79cac6276c73f55a9961b SHA256 f446a7b3e3ac76a9ab594738b1fbf9105c1ca17e8053b1a8712a966e9cfe54d0 +AUX pygtk-2.14.1-fix-numpy-warning.patch 360 RMD160 ce06a27501ccb74e036e98c054bdac2a89434f8a SHA1 113a8f2ad53a844613658915777ecc9e8bf448b3 SHA256 d2931f14ad3b41006fe15d1537a014b13a47b43ec9eb72a76bc0e37c5806304b +AUX pygtk-2.14.1-gtktoggle.patch 495 RMD160 16e5ad97e6c9b32625ce25df8980eedb6b631dd7 SHA1 0b6b5033215a17a12fb69de022003e3036bc466c SHA256 2206190990b37be23880d1c0b67a4078c8783b28f69a7410894f9d8624ea0e1e +AUX pygtk-2.14.1-ltihooks.patch 5848 RMD160 60856d3e3ad24661a79997b0474b407e7aa92df5 SHA1 a6bb4faaba94672ec0897977d332aaae9b99547f SHA256 1ce5cdc7c75c3f409ae9dcdc9caae6fc73df7a32468aa9b53035f15154cb908b +AUX pygtk-2.14.1-numpy.patch 3716 RMD160 0819ea958038150832072a8a6778778a83ff77a0 SHA1 2bffdbf76fefcd355752af61db586410b073ade6 SHA256 fa8a8b4c3449b11c349bb9a14f3277edd69df669382a16f71b29677eaffab315 DIST pygtk-2.12.1.tar.bz2 2175955 RMD160 c368deab52524248593b77984e93f18150efa0f4 SHA1 7a7d095f53829895174640d693c4e4af16122d98 SHA256 4100ed4bf295b03106308f1cfb9931cc22910401dab785f8bd3af9935f1fe13d DIST pygtk-2.14.1.tar.bz2 2210535 RMD160 ee32b54b5a5b12ca5718cf53505542b89e97347b SHA1 9a9a29c9de2a31e08a96f38ade43ce93ec569400 SHA256 733a5e2e1ca2ca6cf9dae0de9c035d3a428c6ec52774977f60d0618a1a27591a EBUILD pygtk-2.12.1-r2.ebuild 2254 RMD160 74da89dc4b345020c973313b7aa3976ae00eb904 SHA1 91e6f9ed3d75a9788e64fb0ac1f940c8f3ff31ca SHA256 7f736658e53e7dc097c06b91042a83662aa7077f22ddea4b9298ba95fdbd7f9a +EBUILD pygtk-2.14.1-r1.ebuild 2457 RMD160 48ce00cf3d67f344f168358adae1e1c079447b7b SHA1 a4db95b8805f9a5264e69e09d5a823269160401c SHA256 c6352fed9def8f68d0df3050bd12e82ab35abe3b84086d1609192251fab16110 EBUILD pygtk-2.14.1.ebuild 2075 RMD160 c716fa32a362fd394bfc1f25a7f20d9012ac211a SHA1 1b8179b962c4d8866793db928f0844a141d44a67 SHA256 3915d58292c34c4c549ac71fd3ad60d87bbb56fa4a61c73e64e16ded7b64b7c7 -MISC ChangeLog 26189 RMD160 f84de63318daa30f4cc0c63107e4098047421836 SHA1 c9fa84da5b17a20dc24be7232beceaeb0833c8a4 SHA256 5e05cd922a63b924f8d510a57ad9566e525cc28f64379a42792c0ef31bdbf835 +MISC ChangeLog 26599 RMD160 6ac6cfc071847e2bcff686bd652608dfd72e2f85 SHA1 7ddcfa064107883447ad8b69bffbe823d30de8e3 SHA256 3c764d1ac4ca22a7277fc2608fb761e6ad39dd73a32fd8742d836482f28e40b1 MISC metadata.xml 934 RMD160 5160cf3a201fe5209f575b0633ba8dd40d7b5ed5 SHA1 e62fb7156a43df5b3380a77f9ad7616130075f7d SHA256 6a0af6b71bbaca6634e59f933775fbf76053472b54ff3989bf26a065a4c9c426 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkps5aEACgkQ1fmVwcYIWAaPYQCbBANSm6sINr+u4Nx5TLzWt+f8 +5X8AnjTWIW13J22+IOhaTraXRE9EePzi +=Kigq +-----END PGP SIGNATURE----- diff --git a/dev-python/pygtk/files/pygtk-2.14.1-fix-numpy-warning.patch b/dev-python/pygtk/files/pygtk-2.14.1-fix-numpy-warning.patch new file mode 100644 index 000000000000..9182e8967540 --- /dev/null +++ b/dev-python/pygtk/files/pygtk-2.14.1-fix-numpy-warning.patch @@ -0,0 +1,12 @@ +--- gtk/gdkpixbuf.override-orig 2009-04-06 13:40:08.867685000 -0500 ++++ gtk/gdkpixbuf.override 2009-04-06 13:40:25.582569000 -0500 +@@ -75,7 +75,7 @@ have_numpy(void) + } + if (!import_done) { + import_done = 1; +- import_array(); ++ import_array1(1); + if (PyErr_Occurred()) { + PyErr_Fetch(&exc_type, &exc_value, &exc_tb); + Py_INCREF(exc_type); + diff --git a/dev-python/pygtk/files/pygtk-2.14.1-gtktoggle.patch b/dev-python/pygtk/files/pygtk-2.14.1-gtktoggle.patch new file mode 100644 index 000000000000..aec85009edb4 --- /dev/null +++ b/dev-python/pygtk/files/pygtk-2.14.1-gtktoggle.patch @@ -0,0 +1,11 @@ +--- gtk/gtk.override.orig 2009-06-25 20:52:31.000000000 -0400 ++++ gtk/gtk.override 2009-06-25 20:52:53.000000000 -0400 +@@ -1660,7 +1660,7 @@ + PyObject *py_use_underline = Py_True; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs, +- "|zO):GtkToggleButton.__init__", kwlist, ++ "|zO:GtkToggleButton.__init__", kwlist, + &text, &py_use_underline)) + return -1; + if (text) diff --git a/dev-python/pygtk/files/pygtk-2.14.1-ltihooks.patch b/dev-python/pygtk/files/pygtk-2.14.1-ltihooks.patch new file mode 100644 index 000000000000..dfa3851aca89 --- /dev/null +++ b/dev-python/pygtk/files/pygtk-2.14.1-ltihooks.patch @@ -0,0 +1,191 @@ +From dd2009d4e0e9fa9cd4ee8d76ec0e498e62a568b7 Mon Sep 17 00:00:00 2001 +From: Paul Pogonyshev <pogonyshev@gmx.net> +Date: Sat, 02 May 2009 13:11:06 +0000 +Subject: Remove 'ltihooks.py' as using deprecated Python module. + +Remove the script and all related imports. All relevant Makefile's +now create symbolic links for '.so' files from '.libs' to the level +up, so that C helper modules are still importable in built, but not +installed source tree. Same as in PyGObject. (Bug #565593.) +--- +diff --git a/Makefile.am b/Makefile.am +index 1ed5196..2472727 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -44,10 +44,6 @@ pkgconfig_DATA += pygtk-$(PLATFORM_VERSION).pc + defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs + defs_DATA = + +-# python +-pyexec_LTLIBRARIES = +-noinst_PYTHON = ltihooks.py +- + # pygtk scripts + pkgpythondir = $(pyexecdir)/gtk-2.0 + +@@ -141,3 +137,10 @@ doc-dist: + cp -r docs/cursors/* pygtk/cursors + tar cfz $(PACKAGE)-docs.tar.gz pygtk + rm -fr pygtk ++ ++ ++all: $(pkgpyexec_LTLIBRARIES:.la=.so) ++clean-local: ++ rm -f $(pkgpyexec_LTLIBRARIES:.la=.so) ++.la.so: ++ $(LN_S) .libs/$@ $@ || true +diff --git a/gtk/Makefile.am b/gtk/Makefile.am +index 2021220..b9ec8f3 100644 +--- a/gtk/Makefile.am ++++ b/gtk/Makefile.am +@@ -195,7 +195,7 @@ CLEANFILES += \ + gtkunixprint.c \ + gtkunixprint.defs \ + gtkunixprint-types.defs +- ++ + + EXTRA_DIST += \ + $(GTKUNIXPRINT_DEFS) \ +@@ -248,3 +248,9 @@ endif + gtk-types.c: + @: + ++ ++all: $(pygtkexec_LTLIBRARIES:.la=.so) $(pkgpyexec_LTLIBRARIES:.la=.so) ++clean-local: ++ rm -f $(pygtkexec_LTLIBRARIES:.la=.so) $(pkgpyexec_LTLIBRARIES:.la=.so) ++.la.so: ++ $(LN_S) .libs/$@ $@ || true +diff --git a/gtk/__init__.py b/gtk/__init__.py +index e2733dc..92af869 100644 +--- a/gtk/__init__.py ++++ b/gtk/__init__.py +@@ -22,14 +22,6 @@ + + import sys + +-# this can go when things are a little further along +-try: +- import ltihooks +- # pyflakes +- ltihooks +-except ImportError: +- ltihooks = None +- + # For broken embedded programs which forgot to call Sys_SetArgv + if not hasattr(sys, 'argv'): + sys.argv = [] +@@ -49,13 +41,6 @@ else: + + import gdk + +-if ltihooks: +- try: +- ltihooks.uninstall() +- del ltihooks +- except: +- pass +- + from gtk._lazyutils import LazyNamespace, LazyModule + from gtk.deprecation import _Deprecated, _DeprecatedConstant + +diff --git a/tests/common.py b/tests/common.py +index dfc3401..33216e1 100644 +--- a/tests/common.py ++++ b/tests/common.py +@@ -7,29 +7,19 @@ def importModules(buildDir, srcDir): + # Be very careful when you change this code, it's + # fragile and the order is really significant + +- # ltihooks +- sys.path.insert(0, srcDir) + # atk, pango + sys.path.insert(0, buildDir) + # _gtk, keysyms, glade + sys.path.insert(0, os.path.join(buildDir, 'gtk')) + sys.argv.append('--g-fatal-warnings') +- import ltihooks + + atk = importModule('atk', buildDir) + pango = importModule('pango', buildDir) + gtk = importModule('gtk', buildDir, 'gtk') + gdk = importModule('gtk.gdk', buildDir, '_gdk.la') + +- # gtk/__init__.py removes the ltihooks, readd them +- import gtk +- +- ltihooks.install() + glade = importModule('gtk.glade', buildDir) + +- ltihooks.uninstall() +- del ltihooks +- + globals().update(locals()) + + os.environ['PYGTK_USE_GIL_STATE_API'] = '' +-- +cgit v0.8.2 +--- a/ltihooks.py 2009-03-05 23:06:53.000000000 +0100 ++++ b/dev/null 2009-05-02 19:22:42.444026449 +0200 +@@ -1,60 +0,0 @@ +-# -*- Mode: Python; py-indent-offset: 4 -*- +-# ltihooks.py: python import hooks that understand libtool libraries. +-# Copyright (C) 2000 James Henstridge. +-# +-# This program is free software; you can redistribute it and/or modify +-# it under the terms of the GNU General Public License as published by +-# the Free Software Foundation; either version 2 of the License, or +-# (at your option) any later version. +-# +-# This program is distributed in the hope that it will be useful, +-# but WITHOUT ANY WARRANTY; without even the implied warranty of +-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-# GNU General Public License for more details. +-# +-# You should have received a copy of the GNU General Public License +-# along with this program; if not, write to the Free Software +-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +- +-import os, ihooks +- +-class LibtoolHooks(ihooks.Hooks): +- def get_suffixes(self): +- """Like normal get_suffixes, but adds .la suffixes to list""" +- ret = ihooks.Hooks.get_suffixes(self) +- ret.insert(0, ('module.la', 'rb', 3)) +- ret.insert(0, ('.la', 'rb', 3)) +- return ret +- +- def load_dynamic(self, name, filename, file=None): +- """Like normal load_dynamic, but treat .la files specially""" +- if len(filename) > 3 and filename[-3:] == '.la': +- fp = open(filename, 'r') +- dlname = '' +- installed = 1 +- line = fp.readline() +- while line: +- if len(line) > 7 and line[:7] == 'dlname=': +- dlname = line[8:-2] +- elif len(line) > 10 and line[:10] == 'installed=': +- installed = line[10:-1] == 'yes' +- line = fp.readline() +- fp.close() +- if dlname: +- if installed: +- filename = os.path.join(os.path.dirname(filename), +- dlname) +- else: +- filename = os.path.join(os.path.dirname(filename), +- '.libs', dlname) +- return ihooks.Hooks.load_dynamic(self, name, filename, file) +- +-importer = ihooks.ModuleImporter() +-importer.set_hooks(LibtoolHooks()) +- +-def install(): +- importer.install() +-def uninstall(): +- importer.uninstall() +- +-install() diff --git a/dev-python/pygtk/files/pygtk-2.14.1-numpy.patch b/dev-python/pygtk/files/pygtk-2.14.1-numpy.patch new file mode 100644 index 000000000000..12e6c185c237 --- /dev/null +++ b/dev-python/pygtk/files/pygtk-2.14.1-numpy.patch @@ -0,0 +1,113 @@ +Index: gtk/gdk.override +=================================================================== +--- gtk/gdk.override (révision 3082) ++++ gtk/gdk.override (copie de travail) +@@ -44,7 +44,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 + +Index: configure.ac +=================================================================== +--- configure.ac (révision 3082) ++++ configure.ac (copie de travail) +@@ -350,18 +350,27 @@ + 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]),, + 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])],, +- [#include <Python.h>]) +- CPPFLAGS="$save_CPPFLAGS" ++ numpy_INCLUDES=`$PYTHON -c "import numpy; print numpy.get_include()" 2> /dev/null` ++ if test "x$numpy_INCLUDES" = "x"; then ++ AC_MSG_WARN([Could not find a valid numpy installation, disabling.]) ++ enable_numpy=no ++ else ++ CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES -I$numpy_INCLUDES" ++ AC_CHECK_HEADER([numpy/arrayobject.h], ++ [AC_DEFINE(HAVE_NUMPY,,[whether to include numeric python support])], ++ [enable_numpy=no], ++ [#include <Python.h>]) ++ if test "x$enable_numpy" != "xno"; then ++ CPPFLAGS="$save_CPPFLAGS -I$numpy_INCLUDES" ++ fi ++ fi + fi + + +@@ -402,11 +411,11 @@ + $have_gtk && echo gtk with $gtk_version API + $have_libglade && echo gtk.glade + $have_gtkunixprint && echo gtk.unixprint +-echo + + if test ! $have_atk || ! $have_pango || \ + ! $have_gtk || ! $have_libglade || \ + ! $have_pangocairo || ! $have_gtkunixprint; then ++ echo + echo "The following modules will NOT be built:" + echo + $have_atk || echo atk +@@ -416,3 +425,7 @@ + $have_libglade || echo gtk.glade + $have_gtkunixprint || echo gtk.unixprint + fi ++ ++echo ++echo "Numpy support: $enable_numpy" ++echo +Index: setup.py +=================================================================== +--- setup.py (révision 3082) ++++ setup.py (copie de travail) +@@ -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', +Index: README +=================================================================== +--- README (révision 3082) ++++ README (copie de travail) +@@ -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 --git a/dev-python/pygtk/pygtk-2.14.1-r1.ebuild b/dev-python/pygtk/pygtk-2.14.1-r1.ebuild new file mode 100644 index 000000000000..4cbcff23206f --- /dev/null +++ b/dev-python/pygtk/pygtk-2.14.1-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/pygtk-2.14.1-r1.ebuild,v 1.1 2009/07/26 23:24:07 eva Exp $ + +EAPI="2" + +inherit autotools eutils flag-o-matic gnome.org python virtualx + +DESCRIPTION="GTK+2 bindings for Python" +HOMEPAGE="http://www.pygtk.org/" + +LICENSE="LGPL-2.1" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="doc examples" + +RDEPEND=">=dev-libs/glib-2.8.0 + >=x11-libs/pango-1.16.0 + >=dev-libs/atk-1.12.0 + >=x11-libs/gtk+-2.13.6 + >=gnome-base/libglade-2.5.0 + >=dev-lang/python-2.4.4-r5 + >=dev-python/pycairo-1.0.2 + >=dev-python/pygobject-2.15.3 + dev-python/numpy" + +DEPEND="${RDEPEND} + doc? ( + dev-libs/libxslt + >=app-text/docbook-xsl-stylesheets-1.70.1 ) + >=dev-util/pkgconfig-0.9" + +src_prepare() { + # Fix declaration of codegen in .pc + epatch "${FILESDIR}/${PN}-2.13.0-fix-codegen-location.patch" + + # Fix test failurs due to ltihooks + # gentoo bug #268315, upstream bug #565593 + epatch "${FILESDIR}/${P}-ltihooks.patch" + + # Switch to numpy, bug #185692 + epatch "${FILESDIR}/${P}-numpy.patch" + epatch "${FILESDIR}/${P}-fix-numpy-warning.patch" + + # Fix bug with GtkToggleButton and gtk+-2.16, bug #275449 + epatch "${FILESDIR}/${P}-gtktoggle.patch" + + # disable pyc compiling + mv "${S}"/py-compile "${S}"/py-compile.orig + ln -s $(type -P true) "${S}"/py-compile + + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + use hppa && append-flags -ffunction-sections + econf $(use_enable doc docs) --enable-thread +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog INSTALL MAPPING NEWS README THREADS TODO + + if use examples; then + rm examples/Makefile* + insinto /usr/share/doc/${PF} + doins -r examples + fi +} + +src_test() { + unset DBUS_SESSION_BUS_ADDRESS + cd tests + Xemake check-local || die "tests failed" +} + +pkg_postinst() { + python_version + python_need_rebuild + python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0 +} + +pkg_postrm() { + python_version + python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/gtk-2.0 + rm -f "${ROOT}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.{py,pth} + alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py pygtk.py-[0-9].[0-9] + alternatives_auto_makesym /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth pygtk.pth-[0-9].[0-9] +} |