aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim 'max_posedon' Melnikau <maxposedon@gmail.com>2009-03-03 21:19:39 +0000
committerMaksim 'max_posedon' Melnikau <maxposedon@gmail.com>2009-03-03 21:19:39 +0000
commit43ae4497346d07da6b1c436177d79ea8d2c76588 (patch)
tree7b870e1b8aa6c1020cccd48e9d4a21ed75d8c431 /dev-python/pygobject
parentfreesmartphone-framework-0.5.1 : add fso-gpsd as alternative for gpsd (diff)
downloadembedded-cross-43ae4497346d07da6b1c436177d79ea8d2c76588.tar.gz
embedded-cross-43ae4497346d07da6b1c436177d79ea8d2c76588.tar.bz2
embedded-cross-43ae4497346d07da6b1c436177d79ea8d2c76588.zip
add pygobject-2.16.1
Diffstat (limited to 'dev-python/pygobject')
-rw-r--r--dev-python/pygobject/Manifest3
-rw-r--r--dev-python/pygobject/files/pygobject-2.15.4-fix-codegen-location.patch50
-rw-r--r--dev-python/pygobject/pygobject-2.16.1.ebuild89
3 files changed, 142 insertions, 0 deletions
diff --git a/dev-python/pygobject/Manifest b/dev-python/pygobject/Manifest
index 535509f..655b087 100644
--- a/dev-python/pygobject/Manifest
+++ b/dev-python/pygobject/Manifest
@@ -2,7 +2,10 @@ AUX precomputed-constants/armv4tl-softfloat-linux-gnueabi 708 RMD160 03472e6c674
AUX pygobject-2.14.2-add-python-includes-switch.patch 1560 RMD160 b1801360d32aa19b40b751d2440b1ab29296d99d SHA1 01a30c87c4a8541324e374f8232650138740b694 SHA256 aff5ee5a8f732d8891d0cb08cad40a1aedcac5183be92c994aa6402db4c8908b
AUX pygobject-2.14.2-libffi.patch 796 RMD160 0aa01f1d2cdf602ab127658bd838f55a8db265dd SHA1 6f66c36aa071161b0ebc540cb4fbe4ebbecdf35a SHA256 23a2c96a3195fc6b46ed647ea7dea387076ee6eca97bd73415ddc4456898d759
AUX pygobject-2.14.2-with-precomputed-constants.patch 1251 RMD160 6c3c561e863c7542b30593f75fe69cee94902283 SHA1 d6656b9986c3b89d61f988216a48fa2381c2b1b0 SHA256 86a2fbb0fbc95a1d19d6a806c085cd638286724ff509584147bac259ef951017
+AUX pygobject-2.15.4-fix-codegen-location.patch 1519 RMD160 e4721ae2d9a2d05e3b129627c762acf177521974 SHA1 02e9446db952de3b934a264ce77648d2cd5c6d97 SHA256 6ab22def2c57a4dd44dedc787cb660dc326a62b518c3dc747fbe600ca2c20b8c
DIST pygobject-2.14.2.tar.bz2 366808 RMD160 c9894695d745a9d859f3edfb9e2946ad8b4fec3d SHA1 e891c3f1ad0d6f737d6c51b9be3eb363f7d11cbc SHA256 79c5d3ab8f072f1d0b102b2bd6410b0dc383a008b5efad1750d8b6dadfde8c6e
DIST pygobject-2.15.4.tar.bz2 477302 RMD160 eecbf4a7969a7a81a50cf6e2b52d53d7d72d6b4e SHA1 dfc3f04a27243ac4c386bfd19e4c383dd419d040 SHA256 c746693328bfed7838a1f3bfac41b13d7f39a81ac961559cd0daf700fc677da7
+DIST pygobject-2.16.1.tar.bz2 522347 RMD160 37f4075af9c06aba4fca47e2580c5408dbc28845 SHA1 12ce140438e7ff7e1a26fe4bba9a26b49f80ec0d SHA256 ee229c642759470a242c7f6ce3bd969a7484496f95570a8783859b03d6d79cc5
EBUILD pygobject-2.14.2.ebuild 3185 RMD160 ea36e9736304d9be634de5208b0c72de867ae461 SHA1 2ffcaef9ccfcb99b5efc342d01cc19604772752c SHA256 d8847b76c42fe28478a548dac658307e2d8851b93a10ad92445f39ebbd458a8f
EBUILD pygobject-2.15.4.ebuild 3018 RMD160 b21293bf981f46661e0f1d9a92264689c12a4f33 SHA1 3c992e6059571b4ee2564d444c3ec320c6fc8e92 SHA256 f7ad80983af4af764b4761f94cfa7cce3fd78e241eff20c2b2add97b61be0955
+EBUILD pygobject-2.16.1.ebuild 2702 RMD160 a5e2829d0a7b4b28443489554eb44439056febbf SHA1 fa0652115bc5b170a386dc9b1d2a87d223863aae SHA256 f17a96073a7de03e6cfd1429e26431bfd6f1c98ffa7ee87411b46c92e1adbb7e
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/pygobject-2.16.1.ebuild b/dev-python/pygobject/pygobject-2.16.1.ebuild
new file mode 100644
index 0000000..d452042
--- /dev/null
+++ b/dev-python/pygobject/pygobject-2.16.1.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/pygobject/pygobject-2.16.1.ebuild,v 1.1 2009/02/22 20:21:41 eva Exp $
+
+inherit autotools gnome2 python virtualx
+
+DESCRIPTION="GLib's GObject library bindings for Python"
+HOMEPAGE="http://www.pygtk.org/"
+
+LICENSE="LGPL-2"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="doc examples" # libffi
+
+RDEPEND=">=dev-lang/python-2.4.4-r5
+ >=dev-libs/glib-2.16
+ !<dev-python/pygtk-2.13"
+DEPEND="${RDEPEND}
+ doc? ( dev-libs/libxslt >=app-text/docbook-xsl-stylesheets-1.70.1 )
+ >=dev-util/pkgconfig-0.12.0"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+# if use libffi && ! built_with_use sys-devel/gcc libffi; then
+# eerror "libffi support not found in sys-devel/gcc." && die
+# fi
+
+ G2CONF="${G2CONF} $(use_enable doc docs)" # $(use_with libffi ffi)
+
+ # for cross compiling we need to specify the python include directory
+ if tc-is-cross-compiler ; then
+ G2CONF="${G2CONF} --with-python-includes=${SYSROOT}/usr"
+ G2CONF="${G2CONF} --with-precomputed-constants=${FILESDIR}/precomputed-constants/${CHOST}"
+ fi
+}
+
+src_unpack() {
+ gnome2_src_unpack
+
+ # enable a switch to specify precomputed constants because we can't execute generate-constants
+ epatch "${FILESDIR}/${PN}-2.14.2-with-precomputed-constants.patch"
+
+ # Fix FHS compliance, see upstream bug #535524
+ epatch "${FILESDIR}/${PN}-2.15.4-fix-codegen-location.patch"
+
+ # needed to build on a libtool-1 system, bug #255542
+ rm m4/lt* m4/libtool.m4 ltmain.sh
+
+ eautoreconf
+
+ # disable pyc compiling
+ mv py-compile py-compile.orig
+ ln -s $(type -P true) py-compile
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die "tests failed"
+}
+
+src_install() {
+ gnome2_src_install
+
+ if use examples; then
+ insinto /usr/share/doc/${P}
+ doins -r examples
+ fi
+
+ python_version
+ mv "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py \
+ "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py-2.0
+ mv "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth \
+ "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth-2.0
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0
+ 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]
+ python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py
+ python_need_rebuild
+}
+
+pkg_postrm() {
+ python_version
+ python_mod_cleanup
+}