diff options
author | Peter Volkov <pva@gentoo.org> | 2009-08-20 08:25:24 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2009-08-20 08:25:24 +0000 |
commit | 8e7a46484b809a6b0f94e5044461adfcf1e1045a (patch) | |
tree | df91e6b7ef9da445a42537bb3adf285755c4431d /dev-python/nautilus-python | |
parent | Revbump to get rid of USE_RUBY="any". Hardcoding on ruby18 and a little ebuil... (diff) | |
download | gentoo-2-8e7a46484b809a6b0f94e5044461adfcf1e1045a.tar.gz gentoo-2-8e7a46484b809a6b0f94e5044461adfcf1e1045a.tar.bz2 gentoo-2-8e7a46484b809a6b0f94e5044461adfcf1e1045a.zip |
Initial import: merged bazaar and rion overlays. Bug #78021, thank Caleb Shay, Christian Faulhammer and Rion.
(Portage version: 2.2_rc38/cvs/Linux i686)
Diffstat (limited to 'dev-python/nautilus-python')
5 files changed, 132 insertions, 0 deletions
diff --git a/dev-python/nautilus-python/ChangeLog b/dev-python/nautilus-python/ChangeLog new file mode 100644 index 000000000000..e6aa7224db4b --- /dev/null +++ b/dev-python/nautilus-python/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for dev-python/nautilus-python +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/nautilus-python/ChangeLog,v 1.1 2009/08/20 08:25:24 pva Exp $ + +*nautilus-python-0.5.1-r1 (20 Aug 2009) + + 20 Aug 2009; Peter Volkov <pva@gentoo.org> + +nautilus-python-0.5.1-r1.ebuild, + +files/nautilus-python-0.5.1-CVE-2009-0317.patch, + +files/nautilus-python-0.5.1-submenu-example.patch, +metadata.xml: + Initial import: merged bazaar and rion overlays. Bug #78021, thank Caleb + Shay, Christian Faulhammer and Rion. + diff --git a/dev-python/nautilus-python/files/nautilus-python-0.5.1-CVE-2009-0317.patch b/dev-python/nautilus-python/files/nautilus-python-0.5.1-CVE-2009-0317.patch new file mode 100644 index 000000000000..12f56929968b --- /dev/null +++ b/dev-python/nautilus-python/files/nautilus-python-0.5.1-CVE-2009-0317.patch @@ -0,0 +1,15 @@ +--- ./src/nautilus-python.c.old 2009-02-24 16:01:08.000000000 -0800 ++++ ./src/nautilus-python.c 2009-02-24 16:03:02.000000000 -0800 +@@ -223,6 +223,12 @@ + PyErr_Print(); + return FALSE; + } ++ /* Sanitize sys.path */ ++ PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)"); ++ if (PyErr_Occurred()) { ++ PyErr_Print(); ++ return FALSE; ++ } + + /* pygtk.require("2.0") */ + debug("pygtk.require(\"2.0\")"); diff --git a/dev-python/nautilus-python/files/nautilus-python-0.5.1-submenu-example.patch b/dev-python/nautilus-python/files/nautilus-python-0.5.1-submenu-example.patch new file mode 100644 index 000000000000..881d55aa00e0 --- /dev/null +++ b/dev-python/nautilus-python/files/nautilus-python-0.5.1-submenu-example.patch @@ -0,0 +1,63 @@ +commit b2e81c0b025d9b259f055a63d025c929bd302935 +Author: Cosimo Cecchi <cosimoc@gnome.org> +Date: Sat Mar 21 11:30:53 2009 +0000 + + fix the submenu example to make it work properly once installed. Patch by + + 2009-03-21 Cosimo Cecchi <cosimoc@gnome.org> + + * examples/submenu.py: fix the submenu example to make it work + properly once installed. + Patch by Bruce van der Kooji (#559172). + + svn path=/trunk/; revision=61 + +diff --git a/ChangeLog b/ChangeLog +index 235d1a6..3467d2e 100644 +--- a/ChangeLog ++++ b/ChangeLog +@@ -1,3 +1,9 @@ ++2009-03-21 Cosimo Cecchi <cosimoc@gnome.org> ++ ++ * examples/submenu.py: fix the submenu example to make it work ++ properly once installed. ++ Patch by Bruce van der Kooji (#559172). ++ + === 0.5.1 === + 2008-09-16 Johan Dahlin <johan@gnome.org> + +diff --git a/examples/submenu.py b/examples/submenu.py +index a2f2e30..9a98ebf 100644 +--- a/examples/submenu.py ++++ b/examples/submenu.py +@@ -1,19 +1,23 @@ + import nautilus + + class ExampleMenuProvider(nautilus.MenuProvider): +- ++ ++ # Nautilus crashes if a plugin doesn't implement the __init__ method. ++ # See Bug #374958 ++ def __init__(self): ++ pass ++ + def get_file_items(self, window, files): +- menuitem = nautilus.MenuItem('ExampleMenuProvider::Foo', 'Foo', '') ++ top_menuitem = nautilus.MenuItem('ExampleMenuProvider::Foo', 'Foo', '') + + submenu = nautilus.Menu() +- menuitem.set_submenu(submenu) ++ top_menuitem.set_submenu(submenu) + +- menuitem = nautilus.MenuItem('ExampleMenuProvider::Bar', 'Bar', '') +- submenu.append_item(menuitem) ++ sub_menuitem = nautilus.MenuItem('ExampleMenuProvider::Bar', 'Bar', '') ++ submenu.append_item(sub_menuitem) + +- return menuitem, ++ return top_menuitem, + +- # FIXME: Why isn't this working? + def get_background_items(self, window, file): + submenu = nautilus.Menu() + submenu.append_item(nautilus.MenuItem('ExampleMenuProvider::Bar', 'Bar', '')) diff --git a/dev-python/nautilus-python/metadata.xml b/dev-python/nautilus-python/metadata.xml new file mode 100644 index 000000000000..fe8a273e1e15 --- /dev/null +++ b/dev-python/nautilus-python/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>pva@gentoo.org</email> + <name>Peter Volkov</name> + </maintainer> +</pkgmetadata> diff --git a/dev-python/nautilus-python/nautilus-python-0.5.1-r1.ebuild b/dev-python/nautilus-python/nautilus-python-0.5.1-r1.ebuild new file mode 100644 index 000000000000..1791c9eed5ae --- /dev/null +++ b/dev-python/nautilus-python/nautilus-python-0.5.1-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/nautilus-python/nautilus-python-0.5.1-r1.ebuild,v 1.1 2009/08/20 08:25:24 pva Exp $ + +EAPI="2" + +inherit gnome.org eutils + +DESCRIPTION="Python bindings for the Nautilus file manager" +HOMEPAGE="http://www.gnome.org/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-python/pygtk-2.8 + >=dev-python/gnome-python-2.12 + >=gnome-base/nautilus-2.6 + >=gnome-base/eel-2.6" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-CVE-2009-0317.patch" + epatch "${FILESDIR}/${P}-submenu-example.patch" +} + +src_install() { + emake DESTDIR="${D}" install || die + mv "${D}"/usr/share/doc/{${PN},${PF}} + dodoc AUTHORS ChangeLog NEWS || die +} |