Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing sage-4.8

(Portage version: 2.2.0_alpha110/git/Linux x86_64, unsigned Manifest commit)
  • Loading branch information...
commit 6998106c3096e61fbaa4d58f31b178ad7e473487 1 parent 8986d69
@kiwifb kiwifb authored
View
7 sci-mathematics/sage/ChangeLog
@@ -2,6 +2,13 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 13 Jun 2012; François Bissey <francois.bissey@canterbury.ac.nz>
+ -files/11986_integer_hash-sage.patch, -files/sage-4.7.1-fix-SAGE_LOCAL.patch,
+ -files/9958_combinat.patch.bz2, -files/9958_exceptions.patch.bz2,
+ -files/9958_float_printing.patch.bz2, -files/9958_misc.patch.bz2,
+ -files/trac_12171a.patch, -files/trac_12171b.patch, -sage-4.8-r1.ebuild:
+ remove sage-4.8
+
31 May 2012; Christopher Schwan <cschwan@students.uni-mainz.de>
sage-4.8-r1.ebuild, sage-5.0-r1.ebuild:
Fix dependencies and -pari24 USE flag
View
12 sci-mathematics/sage/Manifest
@@ -1,12 +1,6 @@
-AUX 11986_integer_hash-sage.patch 1719 RMD160 4fb4b2afd45fd02304ec2b3bc4f01636e468b0c1 SHA1 811ae105337e42430d1eabbe99db12a27eb0d465 SHA256 9d07e01bdb891c881d2ddd2db98a74663c0adf1c01c7c2be23368aa37dd7a9da
-AUX 9958_combinat.patch.bz2 948 RMD160 18429c5d87327af7d0d59e4518e755efb37bc9ab SHA1 e86a59f997488f2bac83e0f1402e1f0fd30a9e61 SHA256 91ab17b83dc355d10889b3d3015f05d977f9b72b3b21f24ae152c94bdda30675
-AUX 9958_exceptions.patch.bz2 2410 RMD160 a939c87d166150d13d8364ac107e975d9a94cb47 SHA1 1febeec728ab223c06074e33d8bea4b44b69d7bf SHA256 3a0fd47b5dc04559715d1e50e75b7d81bcaf96e221cbd99745c450de5391ad15
-AUX 9958_float_printing.patch.bz2 18665 RMD160 f40c77b7d3ea253934decc0675bd80aee5c0f104 SHA1 f89fd9ce3e47a2140a9b5dbe5f7c1733bec10bef SHA256 af6588f55135ef93ae9c6291e3a13289f7dc18c5c8e6adfee48865ede258836a
-AUX 9958_misc.patch.bz2 618 RMD160 df6d19dc5920ee59b490292eda0bee113a1b104e SHA1 433e2ef9f141bb0f2880a0525fa515fa283efdce SHA256 c424d223cfd922e5e02616d052376e0f7ee5c8a0515a45e695b62e5d83e8b80e
AUX sage-4.4.2-flint.patch 349 RMD160 b54e4cc61ffcdb45e181885e36137e9112a0e723 SHA1 33b5f818bf1086c872b06e34f8d1bb71f6df3cef SHA256 1d3663658a7ab36d5102a2acb14bad6e170cfb97caea568f43b27067bc994241
AUX sage-4.5.1-fix-qepcad-path.patch 1376 RMD160 aba9f6d49d940bd05f8cb2f5d4bfe12779d77780 SHA1 2d05ae05b85b62d114cfe2dcbd67f1c9dc029ab7 SHA256 1d888d451d36c7f2ff407750a10b9ddb3a9f444d4ba90df129a8cb283aaa8f11
AUX sage-4.6.2-gfan-0.5.patch 390 RMD160 f0a9f63f4bd4e512e64d8489da83415088e9c48a SHA1 adeda19bd589525ec4906842d05dc99e749eb9e3 SHA256 9453c6f76c34c7f8670940814c8dd79d1ce44dddabd7564a0eb4b966906df663
-AUX sage-4.7.1-fix-SAGE_LOCAL.patch 4673 RMD160 4d9d69af991a7338a34178984b0ff4d5d5dd7201 SHA1 62a50f971de91d5e8d88d7c901b6940df55100f0 SHA256 6b73fabfbe17f56175d30608fcb65f787c44aeec3b2a89b5f09ff1577c389603
AUX sage-4.7.2-site-packages.patch 901 RMD160 5b435f65325544a9a6874d7666dec1d0f3329434 SHA1 caf9103f2f5931f100832465e287227be61f3869 SHA256 bb08575f00fb403041acbcad2cce9c8a1b422e4872ad52ab375638029a399837
AUX sage-4.8-dist.py.patch 1090 RMD160 f958dc60085bd7e7d0a2e859b3434f8bb2e2a005 SHA1 e68b72ca88d58d8ab41b758357cd5236dc25271e SHA256 2b38f8274e00d7116a4bfec6719803207bb81bdb16bf0bbbc24bd6524e1faf00
AUX sage-4.8-sagestarted.patch 662 RMD160 2440c692b09d40cc999391722833464f9b5c2a14 SHA1 551279a5af56c603718ea188dfd5330f98ed5d26 SHA256 c675dd6dccbf6931cffb2a92d53acfcdb424f5ab51a1e369d54ab3a26be8c5ef
@@ -15,12 +9,8 @@ AUX sage-5.0-fix-SAGE_LOCAL.patch 4847 RMD160 e4836ee71d12fef40ea913b6dd97726d9e
AUX sage-5.0-plural.patch 939 RMD160 9d2715a469c5801ae169067a37ef804c45f63b29 SHA1 136b6484d5932df91235f66f8dbe81d56c86f33f SHA256 65bd03164b6bd555ceb845284002de06721d0bdbb6c76861c89029c4ad34af6b
AUX trac_10764-fix-gen_interpreters_doctest.patch 775 RMD160 58a8d8931fd7227240ecba5090f1b3a2349d0ce1 SHA1 ee8a910930108c6e2a69badd66cd84ffae143dd0 SHA256 e53f0eed4a7f77267a96597a8c0ecc70ff736ad2fdff434319a7b9ad19ce8c33
AUX trac_10764-fix_deprecation_warning.patch 1396 RMD160 5f1da53650369f0526b2d8d4fd88ac509a5f7104 SHA1 c6ccfcf5b8e6702ef61aa184467e6eee89dceec6 SHA256 3033277d38123242649ee3d8ca7247a88ee9af410db24b39f9f3630c0c9bd8a1
-AUX trac_12171a.patch 3466 RMD160 b025f2d27c657c1a02b05b046a463c6580453349 SHA1 c30907a9b3acb12491ea578d1465a3305afe9b65 SHA256 22e2ba5061175964d613217eea17132e4408de052ca6d73e128b71b70dc2e662
-AUX trac_12171b.patch 1168 RMD160 b3a6bde06d71c550f716fbd5e7aa4ce91a4edb8f SHA1 ad3f15634efdbc77e97d9ba965fd316fbea0bc00 SHA256 98f5d3f25c7a537f18304ca72a1a955e0287c0c57e03ee70905fa60c099efed1
AUX trac_9238_script_extension.patch 875 RMD160 da8ee6520a5bc4c3eaf5bfaa3c5d0f07c47ba08b SHA1 c889f040886957d9082fb01a689de9cd4ee8075e SHA256 879e1af4aebf781fc06d3644568a9ee4ed83c7ba7e6b01d27f3b2457728696ca
-DIST sage-4.8.tar.bz2 51527186 RMD160 112760aa36c541a2a3cc28bbacba4f1142a89523 SHA1 269252c1469da5245892b4bb21b1ba0bbd976a10 SHA256 733c9b5a72c19406d56eb0c82c0ad89d5a673a469f5a54dd5271cf031d38fc89
DIST sage-5.0.tar.bz2 53142199 RMD160 1d4bc90e7f3fd6362b95d9d0de6726045a83798c SHA1 8626a4aa67ba3eaf3b221d3f6600cc04572c3be3 SHA256 393f0880e6f58e3073caafe81b5c34b98dd30b901715bc98f651f8624cd6cf59
-EBUILD sage-4.8-r1.ebuild 13456 RMD160 83f35e594fadd1d92942f59d88d78082599fb5be SHA1 14864a35f6bc7d27c0615d3bc6c717d5e499903e SHA256 f06ce145b786744d4b19a5096160bb43f7745b36af53af1440de8d942fc057c7
EBUILD sage-5.0-r1.ebuild 13103 RMD160 c6c57f081bad3f0bf3bf8026dac6432b5850016a SHA1 10e96734071a4446f3d8512c2f3b780fcf92ad75 SHA256 8c8a8372d47ad83de0ead5c316aea5bdd425f37e22bfc669c7255da0992ea1f4
-MISC ChangeLog 78966 RMD160 dfae0da788cda7f43bb534851708b934ec0a7085 SHA1 caff7676e7492bf5a263a2bf9c4818599ef92cd8 SHA256 8ea17d1f5e3f336104eb6aea385f7a8c0781310e704bc975793433ab5b05a330
+MISC ChangeLog 79343 RMD160 f0ccd9147a9ca2c92644d1643dfd6af4d6211edc SHA1 cb35110106a4d712831612600f7d88c1ec589170 SHA256 7286108fed8c3a0ea4c2110a30b0bdf686e4a57e153e58d32260d3e332bb0512
MISC metadata.xml 362 RMD160 bd4b2ac2717d683f3fa6e80b778b51e159990f3f SHA1 64923f81986e9fef6eada08f3500beca70226c8d SHA256 b4274f6588c0ccee0eae8b6ddd0f5972e504f89694dcad64484e8ca0c2b4aac0
View
52 sci-mathematics/sage/files/11986_integer_hash-sage.patch
@@ -1,52 +0,0 @@
-# HG changeset patch
-# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
-# Date 1322873283 -3600
-# Node ID ce419c9accb3f3d2ae413df7196ca2047d35dedb
-# Parent 75d367dd794aeec6b2f5f45938ab93f10f63ec71
-Make Integer hash compatible with Python 2.7.2
-
-diff --git a/sage/rings/integer.pyx b/sage/rings/integer.pyx
---- a/sage/rings/integer.pyx
-+++ b/sage/rings/integer.pyx
-@@ -3044,13 +3044,39 @@
- sage: hash(int(n))
- -920384
- sage: n = -920390823904823094890238490238484; n.__hash__()
-- -873977844 # 32-bit
-+ -873977844 # 32-bit
- 6874330978542788722 # 64-bit
- sage: hash(long(n))
- -873977844 # 32-bit
- 6874330978542788722 # 64-bit
-
-- These tests come from trac #4957.
-+ TESTS::
-+
-+ sage: hash(0)
-+ 0
-+ sage: hash(-1)
-+ -2
-+ sage: n = 2^31 + 2^63 + 2^95 + 2^127 + 2^128*(2^32-2)
-+ sage: hash(n) == hash(long(n))
-+ True
-+ sage: hash(n-1) == hash(long(n-1))
-+ True
-+ sage: hash(-n) == hash(long(-n))
-+ True
-+ sage: hash(1-n) == hash(long(1-n))
-+ True
-+ sage: n = 2^63 + 2^127 + 2^191 + 2^255 + 2^256*(2^64-2)
-+ sage: hash(n) == hash(long(n))
-+ True
-+ sage: hash(n-1) == hash(long(n-1))
-+ True
-+ sage: hash(-n) == hash(long(-n))
-+ True
-+ sage: hash(1-n) == hash(long(1-n))
-+ True
-+
-+ These tests come from Trac #4957:
-+
- sage: n = 2^31 + 2^13
- sage: hash(n)
- -2147475456 # 32-bit
View
BIN  sci-mathematics/sage/files/9958_combinat.patch.bz2
Binary file not shown
View
BIN  sci-mathematics/sage/files/9958_exceptions.patch.bz2
Binary file not shown
View
BIN  sci-mathematics/sage/files/9958_float_printing.patch.bz2
Binary file not shown
View
BIN  sci-mathematics/sage/files/9958_misc.patch.bz2
Binary file not shown
View
113 sci-mathematics/sage/files/sage-4.7.1-fix-SAGE_LOCAL.patch
@@ -1,113 +0,0 @@
---- sage/misc/cython.py.orig 2010-10-01 17:31:00.000000000 -0500
-+++ sage/misc/cython.py 2010-10-01 17:36:02.000000000 -0500
-@@ -323,7 +323,7 @@
- sys.exit(1)
- else:
- SAGE_ROOT = os.environ['SAGE_ROOT']
-- SAGE_LOCAL = SAGE_ROOT + '/local/'
-+ SAGE_LOCAL = os.environ['SAGE_LOCAL']
-
- extra_link_args = ['-L' + SAGE_LOCAL + '/lib']
- extra_compile_args = ['-w','-O2']
---- sage/misc/misc.py.orig 2010-09-30 17:13:15.000000000 -0500
-+++ sage/misc/misc.py 2010-09-30 17:19:17.000000000 -0500
-@@ -40,7 +40,7 @@
- from banner import version, banner
-
- SAGE_ROOT = os.environ["SAGE_ROOT"]
--SAGE_LOCAL = SAGE_ROOT + '/local/'
-+SAGE_LOCAL = os.environ["SAGE_LOCAL"]
- SAGE_DOC = os.environ["SAGE_DOC"]
- HOSTNAME = socket.gethostname().replace('-','_').replace('/','_').replace('\\','_')
-
-@@ -123,7 +123,7 @@
-
-
- def delete_tmpfiles():
-- # !!!If you change this, see also SAGE_ROOT/local/bin/sage-doctest!!!
-+ # !!!If you change this, see also SAGE_LOCAL/bin/sage-doctest!!!
- import shutil
- try:
- if os.path.exists(SAGE_TMP):
-@@ -1888,7 +1888,7 @@
- r"""
- Return a string describing the current branch and that the library
- is being loaded. This is called by the
-- ``SAGE_ROOT/local/bin/sage-sage`` script.
-+ ``SAGE_LOCAL/bin/sage-sage`` script.
-
- INPUT:
-
---- sage/interfaces/maxima.py.orig 2010-09-30 20:46:50.000000000 -0500
-+++ sage/interfaces/maxima.py 2010-09-30 20:48:17.000000000 -0500
-@@ -461,7 +461,7 @@
- ##import sage.rings.all
- import sage.rings.complex_number
-
--from sage.misc.misc import DOT_SAGE, SAGE_ROOT
-+from sage.misc.misc import DOT_SAGE, SAGE_LOCAL
-
- from sage.misc.multireplace import multiple_replace
-
-@@ -497,7 +497,7 @@
- # setting inchar and outchar..
- eval_using_file_cutoff = 256
- self.__eval_using_file_cutoff = eval_using_file_cutoff
-- STARTUP = '%s/local/bin/sage-maxima.lisp'%SAGE_ROOT
-+ STARTUP = '%s/bin/sage-maxima.lisp'%SAGE_LOCAL
-
- # We set maxima's configuration directory to $DOT_SAGE/maxima
- # This avoids that sage's maxima inadvertently loads
-
---- sage/server/trac/trac.py.orig 2010-10-01 17:54:16.000000000 -0500
-+++ sage/server/trac/trac.py 2010-10-01 17:57:01.000000000 -0500
-@@ -120,7 +120,7 @@
- print " cd %s" % os.path.abspath(os.path.join(directory, 'conf'))
- print " htdigest passwd %s <username>" % address
- print "\nTo grant full admin permissions to a user:"
-- print " %s %s permission add <username> TRAC_ADMIN" % (os.path.join(SAGE_ROOT, 'local/bin/trac-admin'), os.path.abspath(directory))
-+ print " %s %s permission add <username> TRAC_ADMIN" % (os.path.join(SAGE_LOCAL, '/bin/trac-admin'), os.path.abspath(directory))
- print "\nThen restart the trac server."
- print "*" * 80
- open(passwd,'w').close()
---- sage/quadratic_forms/quadratic_form__automorphisms.py.orig 2010-09-30 18:22:43.000000000 -0500
-+++ sage/quadratic_forms/quadratic_form__automorphisms.py 2010-09-30 18:24:03.000000000 -0500
-@@ -10,7 +10,7 @@
- from sage.modules.free_module_element import vector
- from sage.rings.arith import GCD
- from sage.misc.sage_eval import sage_eval
--from sage.misc.misc import SAGE_ROOT
-+from sage.misc.misc import SAGE_LOCAL
-
- import tempfile, os
- from random import random
-@@ -452,7 +452,7 @@
- #os.system("less " + F.name)
-
- ## Call the Souvigner automorphism code
-- souvigner_auto_path = SAGE_ROOT + "/local/bin/Souvigner_AUTO" ## FIX THIS LATER!!!
-+ souvigner_auto_path = SAGE_LOCAL + "/bin/Souvigner_AUTO" ## FIX THIS LATER!!!
- G1 = tempfile.NamedTemporaryFile(prefix='tmp_auto_ouput', suffix=".txt")
- #print "Output filename = ", G1.name
- os.system(souvigner_auto_path + " '" + F.name + "' > '" + G1.name +"'")
---- sage/quadratic_forms/quadratic_form__equivalence_testing.py.orig 2010-09-30 18:22:54.000000000 -0500
-+++ sage/quadratic_forms/quadratic_form__equivalence_testing.py 2010-09-30 18:24:39.000000000 -0500
-@@ -11,7 +11,7 @@
- from quadratic_form__genus import CS_genus_symbol_list
-
-
--from sage.misc.misc import SAGE_ROOT
-+from sage.misc.misc import SAGE_LOCAL
-
- import tempfile, os
-
-@@ -78,7 +78,7 @@
- #os.system("less " + F.name)
-
- ## Call the Souvigner automorphism code
-- souvigner_isom_path = SAGE_ROOT + "/local/bin/Souvigner_ISOM"
-+ souvigner_isom_path = SAGE_LOCAL + "/bin/Souvigner_ISOM"
- G1 = tempfile.NamedTemporaryFile(prefix='tmp_isom_ouput', suffix=".txt")
- #print "Output filename = ", G1.name
- #print "Executing the shell command: " + souvigner_isom_path + " '" + F.name + "' > '" + G1.name + "'"
-
View
84 sci-mathematics/sage/files/trac_12171a.patch
@@ -1,84 +0,0 @@
-# HG changeset patch
-# User Paul Zimmermann <zimmerma@loria.fr>
-# Date 1324547422 -3600
-# Node ID 000c24e2984a4baf54bc0f70e1bd129109e43fd9
-# Parent 9e29a3d84c48c399daaf3920bcb8b17273a0e876
-#12171: partial patch to fix issues when upgrading to MPFI 1.5.0
-
-diff --git a/sage/rings/qqbar.py b/sage/rings/qqbar.py
---- a/sage/rings/qqbar.py
-+++ b/sage/rings/qqbar.py
-@@ -4000,14 +4000,18 @@
- -2.00000000000000
- sage: (-x).real_exact(RealField(53, rnd='RNDZ'))
- -2.00000000000000
-- sage: (x-2).real_exact(RR)
-- 0.000000000000000
-- sage: (x-2).real_exact(RealField(53, rnd='RNDD'))
-- 0.000000000000000
-- sage: (x-2).real_exact(RealField(53, rnd='RNDU'))
-- 0.000000000000000
-- sage: (x-2).real_exact(RealField(53, rnd='RNDZ'))
-- 0.000000000000000
-+ sage: y = (x-2).real_exact(RR).abs()
-+ sage: y == 0.0 or y == -0.0 # the sign of 0.0 is not significant in MPFI
-+ True
-+ sage: y = (x-2).real_exact(RealField(53, rnd='RNDD'))
-+ sage: y == 0.0 or y == -0.0 # same as above
-+ True
-+ sage: y = (x-2).real_exact(RealField(53, rnd='RNDU'))
-+ sage: y == 0.0 or y == -0.0 # idem
-+ True
-+ sage: y = (x-2).real_exact(RealField(53, rnd='RNDZ'))
-+ sage: y == 0.0 or y == -0.0 # ibidem
-+ True
- sage: y = AA(2).sqrt()
- sage: y.real_exact(RR)
- 1.41421356237310
-diff --git a/sage/rings/real_mpfi.pyx b/sage/rings/real_mpfi.pyx
---- a/sage/rings/real_mpfi.pyx
-+++ b/sage/rings/real_mpfi.pyx
-@@ -1079,12 +1079,12 @@
- sage: b = R('393.39203845902384098234098230948209384028340')
- sage: cmp(loads(dumps(b)), b)
- 0
-- sage: b = R(1)/R(0); b
-- [+infinity .. +infinity]
-+ sage: b = R(1)/R(0); b # R(0) has no particular sign, thus 1/R(0) covers the whole reals
-+ [-infinity .. +infinity]
- sage: loads(dumps(b)) == b
- True
-- sage: b = R(-1)/R(0); b
-- [-infinity .. -infinity]
-+ sage: b = R(-1)/R(0); b # same as above
-+ [-infinity .. +infinity]
- sage: loads(dumps(b)) == b
- True
- sage: b = R('[2 .. 3]'); b.str(error_digits=1)
-@@ -2361,8 +2361,8 @@
- sage: R = RealIntervalField()
- sage: R(1)/R(3)
- 0.3333333333333334?
-- sage: R(1)/R(0)
-- [+infinity .. +infinity]
-+ sage: R(1)/R(0) # since R(0) has no sign, gives the whole reals
-+ [-infinity .. +infinity]
- sage: R(1)/R(-1, 1)
- [-infinity .. +infinity]
-
-@@ -3218,12 +3218,11 @@
-
- EXAMPLES::
-
-- sage: RIF(-1, 1).min(0).endpoints()
-- (-1.00000000000000, 0.000000000000000)
-+ sage: a=RIF(-1, 1).min(0).endpoints()
-+ sage: a[0] == -1.0 and a[1].abs() == 0.0 # in MPFI, the sign of 0.0 is not specified
-+ True
- sage: RIF(-1, 1).min(pi).endpoints()
- (-1.00000000000000, 1.00000000000000)
-- sage: RIF(-1, 1).min(0).endpoints()
-- (-1.00000000000000, 0.000000000000000)
- sage: RIF(-1, 1).min(RIF(-100, 100)).endpoints()
- (-100.000000000000, 1.00000000000000)
- sage: RIF(-1, 1).min(RIF(-100, 0)).endpoints()
View
28 sci-mathematics/sage/files/trac_12171b.patch
@@ -1,28 +0,0 @@
-# HG changeset patch
-# User Paul Zimmermann <zimmerma@loria.fr>
-# Date 1325326475 -3600
-# Node ID b24f82f266ee938b12fd5229696429c5487c98b2
-# Parent 000c24e2984a4baf54bc0f70e1bd129109e43fd9
-#12171: second patch to fix two b == loads(dumps(b)) tests
-(the semantics of == is special for intervals, thus we have to compare
-separately the lower and upper bounds)
-
-diff --git a/sage/rings/real_mpfi.pyx b/sage/rings/real_mpfi.pyx
---- a/sage/rings/real_mpfi.pyx
-+++ b/sage/rings/real_mpfi.pyx
-@@ -1081,11 +1081,13 @@
- 0
- sage: b = R(1)/R(0); b # R(0) has no particular sign, thus 1/R(0) covers the whole reals
- [-infinity .. +infinity]
-- sage: loads(dumps(b)) == b
-+ sage: c = loads(dumps(b))
-+ sage: (c.lower(), c.upper()) == (b.lower(), b.upper())
- True
- sage: b = R(-1)/R(0); b # same as above
- [-infinity .. +infinity]
-- sage: loads(dumps(b)) == b
-+ sage: c = loads(dumps(b))
-+ sage: (c.lower(), c.upper()) == (b.lower(), b.upper())
- True
- sage: b = R('[2 .. 3]'); b.str(error_digits=1)
- '2.5?5'
View
399 sci-mathematics/sage/sage-4.8-r1.ebuild
@@ -1,399 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="4"
-
-PYTHON_DEPEND="2:2.7:2.7"
-PYTHON_USE_WITH="readline sqlite"
-
-inherit distutils eutils flag-o-matic python versionator
-
-MY_P="sage-$(replace_version_separator 2 '.')"
-
-DESCRIPTION="Math software for algebra, geometry, number theory, cryptography and numerical computation"
-HOMEPAGE="http://www.sagemath.org"
-SRC_URI="http://sage.math.washington.edu/home/release/${MY_P}/${MY_P}/spkg/standard/${MY_P}.spkg -> ${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
-IUSE="latex testsuite"
-
-RESTRICT="mirror test"
-
-CDEPEND="dev-libs/gmp
- >=dev-libs/mpfr-2.4.2
- >=dev-libs/ntl-5.5.2
- >=dev-libs/ppl-0.11.2
- >=dev-lisp/ecls-11.1.1-r1[-unicode]
- ~dev-python/numpy-1.5.1
- >=sci-mathematics/eclib-20100711
- >=sci-mathematics/ecm-6.2.1
- >=sci-libs/flint-1.5.0[ntl]
- >=sci-libs/fplll-3.0.12
- =sci-libs/givaro-3.2*
- >=sci-libs/gsl-1.15
- >=sci-libs/iml-1.0.1
- >=sci-libs/libcliquer-1.2_p7
- >=sci-libs/linbox-1.1.6-r4[sage]
- !=sci-libs/linbox-1.1.7
- ~sci-libs/m4ri-20111004
- ~sci-libs/m4rie-20111004
- >=sci-libs/mpfi-1.5
- ~sci-libs/pynac-0.2.3
- >=sci-libs/symmetrica-2.0
- >=sci-libs/zn_poly-0.9
- >=sci-mathematics/glpk-4.43
- >=sci-mathematics/lcalc-1.23-r4[pari]
- >=sci-mathematics/pari-2.5.0[data,gmp]
- ~sci-mathematics/polybori-0.7.1[sage]
- >=sci-mathematics/ratpoints-2.1.3
- ~sci-mathematics/sage-baselayout-${PV}[testsuite=]
- ~sci-mathematics/sage-clib-${PV}
- ~sci-libs/libsingular-3.1.3.3
- media-libs/gd[jpeg,png]
- media-libs/libpng
- >=sys-libs/readline-6.2
- sys-libs/zlib
- virtual/cblas"
-
-DEPEND="${CDEPEND}
- ~dev-python/cython-0.15.1"
-
-RDEPEND="${CDEPEND}
- >=dev-lang/R-2.14.0
- >=dev-python/cvxopt-1.1.3[glpk]
- >=dev-python/gdmodule-0.56-r2[png]
- ~dev-python/ipython-0.10.2
- >=dev-python/jinja-2.1.1
- >=dev-python/matplotlib-1.0.0
- >=dev-python/mpmath-0.16
- ~dev-python/networkx-1.2
- ~dev-python/pexpect-2.0
- >=dev-python/pycrypto-2.1.0
- >=dev-python/rpy-2.0.6
- >=dev-python/sphinx-1.1.2
- dev-python/sqlalchemy
- ~dev-python/sympy-0.7.1
- >=media-gfx/tachyon-0.98[png]
- net-zope/zodb
- >=sci-libs/cddlib-094f-r2
- >=sci-libs/scipy-0.9
- >=sci-mathematics/flintqs-20070817_p5
- >=sci-mathematics/gap-4.4.12
- >=sci-mathematics/genus2reduction-0.3_p8-r1
- ~sci-mathematics/gfan-0.5
- >=sci-mathematics/cu2-20060223
- >=sci-mathematics/cubex-20060128
- >=sci-mathematics/dikcube-20070912_p12
- >=sci-mathematics/maxima-5.23.2[ecls]
- >=sci-mathematics/mcube-20051209
- >=sci-mathematics/optimal-20040603
- >=sci-mathematics/palp-1.1
- ~sci-mathematics/sage-data-conway_polynomials-0.2
- ~sci-mathematics/sage-data-elliptic_curves-0.3
- ~sci-mathematics/sage-data-graphs-20070722_p2
- ~sci-mathematics/sage-data-polytopes_db-20100210_p1
- >=sci-mathematics/sage-doc-${PV}
- ~sci-mathematics/sage-extcode-${PV}
- ~sci-mathematics/singular-3.1.3.3
- >=sci-mathematics/sympow-1.018.1_p8-r1
- !prefix? ( >=sys-libs/glibc-2.13-r4 )
- testsuite? ( ~sci-mathematics/sage-doc-${PV}[html] )
- latex? (
- ~dev-tex/sage-latex-2.3.1
- || (
- app-text/dvipng[truetype]
- media-gfx/imagemagick[png]
- )
- )"
-
-PDEPEND="~sci-mathematics/sage-notebook-0.8.26"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_pretend() {
- if ( eselect blas show ; eselect lapack show ) | grep -q "atlas" ; then
-
- ewarn "You are about to compile Sage with ATLAS blas/lapack libraries. We"
- ewarn "discourage the use of atlas because of several small problems seen"
- ewarn "with version 3.9.23+ in Sage's doctests. This is probably not a"
- ewarn "problem for everyday use of Sage but we have warned you!"
-
- fi
-}
-
-pkg_setup() {
- # Sage now will only works with python 2.7.*
- python_set_active_version 2.7
- python_pkg_setup
-}
-
-src_prepare() {
- # ATLAS independence
- local cblaslibs=\'$(pkg-config --libs-only-l cblas | sed \
- -e 's/^-l//' \
- -e "s/ -l/\',\'/g" \
- -e 's/.,.pthread//g' \
- -e "s: ::")\'
-
- # patches for python-2.7
- epatch "${FILESDIR}"/9958_float_printing.patch.bz2
- epatch "${FILESDIR}"/9958_exceptions.patch.bz2
- epatch "${FILESDIR}"/9958_combinat.patch.bz2
- epatch "${FILESDIR}"/9958_misc.patch.bz2
- # integer hashing
- epatch "${FILESDIR}"/11986_integer_hash-sage.patch
-
- # make sure we use cython-2.7 for consistency
- sed -i "s:python \`which cython\`:cython-2.7:" setup.py
-
- ############################################################################
- # Fixes to Sage's build system
- ############################################################################
-
- # Fix startup issue and python-2.6.5 problem
- append-flags -fno-strict-aliasing
-
- epatch "${FILESDIR}"/${PN}-4.7.2-site-packages.patch
-
- # add pari24 and gmp to everything.
- sed -i "s:\['stdc++', 'ntl'\]:\['stdc++', 'ntl','pari','gmp'\]:g" setup.py \
- || die "failed to add pari and gmp everywhere"
-
- sed -e "s:%s/local/etc/gprc.expect'%SAGE_ROOT:${EPREFIX}/etc/gprc.expect':" \
- -i sage/interfaces/gp.py || die "failed to patch interfaces/gp.py"
-
- # use already installed csage
- rm -rf c_lib || die "failed to remove c library directory"
-
- # patch SAGE_LOCAL
- sed -i "s:SAGE_LOCAL = SAGE_ROOT + '/local':SAGE_LOCAL = os.environ['SAGE_LOCAL']:g" \
- setup.py || die "failed to patch SAGE_LOCAL"
- sed -i "s:SAGE_LOCAL = SAGE_ROOT + '/local':SAGE_LOCAL = os.environ['SAGE_LOCAL']:g" \
- module_list.py || die "failed to patch SAGE_LOCAL"
-
- sed -i "s:'%s/sage/sage/ext'%SAGE_DEVEL:'sage/ext':g" \
- setup.py || die "failed to patch extensions path"
-
- # fix misc/dist.py
- epatch "${FILESDIR}"/${PN}-4.8-dist.py.patch
-
- # fix png library name
- sed -i "s:png12:$(libpng-config --libs | cut -dl -f2):g" \
- module_list.py || die "failed to patch png library name"
-
- # fix numpy path (final quote removed to catch numpy_include_dirs and numpy_depends)
- sed -i "s:SAGE_LOCAL + '/lib/python/site-packages/numpy/core/include:'${EPREFIX}$(python_get_sitedir)/numpy/core/include:g" \
- module_list.py || die "failed to patch path for numpy include directory"
-
- # fix cython path
- sed -i \
- -e "s:SAGE_LOCAL + '/lib/python/site-packages/Cython/Includes/':'${EPREFIX}$(python_get_sitedir)/Cython/Includes/':g" \
- -e "s:SAGE_LOCAL + '/lib/python/site-packages/Cython/Includes/Deprecated/':'${EPREFIX}$(python_get_sitedir)/Cython/Includes/Deprecated/':g" \
- setup.py || die "failed to patch path for cython include directory"
-
- # fix lcalc path
- sed -i "s:SAGE_INC + \"lcalc:SAGE_INC + \"Lfunction:g" module_list.py \
- || die "failed to patch path for lcalc include directory"
-
- # rebuild in place
- sed -i "s:SAGE_DEVEL + '/sage/sage/ext/interpreters':'sage/ext/interpreters':g" \
- setup.py || die "failed to patch interpreters path"
-
- # fix include paths and CBLAS/ATLAS
- sed -i \
- -e "s:'%s/include/csage'%SAGE_LOCAL:'${EPREFIX}/usr/include/csage':g" \
- -e "s:'%s/sage/sage/ext'%SAGE_DEVEL:'sage/ext':g" \
- setup.py || die "failed to patch include paths"
-
- # fix installation phase for >=python-2.7.3
- sed -i "s:min(len(command_list),:min(max(len(command_list),1),:" setup.py \
- || die "failed to patch setup.py"
-
- sed -i \
- -e "s:BLAS, BLAS2:${cblaslibs}:g" \
- -e "s:,BLAS:,${cblaslibs}:g" \
- module_list.py || die "failed to patch module_list.py for ATLAS"
-
- # Add -DNDEBUG to objects linking to libsingular
- sed -i "s:'singular', SAGE_INC + 'factory'\],:'singular'\],extra_compile_args = \['-DNDEBUG'\],:g" \
- module_list.py || die "failed to add -DNDEBUG with libsingular"
-
- # TODO: why does Sage fail with linbox commentator ?
-
- ############################################################################
- # Fixes to Sage itself
- ############################################################################
-
- # fix the location of that blasted sagestarted.txt file, trac 11926 (11926_sage.patch)
- epatch "${FILESDIR}"/${PN}-4.8-sagestarted.patch
-
- # issue 85 a test crashes earlier than vanilla
- sed -i "s|sage: x = dlx_solver(rows)|sage: x = dlx_solver(rows) # not tested|" \
- sage/combinat/tiling.py
-
- # update to gfan-0.5 (breaks test) trac 11395)
- epatch "${FILESDIR}"/${PN}-4.6.2-gfan-0.5.patch
-
- # update to mpfi 1.5.x trac
- epatch "${FILESDIR}"/trac_12171a.patch
- epatch "${FILESDIR}"/trac_12171b.patch
-
- # patch for jmol-12.0.45
- epatch "${FILESDIR}"/trac_9238_script_extension.patch
-
- # fix some cython warnings
- epatch "${FILESDIR}"/trac_10764-fix_deprecation_warning.patch
- epatch "${FILESDIR}"/trac_10764-fix-gen_interpreters_doctest.patch
-
- # gmp-5 compatibility - works with gmp-4.3 as well
- sed -i "s:__GMP_BITS_PER_MP_LIMB:GMP_LIMB_BITS:g" sage/rings/integer.pyx \
- || die "failed to patch for gmp-5"
-
- # run maxima with ecl
- sed -i \
- -e "s:maxima-noreadline:maxima -l ecl:g" \
- sage/interfaces/maxima.py || die "failed to patch maxima commands"
- sed -i \
- -e "s:maxima --very-quiet:maxima -l ecl --very-quiet:g" \
- sage/interfaces/maxima_abstract.py || die "failed to patch maxima commands"
-
- # Uses singular internal copy of the factory header
- sed -i "s:factory/factory.h:singular/factory.h:" sage/libs/singular/singular-cdefs.pxi \
- || die "failed to patch factory header"""
-
- # Fix portage QA warning. Potentially prevent some leaking.
- epatch "${FILESDIR}"/${PN}-4.4.2-flint.patch
-
- sed -i "s:cblas(), atlas():${cblaslibs}:" sage/misc/cython.py \
- || die "failed to patch cython.py for ATLAS"
-
- # patch for glpk
- sed -i \
- -e "s:\.\./\.\./\.\./\.\./devel/sage/sage:..:g" \
- -e "s:\.\./\.\./\.\./local/include/::g" \
- sage/numerical/backends/glpk_backend.pxd || die "failed to patch glpk backend"
-
- # Ticket #5155:
-
- # save gap_stamp to directory where sage is able to write
- sed -i "s:GAP_STAMP = '%s/local/bin/gap_stamp'%SAGE_ROOT:GAP_STAMP = '%s/gap_stamp'%DOT_SAGE:g" \
- sage/interfaces/gap.py || die "patch to gap interface"
-
- # fix qepcad paths
- epatch "${FILESDIR}"/${PN}-4.5.1-fix-qepcad-path.patch
-
- # replace SAGE_ROOT/local with SAGE_LOCAL
- epatch "${FILESDIR}"/${PN}-4.7.1-fix-SAGE_LOCAL.patch
-
- # patch path for saving sessions
- sed -i "s:save_session('tmp_f', :save_session(tmp_f, :g" \
- sage/misc/session.pyx || die "failed to patch session path"
-
- # patch lie library path
- sed -i "s:open(SAGE_LOCAL + 'lib/lie/INFO\.0'):open(SAGE_LOCAL + '/share/lie/INFO.0'):g" \
- sage/interfaces/lie.py || die "failed to patch lie library path"
-
- # Patch to singular info file shipped with sage-doc
- sed -i "s:os.environ\[\"SAGE_LOCAL\"\]+\"/share/singular/\":os.environ\[\"SAGE_DOC\"\]+\"/\":g" \
- sage/interfaces/singular.py || die "failed to patch singular.hlp path"
-
- # fix the cmdline test using SAGE_ROOT
- sed -i "s:SAGE_ROOT, \"local\":os.environ[\"SAGE_LOCAL\"]:" \
- sage/tests/cmdline.py
-
- # apply patches from /etc/portage/patches
- epatch_user
-
- # do not forget to run distutils
- distutils_src_prepare
-}
-
-src_configure() {
- export SAGE_LOCAL="${EPREFIX}"/usr/
- export SAGE_ROOT="${EPREFIX}"/usr/share/sage
- export SAGE_VERSION=${PV}
- export DOT_SAGE="${S}"
-
- # parse MAKEOPTS and extract the number of jobs (from dev-libs/boost)
- local jobs=$(echo " ${MAKEOPTS} " | sed \
- -e 's/ --jobs[= ]/ -j /g' \
- -e 's/ -j \([1-9][0-9]*\)/ -j\1/g' \
- -e 's/ -j\>/ -j1/g' | \
- ( while read -d ' ' j; do
- if [[ "${j#-j}" = "$j" ]]; then
- continue
- fi
- jobs="${j#-j}"
- done
- echo ${jobs} )
- )
- if [[ "${jobs}" != "" ]]; then
- export SAGE_NUM_THREADS="${jobs}"
- else
- export SAGE_NUM_THREADS=1
- fi
-
- # files are not built unless they are touched
- find sage -name "*pyx" -exec touch '{}' \; \
- || die "failed to touch *pyx files"
-}
-
-src_install() {
- distutils_src_install
-
- if use testsuite ; then
- # install testable sources and sources needed for testing
- find sage ! \( -name "*.py" -o -name "*.pyx" -o -name "*.pxd" -o \
- -name "*.pxi" -o -name "*.h" \
- -o -name "*fmpq_poly.c" \
- -o -name "*matrix_rational_dense_linbox.cpp" \
- -o -name "*wrap.cc" \) -type f -delete \
- || die "failed to remove non-testable sources"
-
- insinto /usr/share/sage/devel/sage-main
- doins -r sage || die
- fi
-}
-
-pkg_postinst() {
- einfo "If you use Sage's browser interface ('Sage Notebook') and experience"
- einfo "an 'Internal Server Error' you should append the following line to"
- einfo "your ~/.bashrc (replace firefox with your favorite browser and note"
- einfo "that in your case it WILL NOT WORK with xdg-open):"
- einfo ""
- einfo " export SAGE_BROWSER=/usr/bin/firefox"
- einfo ""
-
- einfo "Vanilla Sage comes with the 'Standard' set of Sage Packages, i.e."
- einfo "those listed at: http://sagemath.org/packages/standard/ which are"
- einfo "installed now."
- einfo "There are also some packages of the 'Optional' set (which consists"
- einfo "of the these: http://sagemath.org/packages/optional/) available"
- einfo "which may be installed with portage as usual."
-
- if use testsuite ; then
-
- einfo ""
- einfo "You have installed Sage's testsuite. In order to test Sage run the"
- einfo "following command in a directory where Sage may write to, e.g.:"
- einfo ""
- einfo " cd \$(mktemp -d) && sage -testall"
- einfo ""
- einfo "After testing has finished, NO FILES SHOULD BE LEFT in this"
- einfo "directory. If this is not the case, please send us a bug report."
- einfo "Parallel doctesting is also possible (replace '8' with an adequate"
- einfo "number of processes):"
- einfo ""
- einfo " cd \$(mktemp -d) && sage -tp 8 -sagenb \\"
- einfo " ${EPREFIX}/usr/share/sage/devel/sage-main/"
- einfo ""
- einfo "Note that testing Sage may take more than 4 hours. If you want to"
- einfo "check your results look at the list of known failures:"
- einfo ""
- einfo " http://github.com/cschwan/sage-on-gentoo/wiki/Known-test-failures"
-
- fi
-}
Please sign in to comment.
Something went wrong with that request. Please try again.