summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2015-05-11 06:39:31 +0000
committerIan Delaney <idella4@gentoo.org>2015-05-11 06:39:31 +0000
commit62fa01e76adaec02ed2362ab43087a977e64330a (patch)
treedb57dabddca7b14482cb54c10a8ca4181179db4b /dev-python/xlwt
parentversion bump (diff)
downloadgentoo-2-62fa01e76adaec02ed2362ab43087a977e64330a.tar.gz
gentoo-2-62fa01e76adaec02ed2362ab43087a977e64330a.tar.bz2
gentoo-2-62fa01e76adaec02ed2362ab43087a977e64330a.zip
bump; drop keywords arm ppc ppc64 to cater to new dep pkginfo, add py3 support, doc build and test phase
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/xlwt')
-rw-r--r--dev-python/xlwt/ChangeLog9
-rw-r--r--dev-python/xlwt/files/docbuild.patch17
-rw-r--r--dev-python/xlwt/xlwt-1.0.0.ebuild46
3 files changed, 71 insertions, 1 deletions
diff --git a/dev-python/xlwt/ChangeLog b/dev-python/xlwt/ChangeLog
index d9790391f44d..3809fdb54779 100644
--- a/dev-python/xlwt/ChangeLog
+++ b/dev-python/xlwt/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/xlwt
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/xlwt/ChangeLog,v 1.29 2015/04/08 08:05:16 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/xlwt/ChangeLog,v 1.30 2015/05/11 06:39:31 idella4 Exp $
+
+*xlwt-1.0.0 (11 May 2015)
+
+ 11 May 2015; Ian Delaney <idella4@gentoo.org> +files/docbuild.patch,
+ +xlwt-1.0.0.ebuild:
+ bump; drop keywords arm ppc ppc64 to cater to new dep pkginfo, add py3
+ support, doc build and test phase
08 Apr 2015; Michał Górny <mgorny@gentoo.org> xlwt-0.7.5.ebuild:
Drop old Python implementations
diff --git a/dev-python/xlwt/files/docbuild.patch b/dev-python/xlwt/files/docbuild.patch
new file mode 100644
index 000000000000..9468d91de78f
--- /dev/null
+++ b/dev-python/xlwt/files/docbuild.patch
@@ -0,0 +1,17 @@
+diff -ur xlwt-1.0.0.orig/docs/conf.py xlwt-1.0.0/docs/conf.py
+--- docs/conf.py 2015-04-16 04:43:57.000000000 +0800
++++ docs/conf.py 2015-05-11 11:13:22.320470128 +0800
+@@ -4,7 +4,7 @@
+ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+ pkg_info = pkginfo.Develop(os.path.join(os.path.dirname(__file__), os.pardir))
+
+-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
++extensions = ['sphinx.ext.autodoc']
+ source_suffix = '.rst'
+ master_doc = 'index'
+ project = u'xlwt'
+@@ -19,4 +19,3 @@
+ html_theme = 'classic'
+
+ htmlhelp_basename = project+'doc'
+-intersphinx_mapping = {'python': ('http://docs.python.org', None)}
diff --git a/dev-python/xlwt/xlwt-1.0.0.ebuild b/dev-python/xlwt/xlwt-1.0.0.ebuild
new file mode 100644
index 000000000000..be06885382d4
--- /dev/null
+++ b/dev-python/xlwt/xlwt-1.0.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/xlwt/xlwt-1.0.0.ebuild,v 1.1 2015/05/11 06:39:31 idella4 Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library to create spreadsheet files compatible with Excel"
+HOMEPAGE="http://pypi.python.org/pypi/xlwt"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/pkginfo[${PYTHON_USEDEP}] )
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+# Prevent d'loading in the doc build
+PATCHES=( "${FILESDIR}"/docbuild.patch )
+
+python_prepare_all() {
+ # Don't install documentation and examples in site-packages directories.
+ sed -e "/package_data/d" -i setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ nosetests tests || die "tests failed under ${EPYTHON}}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ use examples && local EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+}