[arch-commits] Commit in sagemath-doc/repos (6 files)

2019-03-24 Thread Antonio Rojas via arch-commits
Date: Sunday, March 24, 2019 @ 13:06:11
  Author: arojas
Revision: 443326

archrelease: copy trunk to community-testing-any

Added:
  sagemath-doc/repos/community-testing-any/
  sagemath-doc/repos/community-testing-any/PKGBUILD
(from rev 443325, sagemath-doc/trunk/PKGBUILD)
  sagemath-doc/repos/community-testing-any/docbuild_main.patch
(from rev 443325, sagemath-doc/trunk/docbuild_main.patch)
  sagemath-doc/repos/community-testing-any/sagemath-doc-segfault.patch
(from rev 443325, sagemath-doc/trunk/sagemath-doc-segfault.patch)
  sagemath-doc/repos/community-testing-any/sagemath-doc-sphinx-1.8.patch
(from rev 443325, sagemath-doc/trunk/sagemath-doc-sphinx-1.8.patch)
  sagemath-doc/repos/community-testing-any/sagemath-ecl-sigfpe.patch
(from rev 443325, sagemath-doc/trunk/sagemath-ecl-sigfpe.patch)

---+
 PKGBUILD  |   68 
 docbuild_main.patch   |6 
 sagemath-doc-segfault.patch   |   14 +
 sagemath-doc-sphinx-1.8.patch |  332 
 sagemath-ecl-sigfpe.patch |  147 +
 5 files changed, 567 insertions(+)

Copied: sagemath-doc/repos/community-testing-any/PKGBUILD (from rev 443325, 
sagemath-doc/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2019-03-24 13:06:11 UTC (rev 443326)
@@ -0,0 +1,68 @@
+# Maintainer: Antonio Rojas 
+
+pkgname=sagemath-doc
+pkgver=8.7
+pkgrel=1
+pkgdesc="HTML documentation and inline help for SageMath"
+arch=(any)
+url="http://www.sagemath.org";
+license=(GPL)
+depends=(python2-sphinx gap-doc pplpy-doc thebe)
+makedepends=(sagemath python2-pyzmq python2-docutils python2-jupyter_client 
python2-pkgconfig cython2 python2-ipywidgets)
+source=(sagemath-$pkgver.tar.gz::"https://github.com/sagemath/sage/archive/$pkgver.tar.gz";
+docbuild_main.patch
+sagemath-doc-sphinx-1.8.patch
+sagemath-doc-segfault.patch
+sagemath-ecl-sigfpe.patch)
+sha256sums=('263c3b3fc956b8bebc532f3b51e68c1b0d559d3b7e7c9fadffdfc0f4dbae18ab'
+'ea5e17bb7a7cb36a22e5e3872fcc2585852bc971c4b139b0b2cd69a36c1b009b'
+'ec6835d555056e1f20684de015f43c46cff62a132c9cd6f5ea7243c6bacd3f1e'
+'2ee218610001f906015df647881581ff1f7eb0acf923b79b72056965129bac22'
+'a42f3b152b1aedb8abf16bc70971419919d1fe30328574e7fef8305f9d07d938')
+
+prepare() {
+  cd sage-$pkgver
+
+# fix relative imports
+  patch -p0 -i ../docbuild_main.patch
+# use sage_setup imports from sagemath source, but use system sage ones (which 
include compiled modules)
+  mkdir -p local-python
+  ln -sr src/sage_setup local-python
+# fix build with sphinx 1.8
+  patch -p1 -i ../sagemath-doc-sphinx-1.8.patch
+# Fix segfault when pari is compiled with threads 
https://trac.sagemath.org/ticket/26608
+  patch -p1 -i ../sagemath-doc-segfault.patch
+# Fix SIGFPE crashes with ecl 16.1.3 https://trac.sagemath.org/ticket/22191
+  patch -p1 -i ../sagemath-ecl-sigfpe.patch
+}
+
+build() {
+  cd sage-$pkgver/src
+
+  export SAGE_LOCAL="/usr"
+  export SAGE_ROOT="/usr"
+  export SAGE_SRC="$PWD"
+  export SAGE_DOC_SRC="$SAGE_SRC"/doc
+  export SAGE_DOC="$SAGE_DOC_SRC"
+  export SAGE_DOC_MATHJAX=yes
+  export PYTHONPATH="$srcdir"/sage-$pkgver/local-python
+  python2 sage_setup/docbuild --no-pdf-links all html
+}
+
+package() {
+  cd sage-$pkgver/src/doc
+ 
+  mkdir -p "$pkgdir"/usr/share/doc/sage/en
+  cp -r en/introspect "$pkgdir"/usr/share/doc/sage/en
+  cp -r common "$pkgdir"/usr/share/doc/sage
+  cp -r html "$pkgdir"/usr/share/doc/sage
+
+# Replace duplicated files by symlinks (Gentoo)
+  cd "$pkgdir"/usr/share/doc/sage
+  mv html/en/_static{,.tmp}
+  for _dir in `find -name _static` ; do
+rm -r $_dir
+ln -s /usr/share/doc/sage/html/en/_static $_dir
+  done
+  mv html/en/_static{.tmp,}
+}

Copied: sagemath-doc/repos/community-testing-any/docbuild_main.patch (from rev 
443325, sagemath-doc/trunk/docbuild_main.patch)
===
--- community-testing-any/docbuild_main.patch   (rev 0)
+++ community-testing-any/docbuild_main.patch   2019-03-24 13:06:11 UTC (rev 
443326)
@@ -0,0 +1,6 @@
+--- src/sage_setup/docbuild/__main__.py.orig
 src/sage_setup/docbuild/__main__.py
+@@ -1,2 +1,2 @@
+-from . import main
++from sage_setup.docbuild import main
+ main()

Copied: sagemath-doc/repos/community-testing-any/sagemath-doc-segfault.patch 
(from rev 443325, sagemath-doc/trunk/sagemath-doc-segfault.patch)
===
--- community-testing-any/sagemath-doc-segfault.patch   
(rev 0)
+++ community-testing-any/sagemath-doc-segfault.patch   2019-03-24 13:06:11 UTC 
(rev 443326)
@@ -0,0 +1,14 @@
+diff --git a/src/sage_setup/docbuild/__init__.py 
b/src/sage_setup/docbuild/__in

[arch-commits] Commit in sagemath-doc/repos (6 files)

2015-10-24 Thread Antonio Rojas
Date: Saturday, October 24, 2015 @ 12:14:05
  Author: arojas
Revision: 144886

archrelease: copy trunk to community-testing-any

Added:
  sagemath-doc/repos/community-testing-any/
  sagemath-doc/repos/community-testing-any/PKGBUILD
(from rev 144885, sagemath-doc/trunk/PKGBUILD)
  sagemath-doc/repos/community-testing-any/disable-fes.patch
(from rev 144885, sagemath-doc/trunk/disable-fes.patch)
  sagemath-doc/repos/community-testing-any/package.patch
(from rev 144885, sagemath-doc/trunk/package.patch)
  sagemath-doc/repos/community-testing-any/paths.patch
(from rev 144885, sagemath-doc/trunk/paths.patch)
  sagemath-doc/repos/community-testing-any/sphinx-1.3.patch
(from rev 144885, sagemath-doc/trunk/sphinx-1.3.patch)

---+
 PKGBUILD  |   84 +++
 disable-fes.patch |   19 
 package.patch |   11 
 paths.patch   |   37 +
 sphinx-1.3.patch  | 1390 
 5 files changed, 1541 insertions(+)

The diff is longer than the limit of 200KB.
Use svn diff -r 144885:144886 to see the changes.


[arch-commits] Commit in sagemath-doc/repos (6 files)

2015-10-12 Thread Antonio Rojas
Date: Monday, October 12, 2015 @ 10:10:37
  Author: arojas
Revision: 143755

archrelease: copy trunk to community-testing-any

Added:
  sagemath-doc/repos/community-testing-any/
  sagemath-doc/repos/community-testing-any/PKGBUILD
(from rev 143754, sagemath-doc/trunk/PKGBUILD)
  sagemath-doc/repos/community-testing-any/disable-fes.patch
(from rev 143754, sagemath-doc/trunk/disable-fes.patch)
  sagemath-doc/repos/community-testing-any/package.patch
(from rev 143754, sagemath-doc/trunk/package.patch)
  sagemath-doc/repos/community-testing-any/paths.patch
(from rev 143754, sagemath-doc/trunk/paths.patch)
  sagemath-doc/repos/community-testing-any/sphinx-1.3.patch
(from rev 143754, sagemath-doc/trunk/sphinx-1.3.patch)

---+
 PKGBUILD  |   86 +++
 disable-fes.patch |   19 
 package.patch |   11 
 paths.patch   |   37 +
 sphinx-1.3.patch  | 1390 
 5 files changed, 1543 insertions(+)

The diff is longer than the limit of 200KB.
Use svn diff -r 143754:143755 to see the changes.


[arch-commits] Commit in sagemath-doc/repos (6 files)

2015-07-26 Thread Antonio Rojas
Date: Sunday, July 26, 2015 @ 22:56:59
  Author: arojas
Revision: 137457

archrelease: copy trunk to community-testing-any

Added:
  sagemath-doc/repos/community-testing-any/
  sagemath-doc/repos/community-testing-any/PKGBUILD
(from rev 137456, sagemath-doc/trunk/PKGBUILD)
  sagemath-doc/repos/community-testing-any/disable-fes.patch
(from rev 137456, sagemath-doc/trunk/disable-fes.patch)
  sagemath-doc/repos/community-testing-any/package.patch
(from rev 137456, sagemath-doc/trunk/package.patch)
  sagemath-doc/repos/community-testing-any/paths.patch
(from rev 137456, sagemath-doc/trunk/paths.patch)
  sagemath-doc/repos/community-testing-any/sphinx-1.3.patch
(from rev 137456, sagemath-doc/trunk/sphinx-1.3.patch)

---+
 PKGBUILD  |   88 +++
 disable-fes.patch |   19 
 package.patch |   11 
 paths.patch   |   37 +
 sphinx-1.3.patch  | 1390 
 5 files changed, 1545 insertions(+)

The diff is longer than the limit of 200KB.
Use svn diff -r 137456:137457 to see the changes.


[arch-commits] Commit in sagemath-doc/repos (6 files)

2015-05-19 Thread Antonio Rojas
Date: Tuesday, May 19, 2015 @ 11:13:20
  Author: arojas
Revision: 133794

archrelease: copy trunk to community-testing-any

Added:
  sagemath-doc/repos/community-testing-any/
  sagemath-doc/repos/community-testing-any/PKGBUILD
(from rev 133793, sagemath-doc/trunk/PKGBUILD)
  sagemath-doc/repos/community-testing-any/fes02.patch
(from rev 133793, sagemath-doc/trunk/fes02.patch)
  sagemath-doc/repos/community-testing-any/ntl9.patch
(from rev 133793, sagemath-doc/trunk/ntl9.patch)
  sagemath-doc/repos/community-testing-any/package.patch
(from rev 133793, sagemath-doc/trunk/package.patch)
  sagemath-doc/repos/community-testing-any/paths.patch
(from rev 133793, sagemath-doc/trunk/paths.patch)

---+
 PKGBUILD  |   91 
 fes02.patch   |   45 ++
 ntl9.patch|  178 
 package.patch |   11 +++
 paths.patch   |   33 ++
 5 files changed, 358 insertions(+)

Copied: sagemath-doc/repos/community-testing-any/PKGBUILD (from rev 133793, 
sagemath-doc/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2015-05-19 09:13:20 UTC (rev 133794)
@@ -0,0 +1,91 @@
+# $Id$
+# Maintainer: Antonio Rojas 
+
+pkgbase=sagemath-doc
+pkgname=(sagemath-doc sagemath-src)
+pkgver=6.7
+pkgrel=1
+arch=(any)
+url="http://www.sagemath.org";
+license=(GPL)
+makedepends=(sagemath sage-notebook python2-sphinx python2-pyzmq 
python2-pillow)
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/sagemath/sage/archive/$pkgver.tar.gz";
+   'package.patch' 'paths.patch' 'fes02.patch' 'ntl9.patch')
+md5sums=('df744e882a4b25b42dd8347e202cd497'
+ '0eb5ac1537aac93bd67a2925c0cfd84d'
+ '020bdb34b6fc0f2c9f46341bdb79937a'
+ '506944613082ba7f5b34360939ca90eb'
+ '308abbb1a49db9b8f0e088aff69567ff')
+
+prepare() {
+  cd sage-$pkgver
+
+# Arch-specific patches
+# assume all optional packages are installed
+  patch -p0 -i "$srcdir"/package.patch
+# fix paths in python imports
+  patch -p0 -i "$srcdir"/paths.patch
+# fix cython linking
+  sed -e "s| atlas(),||" -i src/sage/misc/cython.py
+# 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 
+# fix Cremona database detection
+  sed -e 
"s|is_package_installed('database_cremona_ellcurve')|os.path.exists('/usr/share/sage/cremona/cremona.db')|"
 \
+   -i src/sage/databases/cremona.py
+# fix IPython kernel path
+  sed -e "s|os.path.join(SAGE_ROOT, 'sage')|'/usr/bin/sage'|" -i 
src/sage/repl/ipython_kernel/install.py
+# find bliss headers
+  sed -e 's|graph.hh|bliss/graph.hh|' -i src/sage/graphs/bliss.pyx
+# Rename class to fix conflicts with NTL
+  sed -e 's|WrappedPtr|SageWrappedPtr|' -i src/sage/libs/polybori/decl.pxd -i 
src/sage/libs/polybori/pb_wrap.h  
+
+# Upstream patches
+# fix build against libfes 0.2 http://trac.sagemath.org/ticket/15209
+  patch -p0 -i "$srcdir"/fes02.patch
+# fix build aginst NTL 9 (Fedora)
+  patch -p0 -i "$srcdir"/ntl9.patch
+
+# use python2
+  sed -e 's|cython %s %s|cython2 %s %s|' -e 's|python setup.py|python2 
setup.py|' -i src/sage/misc/cython.py
+
+# remove developer interface
+  rm -r src/sage/dev
+}
+
+build() {
+  cd sage-$pkgver/src
+
+  export SAGE_LOCAL="/usr"
+  export SAGE_SRC="$PWD"
+  export SAGE_DOC="$SAGE_SRC"/doc
+  export SAGE_DOC_MATHJAX=yes
+  export PYTHONPATH="/usr/lib/sage/site-packages"
+  python2 doc/common/builder.py -k all html
+}
+
+package_sagemath-doc() {
+  pkgdesc="HTML documentation and inline help for SageMath"
+  depends=(sage-notebook python2-sphinx)
+  conflicts=(sage-mathematics-doc)
+  replaces=(sage-mathematics-doc)
+
+  cd sage-$pkgver/src/doc
+ 
+  mkdir -p "$pkgdir"/usr/share/doc/sage
+  cp -r * "$pkgdir"/usr/share/doc/sage
+  rm "$pkgdir"/usr/share/doc/sage/Makefile
+  rm -r "$pkgdir"/usr/share/doc/sage/output/doctrees
+}
+
+package_sagemath-src() {
+  pkgdesc="Source files for SageMath"
+  conflicts=(sage-mathematics-src)
+  replaces=(sage-mathematics-src)
+  
+  mkdir -p "$pkgdir"/usr/share/sage/src
+  cp -r sage-$pkgver/src/{sage,sage_setup} "$pkgdir"/usr/share/sage/src
+  ln -s /usr/share/doc/sage "$pkgdir"/usr/share/sage/src/doc
+
+  mkdir -p "$pkgdir"/usr/include/csage
+  cp -r sage-$pkgver/src/c_lib/include/* "$pkgdir"/usr/include/csage
+}

Copied: sagemath-doc/repos/community-testing-any/fes02.patch (from rev 133793, 
sagemath-doc/trunk/fes02.patch)
===
--- community-testing-any/fes02.patch   (rev 0)
+++ community-testing-any/fes02.patch   2015-05-19 09:13:20 UTC (rev 133794)
@@ -0,0 +1,45 @@
+diff --git a/src/sage/libs/fes.pyx b/src/sage/libs/fes.pyx
+index 40b9c23..d188cf0 100644
+--- src/sage/libs/fes.pyx
 src/sage/libs/fes.p