summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2011-11-22 13:49:22 +0000
committerAndrey Grozin <grozin@gentoo.org>2011-11-22 13:49:22 +0000
commit56e6076f8ed7e39b7256432e2f1dccc5f71e87e1 (patch)
tree35272f74e6da05d5b6050d97e1ba111ce6bd8dbd /dev-python/spyder
parentAdd support for gold plugin, thanks Matthias Maier in bug #371951 (diff)
downloadgentoo-2-56e6076f8ed7e39b7256432e2f1dccc5f71e87e1.tar.gz
gentoo-2-56e6076f8ed7e39b7256432e2f1dccc5f71e87e1.tar.bz2
gentoo-2-56e6076f8ed7e39b7256432e2f1dccc5f71e87e1.zip
Bug #390961 fixed, thanks to Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
(Portage version: 2.2.0_alpha76/cvs/Linux i686)
Diffstat (limited to 'dev-python/spyder')
-rw-r--r--dev-python/spyder/ChangeLog7
-rw-r--r--dev-python/spyder/files/spyder-2.1.2-disable_sphinx_dependency.patch57
-rw-r--r--dev-python/spyder/metadata.xml3
-rw-r--r--dev-python/spyder/spyder-2.1.2.ebuild14
4 files changed, 75 insertions, 6 deletions
diff --git a/dev-python/spyder/ChangeLog b/dev-python/spyder/ChangeLog
index 6778336fad6b..f704cfb38d15 100644
--- a/dev-python/spyder/ChangeLog
+++ b/dev-python/spyder/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/spyder
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/spyder/ChangeLog,v 1.21 2011/11/18 10:02:59 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/spyder/ChangeLog,v 1.22 2011/11/22 13:49:22 grozin Exp $
+
+ 22 Nov 2011; Andrey Grozin <grozin@gentoo.org> spyder-2.1.2.ebuild,
+ +files/spyder-2.1.2-disable_sphinx_dependency.patch, metadata.xml:
+ Bug #390961 fixed, thanks to Arfrever Frehtes Taifersar Arahesis
+ <arfrever.fta@gmail.com>
*spyder-2.1.2 (18 Nov 2011)
diff --git a/dev-python/spyder/files/spyder-2.1.2-disable_sphinx_dependency.patch b/dev-python/spyder/files/spyder-2.1.2-disable_sphinx_dependency.patch
new file mode 100644
index 000000000000..f4fbba600ee1
--- /dev/null
+++ b/dev-python/spyder/files/spyder-2.1.2-disable_sphinx_dependency.patch
@@ -0,0 +1,57 @@
+--- setup.py
++++ setup.py
+@@ -13,7 +13,6 @@
+
+ from distutils.core import setup
+ from distutils.command.build import build
+-from sphinx import setup_command
+ import os
+ import os.path as osp
+ import sys
+@@ -40,30 +39,6 @@
+ return splist
+
+
+-# Sphinx build (documentation)
+-class MyBuild(build):
+- def has_doc(self):
+- setup_dir = os.path.dirname(os.path.abspath(__file__))
+- return os.path.isdir(os.path.join(setup_dir, 'doc'))
+- sub_commands = build.sub_commands + [('build_doc', has_doc)]
+-
+-
+-class MyBuildDoc(setup_command.BuildDoc):
+- def run(self):
+- build = self.get_finalized_command('build')
+- sys.path.insert(0, os.path.abspath(build.build_lib))
+- dirname = self.distribution.get_command_obj('build').build_purelib
+- self.builder_target_dir = osp.join(dirname, 'spyderlib', 'doc')
+- try:
+- setup_command.BuildDoc.run(self)
+- except UnicodeDecodeError:
+- print >>sys.stderr, "ERROR: unable to build documentation because Sphinx do not handle source path with non-ASCII characters. Please try to move the source package to another location (path with *only* ASCII characters)."
+- sys.path.pop(0)
+-
+-
+-cmdclass = {'build': MyBuild, 'build_doc': MyBuildDoc}
+-
+-
+ NAME = 'spyder'
+ LIBNAME = 'spyderlib'
+ from spyderlib import __version__, __project_url__
+@@ -88,7 +63,7 @@
+ get_package_data(LIBNAME, ('.mo', '.svg', '.png', '.css')),
+ 'spyderplugins':
+ get_package_data('spyderplugins', ('.mo', '.svg', '.png'))},
+- requires=["rope (>=0.9.2)", "sphinx (>=0.6.0)", "PyQt4 (>=4.4)"],
++ requires=["rope (>=0.9.2)", "PyQt4 (>=4.4)"],
+ scripts=[osp.join('scripts', fname) for fname in
+ (['spyder', 'spyder.bat'] if os.name == 'nt' else ['spyder'])],
+ classifiers=['License :: OSI Approved :: MIT License',
+@@ -102,5 +77,4 @@
+ 'Programming Language :: Python :: 2.7',
+ 'Development Status :: 5 - Production/Stable',
+ 'Topic :: Scientific/Engineering',
+- 'Topic :: Software Development :: Widget Sets'],
+- cmdclass=cmdclass)
++ 'Topic :: Software Development :: Widget Sets'])
diff --git a/dev-python/spyder/metadata.xml b/dev-python/spyder/metadata.xml
index 334179b7f7b1..d3bbaa5e0ae5 100644
--- a/dev-python/spyder/metadata.xml
+++ b/dev-python/spyder/metadata.xml
@@ -19,7 +19,8 @@
<flag name='pep8'>Add support for <pkg>dev-python/pep8</pkg></flag>
<flag name='pyflakes'>Add support for <pkg>dev-python/pyflakes</pkg></flag>
<flag name='pylint'>Add support for <pkg>dev-python/pylint</pkg></flag>
- <flag name='rope'>Add support for <pkg>sci-libs/rope</pkg></flag>
+ <flag name='rope'>Add support for <pkg>dev-python/rope</pkg></flag>
<flag name='scipy'>Add support for <pkg>sci-libs/scipy</pkg></flag>
+ <flag name='sphinx'>Add support for <pkg>dev-python/sphinx</pkg></flag>
</use>
</pkgmetadata>
diff --git a/dev-python/spyder/spyder-2.1.2.ebuild b/dev-python/spyder/spyder-2.1.2.ebuild
index 96dd7a3f601b..b4159de3ea2e 100644
--- a/dev-python/spyder/spyder-2.1.2.ebuild
+++ b/dev-python/spyder/spyder-2.1.2.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/spyder/spyder-2.1.2.ebuild,v 1.1 2011/11/18 10:02:59 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/spyder/spyder-2.1.2.ebuild,v 1.2 2011/11/22 13:49:22 grozin Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4 3.* *-jython"
+RESTRICT_PYTHON_ABIS="2.4 3.* *-jython *-pypy-*"
inherit distutils eutils
@@ -16,22 +16,28 @@ SRC_URI="http://spyderlib.googlecode.com/files/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="doc ipython matplotlib numpy +pyflakes pylint +rope scipy pep8"
+IUSE="doc ipython matplotlib numpy pep8 +pyflakes pylint +rope scipy sphinx"
RDEPEND=">=dev-python/PyQt4-4.4[webkit]
ipython? ( dev-python/ipython )
matplotlib? ( dev-python/matplotlib )
numpy? ( dev-python/numpy )
+ pep8? ( dev-python/pep8 )
pyflakes? ( >=dev-python/pyflakes-0.3 )
pylint? ( dev-python/pylint )
rope? ( >=dev-python/rope-0.9.3 )
scipy? ( sci-libs/scipy )
- pep8? ( dev-python/pep8 )"
+ sphinx? ( dev-python/sphinx )"
DEPEND="${RDEPEND}
doc? ( dev-python/sphinx )"
PYTHON_MODNAME="spyderlib spyderplugins"
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}/${P}-disable_sphinx_dependency.patch"
+}
+
src_compile() {
distutils_src_compile