summaryrefslogtreecommitdiff
path: root/dev-python/sympy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/sympy
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/sympy')
-rw-r--r--dev-python/sympy/Manifest17
-rw-r--r--dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch10
-rw-r--r--dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch65
-rw-r--r--dev-python/sympy/files/sympy-0.7.6.1-zeta.patch32
-rw-r--r--dev-python/sympy/files/sympy-1.0-doc-makefile.patch10
-rw-r--r--dev-python/sympy/files/sympy-1.0-zeta.patch47
-rw-r--r--dev-python/sympy/files/sympy-1.1.1-zeta.patch29
-rw-r--r--dev-python/sympy/metadata.xml32
-rw-r--r--dev-python/sympy/sympy-0.7.6.1-r1.ebuild97
-rw-r--r--dev-python/sympy/sympy-1.0-r1.ebuild95
-rw-r--r--dev-python/sympy/sympy-1.1.1.ebuild90
-rw-r--r--dev-python/sympy/sympy-1.1.ebuild89
12 files changed, 613 insertions, 0 deletions
diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest
new file mode 100644
index 000000000000..d3ebaef82e54
--- /dev/null
+++ b/dev-python/sympy/Manifest
@@ -0,0 +1,17 @@
+AUX sympy-0.7.6-doc-makefile.patch 573 SHA256 71206fbb563c6624e03450a701e42209578e8c34073c93462dedf8a73491b5bd SHA512 b5d3943da750bf37b2f193fd5458b3305000a4927112e5ff2444680c203c2854e75e25c5a109462eca03c6964b667d6b740f28fbe945c354064de284b2fb3573 WHIRLPOOL aa955e605055df3f2c2b5fe2f333ef64cc1d98f613d8777a5eeef5fb365017e23749316e7e9df2642a469fe50ff6d743a6780eacede73013a1a4e61be9acec23
+AUX sympy-0.7.6.1-sphinx-1.3.1.patch 2305 SHA256 34c9266e5881568f359043a287bc0b8b9f4fc4d52abf90c1378b7c72e818eac6 SHA512 dd93360697be0c53b66af77b5e6670f0c83c1802a4cfc833c1038e52fd1bf2389b1cf974b783ed98f2e2551e52992c55bdf11f71db5ec29e496517c1c971c409 WHIRLPOOL 5019894ce76ab14ae51ed3185613d429ec344158b19392912a1f57495908adf3891c83596289725c9b5c90cfc9618848369445a0d61d872b6080240b16421771
+AUX sympy-0.7.6.1-zeta.patch 1070 SHA256 b98bc76c438ea211fd0ee17b3028df8b8a8b9648a20f13cc6e19fed50ff03151 SHA512 0dba3db948369757eb073ecf1665b833673ba04e023b5bb272acf66a3e5f34e4e53e3c77997f99c64e437f299c340dd9450f6bf13b5b1c2f9980487d071f4d7d WHIRLPOOL 1bb01cde01cbfcfd1d1e34121638dad0a10daeccf0bbfd960e097742edc27522321cb82db4bb26adcb67c735487416943e5fdd0edea97e6a560926da10d466ce
+AUX sympy-1.0-doc-makefile.patch 565 SHA256 56d963ed6836565158f060e2395674f899ccd67b964340b9a700b3d8af3b7158 SHA512 45012ba3c3af162510eff7c6800c2a88739aff203a46ae95b854685850658bf68feacb7d100a164ac58cd7968058bb555909c1f0d6d06e54532a14c0b5e64069 WHIRLPOOL dc758e654e74aba8fd9e9c8cc3c41767ed17baf634443ad57cd35a12e2dbcf53803d6b1d9d55112e393c1aa5ed4329c4995dd21c75e7a948497d63c339b0b0fd
+AUX sympy-1.0-zeta.patch 1908 SHA256 d0e933ad40f609e2aa37a3eeb62332d34b98180535b76745e9545352b31970d4 SHA512 b3cc3ae37c8faf7077c8b3018859c21a14b38f92d85de4386686a20f0318b9e73ab33fde276f00b859e0de19022cbd095844d4310398ec5cb4a4441cddc0b21b WHIRLPOOL 3cb5602fa07a3fb68b6df23c3f72a6db7ec32945c26ca9be5144b2cb1b1b0fa60f3274102c6a8d03afd3ad5402c385080f4f4cf71dae1e82ad7ab13c50eb7168
+AUX sympy-1.1.1-zeta.patch 1097 SHA256 78a2a7d37fd0b58d3faa60c44d5698a7170e1d8ba347ae43219728709dac7c89 SHA512 e8e1ed0c9ace2c05b0b466759642ec8c196bb65d8bee3b8b3f742dfdaeb50eb9793deb1e88e4e0d30ac7e71a22b50c9670a2b31ea042701c02c2a98062b9b48e WHIRLPOOL 8a55659320e4bab3887fbe6df0e2880ba459cc52f997ed712e5daa65520990a8c3cffb9eb468ada3eab339f1eaf5a8bfb260274ada80784db9b2f722a347a8fa
+DIST sympy-0.7.6.1.tar.gz 6431571 SHA256 1fc272b51091aabe7d07f1bf9f0a47f3e28657fb2bec52bf3ef0e8f159f5f564 SHA512 18877abd3c530418e4f4942cbb0a03140dc81e5a1004720c472fb97cf8eaa41acca59765f6278715ea88bcd0cd07ad5952863a0d1b6e6d00994d257e8c0a6574 WHIRLPOOL b0c0c74e7865c91585d1a2c8510fe328b8e697dec02bd17aaa446ef6e089b9cf2ca5b4f58b6b59febccf142384b907e1bd47451e22fa305843bd883355801226
+DIST sympy-1.0.tar.gz 4281528 SHA256 3eacd210d839e4db911d216a9258a3ac6f936992f66db211e22767983297ffae SHA512 977db6e9bc6a5918cceb255981a57e85e7060c0922aefd2968b004d25d704e25a5cb5bbe09eb387e8695581e23e2825d9c40310068fe25ece7e9c23037a21f39 WHIRLPOOL df02cc8603c23f621226f28b4f0555e765f145d968869058ed9420fedd3c6d6d0f095ee14fa864cd505455f245e5adf10794fc3b1392fb5a331ed5dc506b988b
+DIST sympy-1.1.1.tar.gz 4580952 SHA256 ac5b57691bc43919dcc21167660a57cc51797c28a4301a6144eff07b751216a4 SHA512 ff8857fd5810795554ca4f636b2d8e633057d7ea7df76461003d823ecbaddc98cde0561eb79a1058741c5ece233c13bfcb5e30d5bfb8ac6dbab3d05d8226f92b WHIRLPOOL 3ab86021e99de620127bbd3da994745d265e66fbe7ebf77984106f998443200dd7a5a3295cc62e3bca7e3eb1df58b331d1faba568760230fab550c5c2c3f92b9
+DIST sympy-1.1.tar.gz 4579454 SHA256 e42d7b8cc719bb0427b503d49f8489ec6292c74957c3bd04216a8392bee37782 SHA512 4129752778b50fbc08180fe413d2109ad418b54b79caea461b9a6cf6856ab4f50ce95df6131b07791ed633c840648aa7c4dd130ab3f1cbb1e03e7346e995747b WHIRLPOOL bcee355015504a464c89f1cc2c35b3085af6d53a4d8c2245eda124ddbf53fb562b6a768b2d6cd79688b1255a21540094bd18e3f814dd729541a85767e27adb3c
+EBUILD sympy-0.7.6.1-r1.ebuild 2679 SHA256 eda8089a1e8bf8dd36c15692cf6750a682ac0b5f9711351eeeaa9ec00ab6462a SHA512 88def7213862db34d36e60ebab7b840f1c57ec1ebc23f2f89efa4c49f2f3d2085b55f934f2a1468c9e3f9c66b584a185a2652bf8b158c1d94289bacf736055b6 WHIRLPOOL d6e1f06058fddd84fa121cbe76f4a9830805d59874b9c1326cfc56b05ff3afa0c1ff9d0cf94cfc97d1216ebbbf274cf0c6f7197d3d398f9b4f6941e0778a5d42
+EBUILD sympy-1.0-r1.ebuild 2687 SHA256 d0b052de963c09c0e731dfad5d4558fa514ce1a03374f3bfb0ef578d2d62377e SHA512 66357e892961b6d6b569cbe87ecbe02efd3188073834871ce97b3423e62ae3761cad984913e4da57f240690df3417b28b9458cd5881bd1d12486d9733b66f463 WHIRLPOOL 9790025b35e14127d3a6b0d7a93a44ecf03fbceaf9ea55c1d65d9d486fd272d679adca507534921dbda187bc2802fbf2eb636734664e600f5556647eb9c376f4
+EBUILD sympy-1.1.1.ebuild 2502 SHA256 958f1b45d9e91089508c26b60272ce7585fb9ea31c906a2ffb8692a08dc3dc31 SHA512 e48115b0f9bb6399dfe85c4cdb3e916d37ba25400c0a6319a20693d05e4e278bbdb1f90490fd25910c153e558d2732bf852ab4fa726682a0c4a3ee395da8d9f9 WHIRLPOOL 5f63c0487283f7b548a06c50e8d7a7aa333bfb59cb91d0fbc74d5693f6fbd12ce6489337941f0e07fc92b4046bc1650959ec7c40396daf3e078f198ed7d62db9
+EBUILD sympy-1.1.ebuild 2471 SHA256 7b9d72292619a0598805caf320860068201ddee196f0a31a1f33e9b593ab405a SHA512 4f64a01768e1afeb495139c7f85b4f6d4d1b17a9edb600272385dd61c6355d66fbac685ca10dc4ecfb92056cd81a1a9bc56ebfbe65b83a83bc5209ba03c03c37 WHIRLPOOL 206c756b5a738b8bb5cda01106f75c8502367bca899273fcbb9e680741e7fdc9c8f34d3c3b3e35f93d7206b091d329addcefd0509f886fbafccf2857bd293018
+MISC ChangeLog 4867 SHA256 233d9656a69e7d06d93cdee411df3afa4b6a0e380adeda274c12b113eaeb298e SHA512 de04e49d6d9b5ad9a739ec8f30b634182f533bd83e9252dfbfce47ab07934152549ba6bb569525311e550549e06ce98785ec54c3119932c3df05c4e0b644943a WHIRLPOOL 1dce1e7d7517838728345762080d30ae26e822ffa0a36cfd2c7523247074d7f45421e8298e639188bea065c8ff3abaa5bcd8ab0e0e28eda8f29b1f882e0f5442
+MISC ChangeLog-2015 5654 SHA256 f499b420c429d816e180a6ddf0af3068262bdb5198a8dc9c49910414b603f657 SHA512 cb2b8de6abce4e10aabb5148a557cc87b65edbcbe64134b60bfefd7b68fce6036d8b6e5a5f446bdc76bd6053fdb8044e8eefce0083462c2138a0edba40bdab36 WHIRLPOOL 5560c892ef02fdb3bfc4408d494be2a14b2525ab716dd914ddf830a76d8345b3e21c758bcb3d7a77d8273a7e94537d8a09c3f9c63794638902768ca3835bbbf8
+MISC metadata.xml 1476 SHA256 329cfc4926c1e27378113fb01216ec7c509174267095cfc6c289459f93163b39 SHA512 99d6eb86839fd09abd4db55783e028c6f97c9d0dfa8d68ceda881e6ca981f86877e55a0a83d34b432833f0824a896eea8af35eb9ea499bffe0c62e1e0a27c3c2 WHIRLPOOL 8ab8d64bb12b1d9234cc66ab1b871cdbbe9368df13c8fa44311a23b3e67073ff0a6af5eefcce1a28799872eecef0c593cdfbf38b1830f969c23b09429ecd37c0
diff --git a/dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch b/dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch
new file mode 100644
index 000000000000..b4beca8c2a1c
--- /dev/null
+++ b/dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch
@@ -0,0 +1,10 @@
+diff -r -U2 sympy-0.7.6.orig/doc/Makefile sympy-0.7.6/doc/Makefile
+--- sympy-0.7.6.orig/doc/Makefile 2014-11-21 02:00:41.000000000 +0600
++++ sympy-0.7.6/doc/Makefile 2014-12-07 20:49:01.091613474 +0600
+@@ -118,5 +118,5 @@
+ pdflatex -output-directory=_build/cheatsheet cheatsheet/cheatsheet.tex
+
+-_build/cheatsheet/cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex
++_build/cheatsheet/combinatoric_cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex
+ mkdir -p _build/cheatsheet
+ pdflatex -output-directory=_build/cheatsheet cheatsheet/combinatoric_cheatsheet.tex
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/files/sympy-0.7.6.1-zeta.patch b/dev-python/sympy/files/sympy-0.7.6.1-zeta.patch
new file mode 100644
index 000000000000..ffb85f9feb17
--- /dev/null
+++ b/dev-python/sympy/files/sympy-0.7.6.1-zeta.patch
@@ -0,0 +1,32 @@
+diff -r -U1 sympy-0.7.6.1.orig/sympy/functions/special/zeta_functions.py sympy-0.7.6.1/sympy/functions/special/zeta_functions.py
+--- sympy-0.7.6.1.orig/sympy/functions/special/zeta_functions.py 2015-09-04 02:34:00.000000000 +0600
++++ sympy-0.7.6.1/sympy/functions/special/zeta_functions.py 2015-12-01 11:27:24.000000000 +0600
+@@ -243,3 +243,3 @@
+ >>> polylog(s, -1)
+- dirichlet_eta(s)
++ -dirichlet_eta(s)
+
+@@ -270,2 +270,3 @@
+ def eval(cls, s, z):
++ from sympy import unpolarify
+ if z == 1:
+@@ -273,6 +274,12 @@
+ elif z == -1:
+- return dirichlet_eta(s)
++ return -dirichlet_eta(s)
+ elif z == 0:
+- return 0
++ return S.Zero
+
++ # branch handling
++ if (1 - abs(z)).is_nonnegative:
++ newz = unpolarify(z)
++ if newz != z:
++ return cls(s, newz)
++
+ def fdiff(self, argindex=1):
+@@ -479,3 +486,3 @@
+
+- .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^n}{n^s}.
++ .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{n^s}.
+
diff --git a/dev-python/sympy/files/sympy-1.0-doc-makefile.patch b/dev-python/sympy/files/sympy-1.0-doc-makefile.patch
new file mode 100644
index 000000000000..6fe64b853c23
--- /dev/null
+++ b/dev-python/sympy/files/sympy-1.0-doc-makefile.patch
@@ -0,0 +1,10 @@
+diff -r -U2 sympy-1.0.orig/doc/Makefile sympy-1.0/doc/Makefile
+--- sympy-1.0.orig/doc/Makefile 2016-03-08 19:38:39.000000000 +0100
++++ sympy-1.0/doc/Makefile 2016-03-18 20:04:36.393615499 +0100
+@@ -118,5 +118,5 @@
+ pdflatex -output-directory=_build/cheatsheet cheatsheet/cheatsheet.tex
+
+-_build/cheatsheet/cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex
++_build/cheatsheet/combinatoric_cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex
+ mkdir -p _build/cheatsheet
+ pdflatex -output-directory=_build/cheatsheet cheatsheet/combinatoric_cheatsheet.tex
diff --git a/dev-python/sympy/files/sympy-1.0-zeta.patch b/dev-python/sympy/files/sympy-1.0-zeta.patch
new file mode 100644
index 000000000000..43f54832c948
--- /dev/null
+++ b/dev-python/sympy/files/sympy-1.0-zeta.patch
@@ -0,0 +1,47 @@
+diff -r -U2 sympy-1.0.orig/sympy/functions/special/tests/test_zeta_functions.py sympy-1.0/sympy/functions/special/tests/test_zeta_functions.py
+--- sympy-1.0.orig/sympy/functions/special/tests/test_zeta_functions.py 2016-03-09 00:38:39.000000000 +0600
++++ sympy-1.0/sympy/functions/special/tests/test_zeta_functions.py 2016-12-28 23:25:19.370041561 +0700
+@@ -125,5 +125,5 @@
+ assert polylog(s, 0) == 0
+ assert polylog(s, 1) == zeta(s)
+- assert polylog(s, -1) == dirichlet_eta(s)
++ assert polylog(s, -1) == -dirichlet_eta(s)
+
+ assert myexpand(polylog(1, z), -log(1 + exp_polar(-I*pi)*z))
+diff -r -U2 sympy-1.0.orig/sympy/functions/special/zeta_functions.py sympy-1.0/sympy/functions/special/zeta_functions.py
+--- sympy-1.0.orig/sympy/functions/special/zeta_functions.py 2016-03-09 00:38:39.000000000 +0600
++++ sympy-1.0/sympy/functions/special/zeta_functions.py 2016-12-28 23:23:56.109047180 +0700
+@@ -245,5 +245,5 @@
+ zeta(s)
+ >>> polylog(s, -1)
+- dirichlet_eta(s)
++ -dirichlet_eta(s)
+
+ If :math:`s` is a negative integer, :math:`0` or :math:`1`, the
+@@ -272,10 +272,17 @@
+ @classmethod
+ def eval(cls, s, z):
++ from sympy import unpolarify
+ if z == 1:
+ return zeta(s)
+ elif z == -1:
+- return dirichlet_eta(s)
++ return -dirichlet_eta(s)
+ elif z == 0:
+- return 0
++ return S.Zero
++
++ # branch handling
++ if (1 - abs(z)).is_nonnegative:
++ newz = unpolarify(z)
++ if newz != z:
++ return cls(s, newz)
+
+ def fdiff(self, argindex=1):
+@@ -486,5 +493,5 @@
+ For `\operatorname{Re}(s) > 0`, this function is defined as
+
+- .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^n}{n^s}.
++ .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{n^s}.
+
+ It admits a unique analytic continuation to all of :math:`\mathbb{C}`.
diff --git a/dev-python/sympy/files/sympy-1.1.1-zeta.patch b/dev-python/sympy/files/sympy-1.1.1-zeta.patch
new file mode 100644
index 000000000000..d9bab8096fac
--- /dev/null
+++ b/dev-python/sympy/files/sympy-1.1.1-zeta.patch
@@ -0,0 +1,29 @@
+diff -U2 -r sympy-1.1.1.orig/sympy/functions/special/zeta_functions.py sympy-1.1.1/sympy/functions/special/zeta_functions.py
+--- sympy-1.1.1.orig/sympy/functions/special/zeta_functions.py 2017-07-22 05:17:42.000000000 +0700
++++ sympy-1.1.1/sympy/functions/special/zeta_functions.py 2017-07-28 06:35:28.477927184 +0700
+@@ -272,4 +272,5 @@
+ @classmethod
+ def eval(cls, s, z):
++ from sympy import unpolarify
+ if z == 1:
+ return zeta(s)
+@@ -277,5 +278,11 @@
+ return -dirichlet_eta(s)
+ elif z == 0:
+- return 0
++ return S.Zero
++
++ # branch handling
++ if (1 - abs(z)).is_nonnegative:
++ newz = unpolarify(z)
++ if newz != z:
++ return cls(s, newz)
+
+ def fdiff(self, argindex=1):
+@@ -483,5 +490,5 @@
+ For `\operatorname{Re}(s) > 0`, this function is defined as
+
+- .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^n}{n^s}.
++ .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{n^s}.
+
+ It admits a unique analytic continuation to all of :math:`\mathbb{C}`.
diff --git a/dev-python/sympy/metadata.xml b/dev-python/sympy/metadata.xml
new file mode 100644
index 000000000000..4a6d0ef3980f
--- /dev/null
+++ b/dev-python/sympy/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</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/pillow</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="symengine">Add support for a <pkg>dev-python/symengine</pkg> backend</flag>
+ <flag name="texmacs">Add <pkg>app-office/texmacs</pkg> interface</flag>
+ <flag name="theano">Add support for <pkg>dev-python/theano</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="pypi">sympy</remote-id>
+ <remote-id type="github">sympy/sympy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/sympy/sympy-0.7.6.1-r1.ebuild b/dev-python/sympy/sympy-0.7.6.1-r1.ebuild
new file mode 100644
index 000000000000..c16062a24924
--- /dev/null
+++ b/dev-python/sympy/sympy-0.7.6.1-r1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,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_gen_useflags 'python2*') ) )"
+
+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}] )"
+
+pkg_setup() {
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
+}
+
+python_prepare_all() {
+ epatch "${FILESDIR}"/${PN}-0.7.6-doc-makefile.patch
+ epatch "${FILESDIR}"/${P}-sphinx-1.3.1.patch
+ epatch "${FILESDIR}"/${P}-zeta.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() {
+ virtx "${PYTHON}" setup.py test
+}
+
+python_install() {
+ PYTHONPATH="." distutils-r1_python_install
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS README.rst )
+ use doc &&\
+ 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
+}
diff --git a/dev-python/sympy/sympy-1.0-r1.ebuild b/dev-python/sympy/sympy-1.0-r1.ebuild
new file mode 100644
index 000000000000..358b62dde769
--- /dev/null
+++ b/dev-python/sympy/sympy-1.0-r1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+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 ~x64-macos ~x86-macos"
+IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png pyglet test texmacs theano"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ doc? ( || ( $(python_gen_useflags 'python2*') ) )"
+
+RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}]
+ $(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}] app-text/docbook2X )
+ test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )"
+
+pkg_setup() {
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
+}
+
+python_prepare_all() {
+ epatch "${FILESDIR}"/${P}-doc-makefile.patch
+ epatch "${FILESDIR}"/${P}-zeta.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 man cheatsheet
+ fi
+}
+
+python_test() {
+ virtx "${PYTHON}" setup.py test
+}
+
+python_install() {
+ PYTHONPATH="." distutils-r1_python_install
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS README.rst )
+ if use doc; then
+ DOCS+=( doc/_build/cheatsheet/cheatsheet.pdf \
+ doc/_build/cheatsheet/combinatoric_cheatsheet.pdf )
+ local HTML_DOCS=( doc/_build/html/. )
+ doinfo doc/_build/texinfo/${PN}.info
+ fi
+ 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
+}
diff --git a/dev-python/sympy/sympy-1.1.1.ebuild b/dev-python/sympy/sympy-1.1.1.ebuild
new file mode 100644
index 000000000000..35ea4c1cc066
--- /dev/null
+++ b/dev-python/sympy/sympy-1.1.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+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 ~x64-macos ~x86-macos"
+IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ doc? ( || ( $(python_gen_useflags 'python2*') ) )"
+
+RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ 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? ( dev-python/pyglet[${PYTHON_USEDEP}] )
+ symengine? ( dev-python/symengine[${PYTHON_USEDEP}] )
+ texmacs? ( app-office/texmacs )
+ theano? ( dev-python/theano[${PYTHON_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] app-text/docbook2X )
+ test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-zeta.patch
+ "${FILESDIR}"/${PN}-1.0-doc-makefile.patch
+)
+
+pkg_setup() {
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
+}
+
+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 man cheatsheet
+ fi
+}
+
+python_test() {
+ virtx "${PYTHON}" setup.py test
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS README.rst )
+ if use doc; then
+ DOCS+=( doc/_build/cheatsheet/cheatsheet.pdf \
+ doc/_build/cheatsheet/combinatoric_cheatsheet.pdf )
+ local HTML_DOCS=( doc/_build/html/. )
+ doinfo doc/_build/texinfo/${PN}.info
+ fi
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ 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
+}
diff --git a/dev-python/sympy/sympy-1.1.ebuild b/dev-python/sympy/sympy-1.1.ebuild
new file mode 100644
index 000000000000..9fb9e67fbfca
--- /dev/null
+++ b/dev-python/sympy/sympy-1.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+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 ~x64-macos ~x86-macos"
+IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ doc? ( || ( $(python_gen_useflags 'python2*') ) )"
+
+RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ 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? ( dev-python/pyglet[${PYTHON_USEDEP}] )
+ symengine? ( dev-python/symengine[${PYTHON_USEDEP}] )
+ texmacs? ( app-office/texmacs )
+ theano? ( dev-python/theano[${PYTHON_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] app-text/docbook2X )
+ test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.0-doc-makefile.patch
+)
+
+pkg_setup() {
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
+}
+
+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 man cheatsheet
+ fi
+}
+
+python_test() {
+ virtx "${PYTHON}" setup.py test
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS README.rst )
+ if use doc; then
+ DOCS+=( doc/_build/cheatsheet/cheatsheet.pdf \
+ doc/_build/cheatsheet/combinatoric_cheatsheet.pdf )
+ local HTML_DOCS=( doc/_build/html/. )
+ doinfo doc/_build/texinfo/${PN}.info
+ fi
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ 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
+}