summaryrefslogtreecommitdiff
path: root/libre/sagemath/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-10-23 21:52:41 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-10-23 21:52:41 -0300
commit64026f84a7ec2e0279abcb85c69bbb9f296b89d0 (patch)
treec84ea3fe463d425a40f91dfa564c7e56edfcbef3 /libre/sagemath/PKGBUILD
parent7c32a8f046305e19cc73326029f579145a58192a (diff)
sagemath-7.4-2.parabola1: updating version
Diffstat (limited to 'libre/sagemath/PKGBUILD')
-rw-r--r--libre/sagemath/PKGBUILD73
1 files changed, 25 insertions, 48 deletions
diff --git a/libre/sagemath/PKGBUILD b/libre/sagemath/PKGBUILD
index 73f54e240..c27c8dad6 100644
--- a/libre/sagemath/PKGBUILD
+++ b/libre/sagemath/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 189079 2016-09-09 17:19:23Z arojas $
+# $Id: PKGBUILD 192974 2016-10-22 14:14:48Z arojas $
# Maintainer (Arch): Evgeniy Alekseev <arcanis.arch at gmail dot com>
# Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
# Contributor (Arch): Daniel Wallace <danielwallace at gtmanfred dot com>
@@ -10,54 +10,47 @@
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=sagemath
-pkgver=7.3
-pkgrel=5.parabola1
+pkgver=7.4
+pkgrel=2.parabola1
pkgdesc="Free Mathematics Software, free software replacement of Magma, Maple, Mathematica, and Matlab, without nonfree nauty support"
arch=(i686 x86_64 armv7h)
url="http://www.sagemath.org"
license=(GPL)
-depends=(ipython2 cysignals ppl palp brial singular cliquer maxima-ecl gfan sympow tachyon python2-rpy2
- python2-matplotlib python2-scipy python2-sympy python2-networkx python2-pillow libgap flintqs lcalc lrcalc arb
+depends=(ipython2 cysignals ppl palp brial singular cliquer maxima-ecl gfan sympow tachyon python2-rpy2 fpylll
+ python2-matplotlib python2-scipy python2-sympy python2-networkx python2-pillow python2-future libgap flintqs lcalc lrcalc arb
eclib gmp-ecm zn_poly gd python2-cvxopt pynac linbox rubiks pari-galdata pari-seadata-small planarity rankwidth
sage-data-combinatorial_designs sage-data-elliptic_curves sage-data-graphs sage-data-polytopes_db sage-data-conway_polynomials)
optdepends=('cython2: to compile cython code' 'python2-pkgconfig: to compile cython code'
'jmol: 3D plots' 'sage-notebook: Browser-based (flask) notebook interface'
- 'sagemath-doc: Documentation and inline help' 'ipython2-notebook: Jupyter notebook interface' 'mathjax: Jupyter notebook interface'
+ 'sagemath-doc: Documentation and inline help' 'python2-igraph: igraph backend for graph theory'
'coin-or-cbc: COIN backend for numerical computations' 'coin-or-csdp: for computing Lovász theta-function of graphs'
'buckygen: for generating fullerene graphs' 'plantri: for generating some classes of graphs' 'benzene: for generating fusenes and benzenoids'
'modular_decomposition: modular decomposition of graphs' 'ffmpeg: to export animations to video' 'imagemagick: to show animations'
'coxeter3: Coxeter groups implementation' 'cryptominisat: SAT solver' 'gap-data: for computing Galois groups'
'lrs: Algorithms for linear reverse search used in game theory and for computing volume of polytopes'
'libhomfly: for computing the homfly polynomial of links' 'libbraiding: for computing in braid groups'
- 'python2-igraph: igraph backend for graph theory' 'sage-notebook-exporter: convert flask notebooks to jupyter'
- 'jupyter-notebook: Jupyter notebook interface')
+ 'sagemath-jupyter: Jupyter kernel')
makedepends=(cython2 boost ratpoints symmetrica fflas-ffpack python2-jinja coin-or-cbc libhomfly libbraiding
mcqd coxeter3 cryptominisat modular_decomposition bliss-graphs tdlib python2-pkgconfig meataxe) # libfes
conflicts=(sage-mathematics)
replaces=(sage-mathematics)
provides=(sage-mathematics)
source=("$pkgname-$pkgver.tar.gz::https://github.com/sagemath/sage/archive/$pkgver.tar.gz"
- anal.h env.patch paths.patch clean.patch skip-check.patch cython-sys-path.patch is-package-installed.patch package.patch
- disable-fes.patch jupyter-path.patch test-optional.patch python-2.7.11.patch linbox-1.4.patch ecm-7.patch
- sagemath-ipython5.patch increase-rtol.patch sagemath-singular4.patch)
-md5sums=('cb2aed3d24de7b2228a9b34e81a27870'
- 'a906a180d198186a39820b0a2f9a9c63'
- 'd4d3c235c99b2bc92dde9f6e53935a8d'
- '45b84ae5579273196df44f7464a01a30'
- '6d9ae0978ce6a05a0da2cafdfb178a09'
+ env.patch skip-check.patch cython-sys-path.patch is-package-installed.patch package.patch disable-fes.patch
+ jupyter-path.patch test-optional.patch python-2.7.11.patch ecm-7.patch increase-rtol.patch sagemath-singular4.patch)
+md5sums=('8311ee35a309dbc668b5148795211254'
+ '784ba3fca83f24ed0bbf62e01fa4e967'
'6cafcb381437d4751fd55b25d5090987'
'a1bcdd3fe620dbae60ed8b0e98b2ece7'
- 'b3ecf7c93a90e0afccbc686af9fdc85f'
- '9ba81f717ffd4e20b8b2f2a318307488'
+ '5dca842e4440e4ef235ae18c1b1f20e3'
+ '493a9e0eae9b2ef87544b42785ae11ea'
'06a67e611d10aa2381efe1f08ea4ffd9'
- '16b529194c6105c3364127bd8f1efa83'
- 'cdcabd475b80afe0534a5621e972736e'
+ '0d88207416dfb98a17bf8886257d9a02'
+ '921017fd2d9dadbb6b602ac0476bfd58'
'ef927896f2071b442b1d07d7e69f5f3a'
- 'a276f0fbbff6eade409d0569ebd728d4'
'0c9a57d35de80c2cd418ebec912efbbb'
- '2bcaca7284dda963ebdc17daf78cf6c9'
'39d3fded716d2a7ae0ab03e0896b7497'
- '803627177ff5c28e1e73f2678d15c4df')
+ '4bd7305e8b69add8356f9751470cf587')
prepare(){
cd sage-$pkgver
@@ -65,22 +58,14 @@ prepare(){
# Parabola-specific patches
# assume all optional packages are installed
patch -p0 -i ../package.patch
-# find L.h header
- sed -e 's|libLfunction|Lfunction|' -i src/sage/libs/lcalc/lcalc_sage.h
# don't try to link against libpng 1.2
sed -e 's|png12|png|' -i src/module_list.py
# set env variables
patch -p0 -i ../env.patch
-# fix paths in python imports
- patch -p0 -i ../paths.patch
-# don't try to remove installed files
- patch -p0 -i ../clean.patch
# skip checking build status
patch -p0 -i ../skip-check.patch
# supress warning about GAP install dir
sed -e "s|gapdir = os.path.join(SAGE_LOCAL, 'gap', 'latest')|gapdir = '/usr/lib/gap'|" -i src/sage/libs/gap/util.pyx
-# find bliss headers
- sed -e 's|graph.hh|bliss/graph.hh|' -i src/sage/graphs/bliss.pyx
# don't list optional packages when running tests
patch -p0 -i ../test-optional.patch
# set jupyter path
@@ -99,10 +84,6 @@ prepare(){
# patch -p0 -i ../fes02.patch
# disable fes module, fails to compile
patch -p0 -i ../disable-fes.patch
-# port to new givaro/fflas-ffpack/linbox http://trac.sagemath.org/ticket/17635
- patch -p1 -i ../linbox-1.4.patch
-# port to ipython 5.0 https://trac.sagemath.org/ticket/21006
- patch -p1 -i ../sagemath-ipython5.patch
# replace is_package_installed usage http://trac.sagemath.org/ticket/20377
patch -p1 -i ../is-package-installed.patch
# port to Singular 4 https://trac.sagemath.org/ticket/17254
@@ -113,11 +94,7 @@ prepare(){
sed -e 's|cython {OPT}|cython2 {OPT}|' -e 's|python setup.py|python2 setup.py|' -i src/sage/misc/cython.py
sed -e 's|exec ipython|exec ipython2|' -e 's|cygdb|cygdb2|' -i src/bin/sage
sed -e "s|'cython'|'cython2'|" -i src/bin/sage-cython
- sed -e 's|python -c|python2 -c|' -i src/Makefile
-
-# copy required private PARI header
- mkdir -p src/pari
- cp "$srcdir"/anal.h src/pari/anal.h
+ sed -e 's|python -c|python2 -c|' -i src/generate_py_source.mk
}
@@ -125,22 +102,18 @@ build() {
cd sage-$pkgver/src
export SAGE_LOCAL="/usr"
+ export SAGE_ROOT="$PWD"
export SAGE_SRC="$PWD"
export CC=gcc
- make sage/libs/pari/auto_gen.pxi
- make sage/ext/interpreters/__init__.py
-
python2 setup.py build
}
package() {
cd sage-$pkgver/src
- export SAGE_ROOT="/usr"
- export SAGE_LOCAL="$SAGE_ROOT"
- export SAGE_SRC="$PWD"
- export CC=gcc
+ export SAGE_ROOT="$PWD"
+ export SAGE_LOCAL="/usr"
export JUPYTER_PATH="$pkgdir"/usr/share/jupyter
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
@@ -158,9 +131,13 @@ package() {
mkdir -p "$pkgdir"/usr/share/sage
cp -r ext "$pkgdir"/usr/share/sage
-# Create SAGE_SRC, needed for the notebook
+# Create SAGE_SRC, needed for the notebook and help
mkdir "$pkgdir"/usr/share/sage/source
+ ln -s /usr/share/doc/sage "$pkgdir"/usr/share/sage/source/doc
# Remove sage_setup
rm -r "$pkgdir"/usr/lib/python2.7/site-packages/sage_setup
+
+# Split jupyter kernel
+ rm -r "$pkgdir"/usr/share/jupyter
}