summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2014-02-03 01:56:57 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2014-02-03 01:56:57 +0000
commitd438b79fb0faa9c44a12155a78ebe239b0578279 (patch)
tree5aac6e5032a1fb6060888cc552f4862295455fe0 /dev-python/sympy
parentVersion bump (diff)
downloadgentoo-2-d438b79fb0faa9c44a12155a78ebe239b0578279.tar.gz
gentoo-2-d438b79fb0faa9c44a12155a78ebe239b0578279.tar.bz2
gentoo-2-d438b79fb0faa9c44a12155a78ebe239b0578279.zip
Version bump and cleanup, reworked tests, forced system mpmath dependency
(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'dev-python/sympy')
-rw-r--r--dev-python/sympy/ChangeLog13
-rw-r--r--dev-python/sympy/files/sympy-0.6.6-sphinx.patch53
-rw-r--r--dev-python/sympy/files/sympy-0.6.7-python-2.7.patch24
-rw-r--r--dev-python/sympy/files/sympy-0.7.1-mpmath.patch23
-rw-r--r--dev-python/sympy/files/sympy-0.7.2-mpmath.patch15
-rw-r--r--dev-python/sympy/metadata.xml39
-rw-r--r--dev-python/sympy/sympy-0.6.7.ebuild78
-rw-r--r--dev-python/sympy/sympy-0.7.0.ebuild69
-rw-r--r--dev-python/sympy/sympy-0.7.1.ebuild117
-rw-r--r--dev-python/sympy/sympy-0.7.2-r1.ebuild201
-rw-r--r--dev-python/sympy/sympy-0.7.2.ebuild153
-rw-r--r--dev-python/sympy/sympy-0.7.4.1.ebuild88
12 files changed, 124 insertions, 749 deletions
diff --git a/dev-python/sympy/ChangeLog b/dev-python/sympy/ChangeLog
index 733396b35f60..5605d810889b 100644
--- a/dev-python/sympy/ChangeLog
+++ b/dev-python/sympy/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-python/sympy
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/ChangeLog,v 1.27 2013/12/28 20:31:19 jlec Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/ChangeLog,v 1.28 2014/02/03 01:56:57 bicatali Exp $
+
+*sympy-0.7.4.1 (03 Feb 2014)
+
+ 03 Feb 2014; Sébastien Fabbro <bicatali@gentoo.org> +sympy-0.7.4.1.ebuild,
+ -files/sympy-0.6.6-sphinx.patch, -files/sympy-0.6.7-python-2.7.patch,
+ -files/sympy-0.7.1-mpmath.patch, -files/sympy-0.7.2-mpmath.patch,
+ -sympy-0.6.7.ebuild, -sympy-0.7.0.ebuild, -sympy-0.7.1.ebuild,
+ -sympy-0.7.2-r1.ebuild, -sympy-0.7.2.ebuild, metadata.xml:
+ Version bump and cleanup, reworked tests, forced system mpmath dependency
28 Dec 2013; Justin Lecher <jlec@gentoo.org> sympy-0.7.3.ebuild:
Add workaround for XDG_CONFIG_HOME problems, #488378
diff --git a/dev-python/sympy/files/sympy-0.6.6-sphinx.patch b/dev-python/sympy/files/sympy-0.6.6-sphinx.patch
deleted file mode 100644
index f14c49182194..000000000000
--- a/dev-python/sympy/files/sympy-0.6.6-sphinx.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-Index: sympy-0.6.5/doc/Makefile
-===================================================================
---- sympy-0.6.5.orig/doc/Makefile
-+++ sympy-0.6.5/doc/Makefile
-@@ -1,14 +1,10 @@
- # Makefile for Sphinx documentation
- #
- PYTHON = python
--RST2HTML = rst2html
-+RST2HTML = rst2html.py
-
- # You can set these variables from the command line.
- SPHINXOPTS =
--SPHINXVER = 0.5
--#SPHINXBUILDpy = sphinx/Sphinx-$(SPHINXVER)/sphinx-build.py
--SPHINXBUILDpy = sphinx-build
--SPHINXBUILD = PYTHONPATH=..:$(PYTHONPATH) $(SPHINXBUILDpy)
- PAPER =
-
- ALLSPHINXOPTS = -d _build/doctrees -D latex_paper_size=$(PAPER) \
-@@ -32,13 +28,7 @@ clean:
- -rm -rf _build
- -rm -rf sphinx
-
--$(SPHINXBUILDpy):
-- rm -rf sphinx
--# mkdir sphinx
--# cd sphinx; wget http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$(SPHINXVER).tar.gz;
--# cd sphinx; tar xzf Sphinx-$(SPHINXVER).tar.gz
--
--html: $(SPHINXBUILDpy) spt-printable
-+html: spt-printable
- mkdir -p src/.static
- mkdir -p _build/html _build/doctrees
- mkdir -p src/modules
-@@ -53,7 +43,7 @@ spt-printable:
- mkdir -p _build/html/
- $(RST2HTML) src/sympy-patches-tutorial.txt > _build/html/spt-printable.html
-
--htmlapi: $(SPHINXBUILDpy)
-+htmlapi:
- mkdir -p api/.static
- mkdir -p api/modules
- mkdir -p _build/api _build/doctreesapi
-@@ -78,7 +68,7 @@ htmlhelp:
- @echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in _build/htmlhelp."
-
--latex: $(SPHINXBUILDpy)
-+latex:
- mkdir -p _build/latex _build/doctrees
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
- @echo
diff --git a/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch b/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch
deleted file mode 100644
index 02ad294df1ef..000000000000
--- a/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-http://github.com/sympy/sympy/commit/717516b8ffae806cdfdea8141ceb839107d92431
-
---- sympy/printing/pretty/stringpict.py
-+++ sympy/printing/pretty/stringpict.py
-@@ -81,7 +81,7 @@
- return '\n'.join(result), newBaseline
-
- def right(self, *args):
-- """Put pictures next to this one.
-+ r"""Put pictures next to this one.
- Returns string, baseline arguments for stringPict.
- (Multiline) strings are allowed, and are given a baseline of 0.
- >>> from sympy.printing.pretty.stringpict import stringPict
---- sympy/utilities/runtests.py
-+++ sympy/utilities/runtests.py
-@@ -778,7 +778,7 @@
- def start(self):
- self.write_center("test process starts")
- executable = sys.executable
-- v = sys.version_info
-+ v = tuple(sys.version_info)
- python_version = "%s.%s.%s-%s-%s" % v
- self.write("executable: %s (%s)\n\n" % (executable, python_version))
- self._t_start = clock()
diff --git a/dev-python/sympy/files/sympy-0.7.1-mpmath.patch b/dev-python/sympy/files/sympy-0.7.1-mpmath.patch
deleted file mode 100644
index 13d2939e3650..000000000000
--- a/dev-python/sympy/files/sympy-0.7.1-mpmath.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- setup.py.orig 2011-08-02 15:03:59.748288474 +1200
-+++ setup.py 2011-08-02 15:05:17.825461742 +1200
-@@ -59,12 +59,6 @@
- 'sympy.logic.algorithms',
- 'sympy.logic.utilities',
- 'sympy.matrices',
-- 'sympy.mpmath',
-- 'sympy.mpmath.calculus',
-- 'sympy.mpmath.functions',
-- 'sympy.mpmath.libmp',
-- 'sympy.mpmath.matrices',
-- 'sympy.mpmath.tests',
- 'sympy.ntheory',
- 'sympy.parsing',
- 'sympy.physics',
-@@ -208,7 +202,6 @@
- 'sympy.integrals.tests',
- 'sympy.logic.tests',
- 'sympy.matrices.tests',
-- 'sympy.mpmath.tests',
- 'sympy.ntheory.tests',
- 'sympy.parsing.tests',
- 'sympy.physics.quantum.tests',
diff --git a/dev-python/sympy/files/sympy-0.7.2-mpmath.patch b/dev-python/sympy/files/sympy-0.7.2-mpmath.patch
deleted file mode 100644
index 7d4f0b0e7962..000000000000
--- a/dev-python/sympy/files/sympy-0.7.2-mpmath.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -r -U1 sympy-0.7.2.orig/setup.py sympy-0.7.2/setup.py
---- sympy-0.7.2.orig/setup.py 2012-10-17 09:30:33.000000000 +0700
-+++ sympy-0.7.2/setup.py 2012-10-20 23:07:53.000000000 +0700
-@@ -67,7 +67,2 @@
- 'sympy.matrices.expressions',
-- 'sympy.mpmath',
-- 'sympy.mpmath.calculus',
-- 'sympy.mpmath.functions',
-- 'sympy.mpmath.libmp',
-- 'sympy.mpmath.matrices',
- 'sympy.ntheory',
-@@ -222,3 +217,2 @@
- 'sympy.matrices.tests',
-- 'sympy.mpmath.tests',
- 'sympy.ntheory.tests',
diff --git a/dev-python/sympy/metadata.xml b/dev-python/sympy/metadata.xml
index 81e46ad187fa..a3608fef78d6 100644
--- a/dev-python/sympy/metadata.xml
+++ b/dev-python/sympy/metadata.xml
@@ -1,18 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>sci-mathematics</herd>
- <maintainer>
- <email>grozin@gentoo.org</email>
- <name>Andrey Grozin</name>
- </maintainer>
- <longdescription>Computer algebra system (CAS) in Python</longdescription>
- <use>
- <flag name="ipython">Add support for <pkg>dev-python/ipython</pkg></flag>
- <flag name="imaging">Add support for <pkg>dev-python/imaging</pkg></flag>
- <flag name="mathml">Add support for mathml</flag>
- <flag name="pyglet">Use <pkg>dev-python/pyglet</pkg> for plots and print preview</flag>
- <flag name="texmacs">Add <pkg>app-office/texmacs</pkg> interface</flag>
- <flag name="system-mpmath">Use mpmath from portage instead of the bundled one</flag>
- </use>
+<herd>sci-mathematics</herd>
+<maintainer>
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+</maintainer>
+<longdescription>
+ SymPy is a Python library for symbolic mathematics (manipulation). It
+ aims to become a full-featured computer algebra system (CAS) while keeping
+ the code as simple as possible in order to be comprehensible and easily
+ extensible. SymPy is written entirely in Python and does not require
+ any external libraries, except optionally for plotting support.
+</longdescription>
+<use>
+ <flag name="ipython">Add support for <pkg>dev-python/ipython</pkg></flag>
+ <flag name="imaging">Add support for <pkg>dev-python/imaging</pkg></flag>
+ <flag name="mathml">Add support for mathml</flag>
+ <flag name="pyglet">Use <pkg>dev-python/pyglet</pkg> for plots and print preview</flag>
+ <flag name="texmacs">Add <pkg>app-office/texmacs</pkg>
+ interface</flag>
+ <flag name="theano">Add support for <pkg>dev-python/theano</pkg></flag>
+ <flag name="system-mpmath">Use mpmath from portage instead of the bundled one</flag>
+</use>
+<upstream>
+ <remote-id type="pypi">sympy</remote-id>
+</upstream>
</pkgmetadata>
diff --git a/dev-python/sympy/sympy-0.6.7.ebuild b/dev-python/sympy/sympy-0.6.7.ebuild
deleted file mode 100644
index b245a17b4771..000000000000
--- a/dev-python/sympy/sympy-0.6.7.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.6.7.ebuild,v 1.4 2011/03/07 13:20:25 jlec Exp $
-
-EAPI="3"
-
-PYTHON_DEPEND="2:2.5"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4 3.*"
-DISTUTILS_SRC_TEST="setup.py"
-
-inherit distutils eutils
-
-DESCRIPTION="Computer algebra system (CAS) in Python"
-HOMEPAGE="http://code.google.com/p/sympy/"
-SRC_URI="http://sympy.googlecode.com/files/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png test texmacs"
-
-RDEPEND="
- mathml? (
- dev-libs/libxml2:2[python]
- dev-libs/libxslt[python]
- gtk? ( x11-libs/gtkmathview[gtk] ) )
- latex? (
- virtual/latex-base
- png? ( app-text/dvipng )
- pdf? ( app-text/ghostscript-gpl ) )
- texmacs? ( app-office/texmacs )
- ipython? ( dev-python/ipython )
- opengl? ( dev-python/pyopengl )
- imaging? ( dev-python/imaging )
- >=dev-python/pexpect-2.0"
-DEPEND="doc? ( dev-python/sphinx )
- test? ( dev-python/pytest )"
-
-src_prepare() {
- distutils_src_prepare
-
- # Use system sphinx.
- epatch "${FILESDIR}/${PN}-0.6.6-sphinx.patch"
-
- epatch "${FILESDIR}/${P}-python-2.7.patch"
-}
-
-src_compile() {
- distutils_src_compile
-
- if use doc; then
- cd doc
- PYTHONPATH=.. emake SPHINXBUILD="sphinx-build" html || die "emake html failed"
- fi
-}
-
-src_install() {
- distutils_src_install
-
- rm -f "${ED}usr/bin/"{doctest,test} || die "rm doctest test failed"
-
- if use doc; then
- dohtml -r doc/_build/html/*
- fi
-
- if use examples; then
- insinto /usr/share/doc/${P}
- doins -r examples
- fi
-
- 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
-}
diff --git a/dev-python/sympy/sympy-0.7.0.ebuild b/dev-python/sympy/sympy-0.7.0.ebuild
deleted file mode 100644
index 7f370b201c36..000000000000
--- a/dev-python/sympy/sympy-0.7.0.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.7.0.ebuild,v 1.2 2011/07/26 16:11:57 neurogeek Exp $
-
-EAPI="3"
-
-PYTHON_DEPEND="2:2.5"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4 3.*"
-DISTUTILS_SRC_TEST="setup.py"
-
-inherit distutils eutils
-
-DESCRIPTION="Computer algebra system (CAS) in Python"
-HOMEPAGE="http://code.google.com/p/sympy/"
-SRC_URI="http://sympy.googlecode.com/files/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png test texmacs"
-
-RDEPEND="
- mathml? (
- dev-libs/libxml2:2[python]
- dev-libs/libxslt[python]
- gtk? ( x11-libs/gtkmathview[gtk] ) )
- latex? (
- virtual/latex-base
- png? ( app-text/dvipng )
- pdf? ( app-text/ghostscript-gpl ) )
- texmacs? ( app-office/texmacs )
- ipython? ( dev-python/ipython )
- opengl? ( dev-python/pyopengl )
- imaging? ( dev-python/imaging )
- >=dev-python/pexpect-2.0"
-DEPEND="doc? ( dev-python/sphinx )
- test? ( dev-python/pytest )"
-
-src_compile() {
- distutils_src_compile
-
- if use doc; then
- cd doc
- emake html || die "emake html failed"
- fi
-}
-
-src_install() {
- distutils_src_install
-
- rm -f "${ED}usr/bin/"{doctest,test} || die "rm doctest test failed"
-
- if use doc; then
- dohtml -r doc/_build/html/*
- fi
-
- if use examples; then
- insinto /usr/share/doc/${P}
- doins -r examples
- fi
-
- 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
-}
diff --git a/dev-python/sympy/sympy-0.7.1.ebuild b/dev-python/sympy/sympy-0.7.1.ebuild
deleted file mode 100644
index c5890f9ed566..000000000000
--- a/dev-python/sympy/sympy-0.7.1.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.7.1.ebuild,v 1.5 2013/06/09 17:38:33 floppym Exp $
-
-EAPI="3"
-
-PYTHON_DEPEND="2:2.5"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4 3.* *-jython *-pypy-*"
-DISTUTILS_SRC_TEST="setup.py"
-
-inherit distutils eutils
-
-DESCRIPTION="Computer algebra system (CAS) in Python"
-HOMEPAGE="http://code.google.com/p/sympy/"
-SRC_URI="http://sympy.googlecode.com/files/${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"
-
-RDEPEND="
- mathml? (
- dev-libs/libxml2:2[python]
- dev-libs/libxslt[python]
- gtk? ( x11-libs/gtkmathview[gtk] ) )
- latex? (
- virtual/latex-base
- dev-texlive/texlive-fontsextra
- png? ( app-text/dvipng )
- pdf? ( app-text/ghostscript-gpl ) )
- texmacs? ( app-office/texmacs )
- ipython? ( dev-python/ipython )
- opengl? ( dev-python/pyopengl )
- imaging? ( virtual/python-imaging )
- pyglet? ( dev-python/pyglet )
- >=dev-python/pexpect-2.0
- ~dev-python/mpmath-0.17"
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx )
- test? ( dev-python/pytest )"
-
-pkg_setup() {
- python_pkg_setup
- export DOT_SAGE="${S}"
-}
-
-src_prepare() {
- # Remove mpmath
- rm -rf sympy/mpmath/*
- sed -i \
- -e "s:sympy\.mpmath:mpmath:g" \
- -e "s:from sympy import mpmath:import mpmath:g" \
- sympy/core/function.py \
- sympy/core/numbers.py \
- sympy/core/tests/test_sets.py \
- sympy/core/tests/test_evalf.py \
- sympy/core/tests/test_sympify.py \
- sympy/core/tests/test_numbers.py \
- sympy/core/power.py \
- sympy/core/evalf.py \
- sympy/core/sets.py \
- sympy/external/tests/test_numpy.py \
- sympy/functions/combinatorial/numbers.py \
- sympy/functions/special/bessel.py \
- sympy/functions/special/gamma_functions.py \
- sympy/ntheory/partitions_.py \
- sympy/physics/quantum/constants.py \
- sympy/polys/domains/groundtypes.py \
- sympy/polys/numberfields.py \
- sympy/polys/rootoftools.py \
- sympy/polys/polytools.py \
- sympy/printing/repr.py \
- sympy/printing/str.py \
- sympy/printing/latex.py \
- sympy/simplify/simplify.py \
- sympy/solvers/solvers.py \
- sympy/solvers/tests/test_numeric.py \
- sympy/statistics/distributions.py \
- sympy/statistics/tests/test_statistics.py \
- sympy/utilities/lambdify.py \
- sympy/utilities/tests/test_lambdify.py \
- || die "failed to patch mpmath imports"
- epatch "${FILESDIR}/${PN}"-0.7.1-mpmath.patch
-}
-
-src_compile() {
- PYTHONPATH="." distutils_src_compile
-
- if use doc; then
- cd doc
- emake html || die "emake html failed"
- fi
-}
-
-src_install() {
- PYTHONPATH="." distutils_src_install
-
- rm -f "${ED}usr/bin/"{doctest,test} || die "rm doctest test failed"
-
- if use doc; then
- dohtml -r doc/_build/html/*
- fi
-
- if use examples; then
- insinto /usr/share/doc/${P}
- doins -r examples
- fi
-
- 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
-}
diff --git a/dev-python/sympy/sympy-0.7.2-r1.ebuild b/dev-python/sympy/sympy-0.7.2-r1.ebuild
deleted file mode 100644
index d3e895eab36a..000000000000
--- a/dev-python/sympy/sympy-0.7.2-r1.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.7.2-r1.ebuild,v 1.5 2013/10/15 18:17:35 jlec Exp $
-
-EAPI=5
-PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
-inherit distutils-r1 eutils
-DESCRIPTION="Computer algebra system (CAS) in Python"
-HOMEPAGE="http://sympy.org/"
-SRC_URI="
- python_targets_python2_6? ( http://sympy.googlecode.com/files/${P}.tar.gz )
- python_targets_python2_7? ( http://sympy.googlecode.com/files/${P}.tar.gz )
- python_targets_python3_2? ( http://sympy.googlecode.com/files/${P}-py3.2.tar.gz )
- python_targets_python3_3? ( http://sympy.googlecode.com/files/${P}-py3.2.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 system-mpmath test texmacs"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-RDEPEND="
- mathml? (
- dev-libs/libxml2:2[${PYTHON_USEDEP}]
- dev-libs/libxslt[python_targets_python2_6?,python_targets_python2_7?]
- gtk? ( x11-libs/gtkmathview[gtk] ) )
- latex? (
- virtual/latex-base
- dev-texlive/texlive-fontsextra
- png? ( app-text/dvipng )
- pdf? ( app-text/ghostscript-gpl ) )
- texmacs? ( app-office/texmacs )
- ipython? ( dev-python/ipython[${PYTHON_USEDEP}] )
- opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
- imaging? ( virtual/python-imaging[${PYTHON_USEDEP}] )
- pyglet? ( dev-python/pyglet[python_targets_python2_6?,python_targets_python2_7?] )
- >=dev-python/pexpect-2.0[python_targets_python2_6?,python_targets_python2_7?]
- system-mpmath? ( ~dev-python/mpmath-0.17[${PYTHON_USEDEP}] )"
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
-
-S="${WORKDIR}"
-
-system_mpmath() {
- local MPMATH_FILES
- MPMATH_FILES="
- sympy/combinatorics/permutations.py \
- sympy/core/containers.py \
- sympy/core/evalf.py \
- sympy/core/expr.py \
- sympy/core/function.py \
- sympy/core/numbers.py \
- sympy/core/power.py \
- sympy/core/sets.py \
- sympy/core/tests/test_evalf.py \
- sympy/core/tests/test_numbers.py \
- sympy/core/tests/test_sets.py \
- sympy/core/tests/test_sympify.py \
- sympy/external/tests/test_numpy.py \
- sympy/functions/combinatorial/numbers.py \
- sympy/functions/combinatorial/tests/test_comb_numbers.py \
- sympy/functions/special/bessel.py \
- sympy/functions/special/gamma_functions.py \
- sympy/functions/special/hyper.py \
- sympy/functions/special/tests/test_hyper.py \
- sympy/matrices/matrices.py \
- sympy/ntheory/partitions_.py \
- sympy/physics/quantum/constants.py \
- sympy/physics/quantum/qubit.py \
- sympy/plotting/experimental_lambdify.py \
- sympy/plotting/intervalmath/interval_arithmetic.py \
- sympy/polys/numberfields.py \
- sympy/polys/polytools.py \
- sympy/polys/rootoftools.py \
- sympy/polys/domains/__init__.py \
- sympy/polys/domains/algebraicfield.py \
- sympy/polys/domains/domain.py \
- sympy/polys/domains/expressiondomain.py \
- sympy/polys/domains/finitefield.py \
- sympy/polys/domains/fractionfield.py \
- sympy/polys/domains/gmpyintegerring.py \
- sympy/polys/domains/gmpyrationalfield.py \
- sympy/polys/domains/groundtypes.py \
- sympy/polys/domains/mpmathcomplexdomain.py \
- sympy/polys/domains/mpmathrealdomain.py \
- sympy/polys/domains/polynomialring.py \
- sympy/polys/domains/pythoncomplexdomain.py \
- sympy/polys/domains/pythonintegerring.py \
- sympy/polys/domains/pythonrationalfield.py \
- sympy/polys/domains/pythonrealdomain.py \
- sympy/polys/domains/quotientring.py \
- sympy/polys/domains/sympyintegerring.py \
- sympy/polys/domains/sympyrationalfield.py \
- sympy/polys/domains/sympyrealdomain.py \
- sympy/polys/tests/test_domains.py \
- sympy/printing/latex.py \
- sympy/printing/repr.py \
- sympy/printing/str.py \
- sympy/simplify/simplify.py \
- sympy/simplify/tests/test_hyperexpand.py \
- sympy/solvers/solvers.py \
- sympy/solvers/tests/test_numeric.py \
- sympy/statistics/distributions.py \
- sympy/statistics/tests/test_statistics.py \
- sympy/utilities/decorator.py \
- sympy/utilities/lambdify.py \
- sympy/utilities/runtests.py \
- sympy/utilities/tests/test_code_quality.py \
- sympy/utilities/tests/test_lambdify.py \
- examples/advanced/pidigits.py \
- examples/advanced/autowrap_ufuncify.py"
- rm -rf sympy/mpmath/* || die
- sed \
- -e "s:sympy\.mpmath:mpmath:g" \
- -e "s:from sympy import mpmath:import mpmath:g" \
- -i ${MPMATH_FILES} || die "failed to patch mpmath imports"
- epatch "${FILESDIR}"/${P}-mpmath.patch
-}
-
-src_unpack() {
- if use python_targets_python2_6 || use python_targets_python2_7; then
- mkdir "${WORKDIR}"/python2 || die
- cd "${WORKDIR}"/python2 || die
- unpack ${P}.tar.gz
- fi
- if use python_targets_python3_2; then
- mkdir "${WORKDIR}"/python3 || die
- cd "${WORKDIR}"/python3 || die
- unpack ${P}-py3.2.tar.gz
- fi
-}
-
-src_prepare() {
- if use system-mpmath; then
- if use python_targets_python2_6 || use python_targets_python2_7; then
- cd "${WORKDIR}"/python2/${P}
- system_mpmath
- fi
- if use python_targets_python3_2; then
- cd "${WORKDIR}"/python3/${P}
- system_mpmath
- fi
- fi
-}
-
-python_compile() {
- case ${EPYTHON} in
- python2*) cd "${WORKDIR}"/python2/${P};;
- python3*) cd "${WORKDIR}"/python3/${P};;
- esac
- PYTHONPATH="." distutils-r1_python_compile
-}
-
-python_compile_all() {
- if use doc; then
- if use python_targets_python2_6 || use python_targets_python2_7; then
- cd "${WORKDIR}"/python2/${P}/doc
- emake html
- else
- cd "${WORKDIR}"/python3/${P}/doc
- emake html
- fi
- fi
-}
-
-python_test() {
- case ${EPYTHON} in
- python2*) cd "${WORKDIR}"/python2/${P};;
- python3*) cd "${WORKDIR}"/python3/${P};;
- esac
- PYTHONPATH="." py.test || ewarn "tests with ${EPYTHON} failed"
-}
-
-python_install() {
- case ${EPYTHON} in
- python2*) cd "${WORKDIR}"/python2/${P};;
- python3*) cd "${WORKDIR}"/python3/${P};;
- esac
- PYTHONPATH="." distutils-r1_python_install
-}
-
-python_install_all() {
- if use python_targets_python2_6 || use python_targets_python2_7; then
- cd "${WORKDIR}"/python2/${P}
- else
- cd "${WORKDIR}"/python3/${P}
- fi
- if use doc; then
- dohtml -r doc/_build/html/*
- fi
- if use examples; then
- insinto /usr/share/doc/${P}
- doins -r examples
- fi
- 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
-}
diff --git a/dev-python/sympy/sympy-0.7.2.ebuild b/dev-python/sympy/sympy-0.7.2.ebuild
deleted file mode 100644
index 9181e41759cc..000000000000
--- a/dev-python/sympy/sympy-0.7.2.ebuild
+++ /dev/null
@@ -1,153 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.7.2.ebuild,v 1.2 2013/06/09 17:38:33 floppym Exp $
-
-EAPI="3"
-
-PYTHON_DEPEND="2:2.5"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4 3.* *-jython *-pypy-*"
-DISTUTILS_SRC_TEST="setup.py"
-
-inherit distutils eutils
-
-DESCRIPTION="Computer algebra system (CAS) in Python"
-HOMEPAGE="http://code.google.com/p/sympy/"
-SRC_URI="http://sympy.googlecode.com/files/${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"
-
-RDEPEND="
- mathml? (
- dev-libs/libxml2:2[python]
- dev-libs/libxslt[python]
- gtk? ( x11-libs/gtkmathview[gtk] ) )
- latex? (
- virtual/latex-base
- dev-texlive/texlive-fontsextra
- png? ( app-text/dvipng )
- pdf? ( app-text/ghostscript-gpl ) )
- texmacs? ( app-office/texmacs )
- ipython? ( dev-python/ipython )
- opengl? ( dev-python/pyopengl )
- imaging? ( virtual/python-imaging )
- pyglet? ( dev-python/pyglet )
- >=dev-python/pexpect-2.0
- ~dev-python/mpmath-0.17"
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx )
- test? ( dev-python/pytest )"
-
-pkg_setup() {
- python_pkg_setup
- export DOT_SAGE="${S}"
-}
-
-src_prepare() {
- # Remove mpmath
- rm -rf sympy/mpmath/*
- sed -i \
- -e "s:sympy\.mpmath:mpmath:g" \
- -e "s:from sympy import mpmath:import mpmath:g" \
- sympy/combinatorics/permutations.py \
- sympy/core/containers.py \
- sympy/core/evalf.py \
- sympy/core/expr.py \
- sympy/core/function.py \
- sympy/core/numbers.py \
- sympy/core/power.py \
- sympy/core/sets.py \
- sympy/core/tests/test_evalf.py \
- sympy/core/tests/test_numbers.py \
- sympy/core/tests/test_sets.py \
- sympy/core/tests/test_sympify.py \
- sympy/external/tests/test_numpy.py \
- sympy/functions/combinatorial/numbers.py \
- sympy/functions/combinatorial/tests/test_comb_numbers.py \
- sympy/functions/special/bessel.py \
- sympy/functions/special/gamma_functions.py \
- sympy/functions/special/hyper.py \
- sympy/functions/special/tests/test_hyper.py \
- sympy/matrices/matrices.py \
- sympy/ntheory/partitions_.py \
- sympy/physics/quantum/constants.py \
- sympy/physics/quantum/qubit.py \
- sympy/plotting/experimental_lambdify.py \
- sympy/plotting/intervalmath/interval_arithmetic.py \
- sympy/polys/numberfields.py \
- sympy/polys/polytools.py \
- sympy/polys/rootoftools.py \
- sympy/polys/domains/__init__.py \
- sympy/polys/domains/algebraicfield.py \
- sympy/polys/domains/domain.py \
- sympy/polys/domains/expressiondomain.py \
- sympy/polys/domains/finitefield.py \
- sympy/polys/domains/fractionfield.py \
- sympy/polys/domains/gmpyintegerring.py \
- sympy/polys/domains/gmpyrationalfield.py \
- sympy/polys/domains/groundtypes.py \
- sympy/polys/domains/mpmathcomplexdomain.py \
- sympy/polys/domains/mpmathrealdomain.py \
- sympy/polys/domains/polynomialring.py \
- sympy/polys/domains/pythoncomplexdomain.py \
- sympy/polys/domains/pythonintegerring.py \
- sympy/polys/domains/pythonrationalfield.py \
- sympy/polys/domains/pythonrealdomain.py \
- sympy/polys/domains/quotientring.py \
- sympy/polys/domains/sympyintegerring.py \
- sympy/polys/domains/sympyrationalfield.py \
- sympy/polys/domains/sympyrealdomain.py \
- sympy/polys/tests/test_domains.py \
- sympy/printing/latex.py \
- sympy/printing/repr.py \
- sympy/printing/str.py \
- sympy/simplify/simplify.py \
- sympy/simplify/tests/test_hyperexpand.py \
- sympy/solvers/solvers.py \
- sympy/solvers/tests/test_numeric.py \
- sympy/statistics/distributions.py \
- sympy/statistics/tests/test_statistics.py \
- sympy/utilities/decorator.py \
- sympy/utilities/lambdify.py \
- sympy/utilities/runtests.py \
- sympy/utilities/tests/test_code_quality.py \
- sympy/utilities/tests/test_lambdify.py \
- examples/advanced/pidigits.py \
- examples/advanced/autowrap_ufuncify.py \
- || die "failed to patch mpmath imports"
- epatch "${FILESDIR}"/${P}-mpmath.patch
-}
-
-src_compile() {
- PYTHONPATH="." distutils_src_compile
-
- if use doc; then
- cd doc
- emake html || die "emake html failed"
- fi
-}
-
-src_install() {
- PYTHONPATH="." distutils_src_install
-
- rm -f "${ED}usr/bin/"{doctest,test} || die "rm doctest test failed"
-
- if use doc; then
- dohtml -r doc/_build/html/*
- fi
-
- if use examples; then
- insinto /usr/share/doc/${P}
- doins -r examples
- fi
-
- 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
-}
diff --git a/dev-python/sympy/sympy-0.7.4.1.ebuild b/dev-python/sympy/sympy-0.7.4.1.ebuild
new file mode 100644
index 000000000000..2294fdf44765
--- /dev/null
+++ b/dev-python/sympy/sympy-0.7.4.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sympy/sympy-0.7.4.1.ebuild,v 1.1 2014/02/03 01:56:57 bicatali Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+
+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
+ http://dev.gentoo.org/~bicatali/distfiles/${P}-system-mpmath.patch.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}"
+
+RDEPEND="
+ >=dev-python/mpmath-0.18[${PYTHON_USEDEP}]
+ >=dev-python/pexpect-2.0[python_targets_python2_6?,python_targets_python2_7?]
+ imaging? ( virtual/python-imaging[${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}]
+ dev-libs/libxslt[python_targets_python2_6?,python_targets_python2_7?]
+ gtk? ( x11-libs/gtkmathview[gtk] )
+ )
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
+ pyglet? ( dev-python/pyglet[python_targets_python2_6?,python_targets_python2_7?] )
+ texmacs? ( app-office/texmacs )
+ theano? ( dev-python/theano[python_targets_python2_6?,python_targets_python2_7?] )
+"
+
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${WORKDIR}"/${P}-system-mpmath.patch )
+
+python_prepare() {
+ rm -r sympy/mpmath doc/src/modules/mpmath || die
+}
+
+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 -C doc html cheatsheet
+ fi
+}
+
+python_test() {
+ VIRTUALX_COMMAND="./setup.py" virtualmake test
+}
+
+python_install() {
+ PYTHONPATH="." distutils-r1_python_install
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/_build/. ) && \
+ dodoc doc/_build/cheatsheet/cheatsheet.pdf
+ 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
+}