summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Bressler <ruben.bressler@cerpamid.co.cu>2010-07-19 21:22:12 -0400
committerRuben Bressler <ruben.bressler@cerpamid.co.cu>2010-07-19 21:22:12 -0400
commit752f4ec119229badc274a3019e044f8e5c82a513 (patch)
treebbbf0ea60003371127eef03f703d2727fc78e56b /dev-python
parentadicionando gtk+-2.21.5 (diff)
downloadrubenqba-752f4ec119229badc274a3019e044f8e5c82a513.tar.gz
rubenqba-752f4ec119229badc274a3019e044f8e5c82a513.tar.bz2
rubenqba-752f4ec119229badc274a3019e044f8e5c82a513.zip
adicionando de todo
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pygobject/Manifest6
-rw-r--r--dev-python/pygobject/files/pygobject-2.15.4-fix-codegen-location.patch50
-rw-r--r--dev-python/pygobject/files/pygobject-2.18.0-automake111.patch13
-rw-r--r--dev-python/pygobject/files/pygobject-2.18.0-support_multiple_python_versions.patch66
-rw-r--r--dev-python/pygobject/files/pygobject-2.21.4-make_check.patch55
-rw-r--r--dev-python/pygobject/pygobject-2.21.5.ebuild121
6 files changed, 311 insertions, 0 deletions
diff --git a/dev-python/pygobject/Manifest b/dev-python/pygobject/Manifest
new file mode 100644
index 0000000..e0e20be
--- /dev/null
+++ b/dev-python/pygobject/Manifest
@@ -0,0 +1,6 @@
+AUX pygobject-2.15.4-fix-codegen-location.patch 1519 RMD160 e4721ae2d9a2d05e3b129627c762acf177521974 SHA1 02e9446db952de3b934a264ce77648d2cd5c6d97 SHA256 6ab22def2c57a4dd44dedc787cb660dc326a62b518c3dc747fbe600ca2c20b8c
+AUX pygobject-2.18.0-automake111.patch 323 RMD160 182ea96cbb8fe28a93add0ef3dfd7710777615d8 SHA1 96c22e5bb8f07ea117248f4c8ca580474938c7af SHA256 4a94e9ca2a421a923c522ad4132c8988f22e74949f0361e231b6ba0ca813bc57
+AUX pygobject-2.18.0-support_multiple_python_versions.patch 2349 RMD160 054080d2a62b466ffe2ba9e182e5e796c652161f SHA1 d1ac7d308cb82caab4a5c56256ebd53b13cb9a3b SHA256 d66bcf31acf8b310ad346b9803d5e41d9840cfbca3c62d19b5c99f605c58066d
+AUX pygobject-2.21.4-make_check.patch 1799 RMD160 299e2064b3685822957c45c9ae8a5007ff9c9c04 SHA1 553bb63d96eb5cb0dae511a4c3a9505bd8076b8d SHA256 f03bb8460ce6bcef8d9c6dfab6b39a96860ea7528ed8b840e375c26a2726f38e
+DIST pygobject-2.21.5.tar.bz2 767809 RMD160 f1341e01cfd14399ba6b4a5dad8638da67d8de9d SHA1 8017d5dba28278727501194d45310d3156937c70 SHA256 14dc23bd8adb3626cfbaa7b7df1070c8da260e60925ec83beac517d7155cfed8
+EBUILD pygobject-2.21.5.ebuild 3222 RMD160 3bdb21c639e03ad8cc4754479a7268fc8ed0c896 SHA1 91d750fd18f3f4a72caab2a4d29711d02f8c6133 SHA256 3fde61026edc1848b19260b31506cb0c8b6106bfcd00be2300df3e226b6939c0
diff --git a/dev-python/pygobject/files/pygobject-2.15.4-fix-codegen-location.patch b/dev-python/pygobject/files/pygobject-2.15.4-fix-codegen-location.patch
new file mode 100644
index 0000000..8882cd0
--- /dev/null
+++ b/dev-python/pygobject/files/pygobject-2.15.4-fix-codegen-location.patch
@@ -0,0 +1,50 @@
+---
+ Fix FHS compliance of codegen
+
+ codegen/Makefile.am | 2 +-
+ codegen/pygtk-codegen-2.0.in | 3 ++-
+ pygtk-2.0.pc.in | 2 +-
+ 3 files changed, 4 insertions(+), 3 deletions(-)
+
+--- a/codegen/Makefile.am 2007-11-01 12:20:22.000000000 -0400
++++ b/codegen/Makefile.am 2008-05-28 22:21:04.000000000 -0400
+@@ -2,7 +2,7 @@ PLATFORM_VERSION = 2.0
+
+ bin_SCRIPTS = pygobject-codegen-$(PLATFORM_VERSION)
+
+-codegendir = $(pkgdatadir)/$(PLATFORM_VERSION)/codegen
++codegendir = $(pyexecdir)/gtk-2.0/codegen
+
+ codegen_PYTHON = \
+ __init__.py \
+--- a/codegen/pygobject-codegen-2.0.in 2007-11-01 12:20:22.000000000 -0400
++++ b/codegen/pygobject-codegen-2.0.in 2008-05-28 22:24:38.000000000 -0400
+@@ -1,9 +1,10 @@
+ #!/bin/sh
+
+ prefix=@prefix@
++exec_prefix=@exec_prefix@
+ datarootdir=@datarootdir@
+ datadir=@datadir@
+-codegendir=${datadir}/pygobject/2.0/codegen
++codegendir=@pyexecdir@/gtk-2.0/codegen
+
+ PYTHONPATH=$codegendir
+ export PYTHONPATH
+--- a/pygobject-2.0.pc.in 2007-11-01 12:20:22.000000000 -0400
++++ b/pygobject-2.0.pc.in 2008-05-28 22:21:04.000000000 -0400
+@@ -4,6 +4,7 @@
+ datarootdir=@datarootdir@
+ datadir=@datadir@
+ libdir=@libdir@
++pyexecdir=@pyexecdir@
+
+ # you can use the --variable=pygtkincludedir argument to
+ # pkg-config to get this value. You might want to use this to
+@@ -12,5 +12,5 @@
+ defsdir=${datadir}/pygobject/2.0/defs
+-codegendir=${datadir}/pygobject/2.0/codegen
++codegendir=${pyexecdir}/gtk-2.0/codegen
+
+ Name: PyGObject
+ Description: Python bindings for GObject
diff --git a/dev-python/pygobject/files/pygobject-2.18.0-automake111.patch b/dev-python/pygobject/files/pygobject-2.18.0-automake111.patch
new file mode 100644
index 0000000..9e57bb7
--- /dev/null
+++ b/dev-python/pygobject/files/pygobject-2.18.0-automake111.patch
@@ -0,0 +1,13 @@
+# Fix build failure due to automake 1.11.
+# defsgen.py was installed twice
+# Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=279813
+--- a/codegen/Makefile.am
++++ b/codegen/Makefile.am
+@@ -18,7 +18,6 @@
+ docextract_to_xml.py \
+ docgen.py \
+ h2def.py \
+- defsgen.py \
+ createdefs.py \
+ mergedefs.py \
+ missingdefs.py \
diff --git a/dev-python/pygobject/files/pygobject-2.18.0-support_multiple_python_versions.patch b/dev-python/pygobject/files/pygobject-2.18.0-support_multiple_python_versions.patch
new file mode 100644
index 0000000..b27d408
--- /dev/null
+++ b/dev-python/pygobject/files/pygobject-2.18.0-support_multiple_python_versions.patch
@@ -0,0 +1,66 @@
+--- codegen/pygobject-codegen-2.0.in
++++ codegen/pygobject-codegen-2.0.in
+@@ -4,7 +4,7 @@
+ exec_prefix=@exec_prefix@
+ datarootdir=@datarootdir@
+ datadir=@datadir@
+-codegendir=@pyexecdir@/gtk-2.0/codegen
++codegendir=$(@PYTHON@ -c "from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, prefix='@exec_prefix@')")/gtk-2.0/codegen
+
+ PYTHONPATH=$codegendir
+ export PYTHONPATH
+--- gio/Makefile.am
++++ gio/Makefile.am
+@@ -56,7 +56,7 @@
+ gio.c: $(GIO_DEFS) $(GIO_OVERRIDES)
+ _gio_la_CFLAGS = $(GIO_CFLAGS)
+ _gio_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gio
+-_gio_la_LIBADD = $(GIO_LIBS) $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@.la
++_gio_la_LIBADD = $(GIO_LIBS) $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la
+ _gio_la_SOURCES = \
+ giomodule.c \
+ pygio-utils.c \
+--- glib/Makefile.am
++++ glib/Makefile.am
+@@ -4,7 +4,7 @@
+ pkgincludedir = $(includedir)/pygtk-2.0
+ pkginclude_HEADERS = pyglib.h
+
+-lib_LTLIBRARIES = libpyglib-2.0-@PYTHON_BASENAME@.la
++lib_LTLIBRARIES = libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la
+
+ pkgpyexecdir = $(pyexecdir)/gtk-2.0
+
+@@ -19,9 +19,9 @@
+ common_ldflags += -no-undefined
+ endif
+
+-libpyglib_2_0_@PYTHON_BASENAME@_la_CFLAGS = $(GLIB_CFLAGS)
+-libpyglib_2_0_@PYTHON_BASENAME@_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS)
+-libpyglib_2_0_@PYTHON_BASENAME@_la_SOURCES = \
++libpyglib_2_0_@PYTHON_BASENAME@@PYTHON_VERSION@_la_CFLAGS = $(GLIB_CFLAGS)
++libpyglib_2_0_@PYTHON_BASENAME@@PYTHON_VERSION@_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS)
++libpyglib_2_0_@PYTHON_BASENAME@@PYTHON_VERSION@_la_SOURCES = \
+ pyglib.c \
+ pyglib.h \
+ pyglib-private.h \
+@@ -29,7 +29,7 @@
+
+ _glib_la_CFLAGS = $(GLIB_CFLAGS)
+ _glib_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "_glib|PyInit__glib"
+-_glib_la_LIBADD = $(GLIB_LIBS) libpyglib-2.0-@PYTHON_BASENAME@.la
++_glib_la_LIBADD = $(GLIB_LIBS) libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la
+ _glib_la_SOURCES = \
+ glibmodule.c \
+ pygiochannel.c \
+--- gobject/Makefile.am
++++ gobject/Makefile.am
+@@ -42,7 +42,7 @@
+ _gobject_la_LIBADD = \
+ $(GLIB_LIBS) \
+ $(FFI_LIBS) \
+- $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@.la
++ $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la
+ _gobject_la_SOURCES = \
+ gobjectmodule.c \
+ pygboxed.c \
diff --git a/dev-python/pygobject/files/pygobject-2.21.4-make_check.patch b/dev-python/pygobject/files/pygobject-2.21.4-make_check.patch
new file mode 100644
index 0000000..7b1c20d
--- /dev/null
+++ b/dev-python/pygobject/files/pygobject-2.21.4-make_check.patch
@@ -0,0 +1,55 @@
+--- pygobject-2.21.4.orig/tests/Makefile.am
++++ pygobject-2.21.4/tests/Makefile.am
+@@ -12,7 +12,7 @@ EXTRA_DIST = \
+ test-thread.h \
+ test-unknown.h
+
+-noinst_LTLIBRARIES = testhelper.la
++check_LTLIBRARIES = testhelper.la
+ linked_LIBS = testhelper.la
+
+ testhelper_la_LDFLAGS = -module -avoid-version
+@@ -46,13 +46,11 @@ endif
+ testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES)
+ $(LINK) -rpath $(pkgpyexecdir) $(testhelper_la_LDFLAGS) $(testhelper_la_OBJECTS) $(testhelper_la_LIBADD) $(LIBS)
+
+-check-local: $(LTLIBRARIES:.la=.so)
++check-local: $(check_LTLIBRARIES:.la=.so)
+ $(EXEC_NAME) $(PYTHON) $(srcdir)/runtests.py $(top_builddir) $(tests)
+
+-all: $(LTLIBRARIES:.la=.so)
+-
+ clean-local:
+- rm -f $(LTLIBRARIES:.la=.so)
++ rm -f $(check_LTLIBRARIES:.la=.so)
+
+ .la.so:
+ $(LN_S) .libs/$@ $@ || true
+--- pygobject-2.21.4.orig/tests/runtests.py
++++ pygobject-2.21.4/tests/runtests.py
+@@ -6,6 +6,9 @@ import unittest
+
+ import common
+
++# Some tests fail with translated messages.
++os.environ["LC_ALL"] = "C"
++
+ program = None
+ if len(sys.argv) < 2:
+ raise ValueError('Need at least 2 parameters: runtests.py <build-dir> '
+--- pygobject-2.21.4.orig/tests/test_gio.py
++++ pygobject-2.21.4/tests/test_gio.py
+@@ -410,9 +410,10 @@ class TestFile(unittest.TestCase):
+
+ def testQueryWritableNamespaces(self):
+ infolist = self.file.query_writable_namespaces()
+- for info in infolist:
+- if info.name == "xattr":
+- self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING)
++ if infolist:
++ for info in infolist:
++ if info.name == "xattr":
++ self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING)
+
+ def testSetAttribute(self):
+ self._f.write("testing attributes")
diff --git a/dev-python/pygobject/pygobject-2.21.5.ebuild b/dev-python/pygobject/pygobject-2.21.5.ebuild
new file mode 100644
index 0000000..b564ba7
--- /dev/null
+++ b/dev-python/pygobject/pygobject-2.21.5.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-2.20.0.ebuild,v 1.4 2010/01/11 16:56:25 arfrever Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+PYTHON_DEPEND="2:2.5"
+inherit alternatives autotools gnome2 python virtualx
+
+DESCRIPTION="GLib's GObject library bindings for Python"
+HOMEPAGE="http://www.pygtk.org/"
+
+LICENSE="LGPL-2.1"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc examples +introspection libffi test"
+
+RDEPEND=">=dev-libs/glib-2.22.4
+ introspection? (
+ >=dev-libs/gobject-introspection-0.9.1
+ >=dev-python/pycairo-1.0.2
+ )
+ !<dev-python/pygtk-2.13
+ libffi? ( virtual/libffi )"
+DEPEND="${RDEPEND}
+ doc? ( dev-libs/libxslt >=app-text/docbook-xsl-stylesheets-1.70.1 )
+ test? ( media-fonts/font-cursor-misc media-fonts/font-misc-misc )
+ >=dev-util/pkgconfig-0.12.0"
+
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+
+DOCS="AUTHORS ChangeLog* NEWS README"
+
+pkg_setup() {
+ G2CONF="${G2CONF}
+ --disable-dependency-tracking
+ $(use_enable doc docs)
+ $(use_enable introspection)
+ $(use_with libffi ffi)"
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Fix FHS compliance, see upstream bug #535524
+ epatch "${FILESDIR}/${PN}-2.15.4-fix-codegen-location.patch"
+
+ # Do not build tests if unneeded, bug #226345
+ epatch "${FILESDIR}/${PN}-2.21.4-make_check.patch"
+
+ # Support installation for multiple Python versions
+ epatch "${FILESDIR}/${PN}-2.18.0-support_multiple_python_versions.patch"
+
+ # needed to build on a libtool-1 system, bug #255542
+ rm m4/lt* m4/libtool.m4 ltmain.sh
+
+ # disable pyc compiling
+ mv py-compile py-compile.orig
+ ln -s $(type -P true) py-compile
+
+ eautoreconf
+
+ python_copy_sources
+}
+
+src_configure() {
+ python_execute_function -s gnome2_src_configure
+}
+
+src_compile() {
+ python_execute_function -d -s
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+
+ testing() {
+ if has ${PYTHON_ABI} 2.4 2.5; then
+ einfo "Skipping tests with Python ${PYTHON_ABI}. dev-python/pycairo supports only Python >=2.6."
+ return 0
+ fi
+
+ Xemake check
+ }
+ python_execute_function -s testing
+}
+
+src_install() {
+ [[ -z ${ED} ]] && local ED="${D}"
+ installation() {
+ gnome2_src_install
+ mv "${ED}$(python_get_sitedir)/pygtk.py" "${ED}$(python_get_sitedir)/pygtk.py-2.0"
+ mv "${ED}$(python_get_sitedir)/pygtk.pth" "${ED}$(python_get_sitedir)/pygtk.pth-2.0"
+ }
+ python_execute_function -s installation
+
+ if use examples; then
+ insinto /usr/share/doc/${P}
+ doins -r examples
+ fi
+}
+
+pkg_postinst() {
+ create_symlinks() {
+ alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
+ alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
+ }
+ python_execute_function create_symlinks
+
+ python_mod_optimize gtk-2.0 pygtk.py
+}
+
+pkg_postrm() {
+ python_mod_cleanup gtk-2.0 pygtk.py
+
+ create_symlinks() {
+ alternatives_auto_makesym $(python_get_sitedir)/pygtk.py pygtk.py-[0-9].[0-9]
+ alternatives_auto_makesym $(python_get_sitedir)/pygtk.pth pygtk.pth-[0-9].[0-9]
+ }
+ python_execute_function create_symlinks
+}