summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2015-11-14 22:00:29 +0600
committerAndrey Grozin <grozin@gentoo.org>2015-11-14 22:00:29 +0600
commit6ac3bca42a099aa2e07c7ed831a6cdf36f829e88 (patch)
tree5cbf017faa8068e088fcf2075de23418c0f4fb0a /dev-python/sympy
parentMerge remote-tracking branch 'remotes/marcecj/fix_asciidoc_deps' (diff)
downloadgentoo-6ac3bca42a099aa2e07c7ed831a6cdf36f829e88.tar.gz
gentoo-6ac3bca42a099aa2e07c7ed831a6cdf36f829e88.tar.bz2
gentoo-6ac3bca42a099aa2e07c7ed831a6cdf36f829e88.zip
dev-python/sympy: bump to 0.7.6.1
A patch fixing docs building with sphinx-1.3.1 Thanks to Petr Cerny <p.c@black-net.org> Package-Manager: portage-2.2.24
Diffstat (limited to 'dev-python/sympy')
-rw-r--r--dev-python/sympy/Manifest1
-rw-r--r--dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch65
-rw-r--r--dev-python/sympy/sympy-0.7.6.1.ebuild90
3 files changed, 156 insertions, 0 deletions
diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest
index 16e28e4563f2..14f203bdd3d1 100644
--- a/dev-python/sympy/Manifest
+++ b/dev-python/sympy/Manifest
@@ -1,4 +1,5 @@
DIST sympy-0.7.4.1-system-mpmath.patch.gz 7350 SHA256 d7f2acd0ccfb06eb8c102dd7fae2325b35a5105a5853e01dcb863c0841dedc75 SHA512 761cdc6259101d6023d83cfea311a5547762c192b3c661ab3bc0ded20911ce464d0326a9b16d899ad35280a65046e621670e7de64ec40df740bfeb8bf667fb3d WHIRLPOOL 24693863da03dab6ed67131f46c4e18dfdc8110d0a23f49825dcb835909fa157781791680cfe46092c41c526fe281370aa7ce341f7fbccae02351d34c29bffd3
DIST sympy-0.7.4.1.tar.gz 6824862 SHA256 51a8c2377c240a2cdb418bc59dac9ab106258196d04ce131d06806dbea2af456 SHA512 8d4d87428c202407ff364ef503634529500c1656cf5ddbb4de19b838499593c58d227f0b619541ce86cdc15157e3a5b48a95c906a5d05d4606ef95f1aa8fa2dc WHIRLPOOL 620d255e0cf289ac392328ad64e93d93489d8664df13498bac8933221c8edb80a45a8ea26da6cb8e1139ec2ca159c8f83ad196d96ee6afceb4fc8bb2a0eccfd7
DIST sympy-0.7.6-system-mpmath.patch.gz 5030 SHA256 d5ff8ff4f79ed66714486954633d18f865820197081230b82ff8e2093751e073 SHA512 b8475f2a0c1320c7e5e1403476e011fae0997f07afba3fd892ad5e95e89b5cdfa5f92b778eb406b27f2c0edb2a119ee636c57ff32585360c26d38202ea09b075 WHIRLPOOL d03273573237b04c403438a75e4a4c21cf89a6b93e642a71126a136c6e4e9e07db3e5ebc8e5a4724b792e0d4885f38a7d30759e26fa61146f929a1447e16e64c
+DIST sympy-0.7.6.1.tar.gz 6431571 SHA256 1fc272b51091aabe7d07f1bf9f0a47f3e28657fb2bec52bf3ef0e8f159f5f564 SHA512 18877abd3c530418e4f4942cbb0a03140dc81e5a1004720c472fb97cf8eaa41acca59765f6278715ea88bcd0cd07ad5952863a0d1b6e6d00994d257e8c0a6574 WHIRLPOOL b0c0c74e7865c91585d1a2c8510fe328b8e697dec02bd17aaa446ef6e089b9cf2ca5b4f58b6b59febccf142384b907e1bd47451e22fa305843bd883355801226
DIST sympy-0.7.6.tar.gz 6430549 SHA256 dfa3927e9befdfa7da7a18783ccbc2fe489ce4c46aa335a879e49e48fc03d7a7 SHA512 ce0f1a17ac01eb48aec31fc0ad431d9d7ed9907f0e8584a6d79d0ffe6864fe62e203fe3f2a3c3e4e3d485809750ce07507a6488e776a388a7a9a713110882fcf WHIRLPOOL 850c27ae73f92f224826e5c00e41a0d4644fcb290767963744a947b03b704557423c00ed9a14ad696630c4611c3ed684926d58d7873127de76530325aae08ae2
diff --git a/dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch b/dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch
new file mode 100644
index 000000000000..c3b208270166
--- /dev/null
+++ b/dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch
@@ -0,0 +1,65 @@
+commit d3d3bd01bc5f625055bfa7247efc1e8cdeef0b33
+Author: Aaditya M Nair <aadityanair6494@gmail.com>
+Date: Tue Apr 14 16:30:01 2015 +0530
+
+ Doc creation now compatible with sphinx 1.3.1. Closes sympy/sympy#9273.
+
+ New version of sphinx renamed the `default` theme to `classic` theme.
+ Corrected by defining all variables inside the .css file.
+
+diff --git a/doc/src/_static/default.css_t b/doc/src/_static/default.css_t
+index 6165d8b..c2d8489 100644
+--- a/doc/src/_static/default.css_t
++++ b/doc/src/_static/default.css_t
+@@ -13,6 +13,23 @@
+
+ /* -- page layout ----------------------------------------------------------- */
+
++{% set theme_collapsiblesidebar = True %}
++{% set theme_relbarbgcolor = '#2f441e' %}
++{% set theme_sidebarbgcolor = '#3b5526' %}
++{% set theme_sidebarbtncolor = '#4F663C' %}
++{% set theme_sidebarlinkcolor = '#81B953' %}
++{% set theme_linkcolor = '#29A329' %}
++{% set theme_visitedlinkcolor = '#307748' %}
++{% set theme_headtextcolor = '#2f441e' %}
++{% set theme_footerbgcolor = '#293b1b' %}
++{% set theme_headlinkcolor = '#AAAAAA' %}
++{% set theme_sidebartextcolor = '#DDDDDD' %}
++{% set theme_footertextcolor = '#DDDDDD' %}
++{% set theme_relbartextcolor = '#DDDDDD' %}
++{% set theme_relbarlinkcolor = '#81B953' %}
++{% set theme_bgcolor = '#FFFFFF' %}
++
++
+ body {
+ font-family: {{ theme_bodyfont }};
+ font-size: 100%;
+diff --git a/doc/src/conf.py b/doc/src/conf.py
+index 2c1d302..97837e3 100644
+--- a/doc/src/conf.py
++++ b/doc/src/conf.py
+@@ -96,22 +96,7 @@
+ html_logo = '_static/sympylogo.png'
+ html_favicon = '../_build/logo/sympy-notailtext-favicon.ico'
+ # See http://sphinx-doc.org/theming.html#builtin-themes.
+-html_theme_options = {
+- 'collapsiblesidebar': True,
+- 'relbarbgcolor': '#2f441e',
+- 'sidebarbgcolor': '#3b5526',
+- 'sidebarbtncolor': '#4F663C',
+- 'sidebarlinkcolor': '#81B953',
+- 'linkcolor': '#29A329',
+- 'visitedlinkcolor': '#307748',
+- 'headtextcolor': '#2f441e',
+- 'footerbgcolor': '#293b1b',
+- 'headlinkcolor': '#AAAAAA',
+- 'sidebartextcolor': '#DDDDDD',
+- 'footertextcolor': '#DDDDDD',
+- 'relbartextcolor': '#DDDDDD',
+- 'relbarlinkcolor': '#81B953',
+-}
++
+
+ # If true, SmartyPants will be used to convert quotes and dashes to
+ # typographically correct entities.
diff --git a/dev-python/sympy/sympy-0.7.6.1.ebuild b/dev-python/sympy/sympy-0.7.6.1.ebuild
new file mode 100644
index 000000000000..15a78b687fbf
--- /dev/null
+++ b/dev-python/sympy/sympy-0.7.6.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit distutils-r1 eutils virtualx
+
+DESCRIPTION="Computer Algebra System in pure Python"
+HOMEPAGE="http://sympy.org"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos"
+IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png pyglet test texmacs theano"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ doc? ( python_targets_python2_7 )"
+
+RDEPEND="
+ $(python_gen_cond_dep '>=dev-python/pexpect-2.0[${PYTHON_USEDEP}]' python2_7)
+ imaging? ( dev-python/pillow[${PYTHON_USEDEP}] )
+ ipython? ( dev-python/ipython[${PYTHON_USEDEP}] )
+ latex? (
+ virtual/latex-base
+ dev-texlive/texlive-fontsextra
+ png? ( app-text/dvipng )
+ pdf? ( app-text/ghostscript-gpl )
+ )
+ mathml? (
+ dev-libs/libxml2:2[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-libs/libxslt[${PYTHON_USEDEP}]' python2_7)
+ gtk? ( x11-libs/gtkmathview[gtk] )
+ )
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
+ pyglet? ( $(python_gen_cond_dep 'dev-python/pyglet[${PYTHON_USEDEP}]' python2_7) )
+ texmacs? ( app-office/texmacs )
+ theano? ( $(python_gen_cond_dep 'dev-python/theano[${PYTHON_USEDEP}]' python2_7) )
+"
+
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_prepare_all() {
+ epatch "${FILESDIR}"/${PN}-0.7.6-doc-makefile.patch
+ epatch "${FILESDIR}"/${P}-sphinx-1.3.1.patch
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ PYTHONPATH="." distutils-r1_python_compile
+}
+
+python_compile_all() {
+ if use doc; then
+ export XDG_CONFIG_HOME="${T}/config-dir"
+ mkdir "${XDG_CONFIG_HOME}" || die
+ chmod 0700 "${XDG_CONFIG_HOME}" || die
+ emake -j1 -C doc html info cheatsheet
+ fi
+}
+
+python_test() {
+ VIRTUALX_COMMAND="./setup.py" virtualmake test
+}
+
+python_install() {
+ PYTHONPATH="." distutils-r1_python_install
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS README.rst )
+ use doc &&\
+ DOCS=( ${DOCS[*]} doc/_build/cheatsheet/cheatsheet.pdf doc/_build/cheatsheet/combinatoric_cheatsheet.pdf ) &&\
+ local HTML_DOCS=( doc/_build/html/. ) &&\
+ doinfo doc/_build/texinfo/${PN}.info
+ use examples && local EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+
+ if use texmacs; then
+ exeinto /usr/libexec/TeXmacs/bin/
+ doexe data/TeXmacs/bin/tm_sympy
+ insinto /usr/share/TeXmacs/plugins/sympy/
+ doins -r data/TeXmacs/progs
+ fi
+}