[arch-commits] Commit in sage-notebook/trunk (PKGBUILD sagenb-deprecated.patch)

Antonio Rojas arojas at archlinux.org
Tue May 22 17:52:26 UTC 2018


    Date: Tuesday, May 22, 2018 @ 17:52:24
  Author: arojas
Revision: 327715

Some patching is still needed

Added:
  sage-notebook/trunk/sagenb-deprecated.patch
Modified:
  sage-notebook/trunk/PKGBUILD

-------------------------+
 PKGBUILD                |    9 ++++++---
 sagenb-deprecated.patch |   18 ++++++++++++++++++
 2 files changed, 24 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-22 17:52:13 UTC (rev 327714)
+++ PKGBUILD	2018-05-22 17:52:24 UTC (rev 327715)
@@ -4,7 +4,7 @@
 
 pkgname=sage-notebook
 pkgver=1.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Browser-based notebook interface for SageMath'
 arch=(any)
 url='http://www.sagemath.org'
@@ -12,9 +12,11 @@
 depends=(sagemath python2-twisted python2-flask-oldsessions python2-flask-openid python2-flask-autoindex python2-flask-babel mathjax)
 optdepends=('python2-pyopenssl: to use the notebook in secure mode')
 makedepends=(gendesk)
-source=($pkgname-$pkgver::"https://github.com/sagemath/sagenb/archive/$pkgver.tar.gz" sage.service)
+source=($pkgname-$pkgver::"https://github.com/sagemath/sagenb/archive/$pkgver.tar.gz" sage.service
+        sagenb-deprecated.patch)
 sha256sums=('a0c596fcd3d9ad854024542f265188000573e58861cecfb3ddcdfd252e22af52'
-            '2cf8668fa77a96fe562dafd50cab41aad03f53ee8b91587b1b45ecd193c1517a')
+            '2cf8668fa77a96fe562dafd50cab41aad03f53ee8b91587b1b45ecd193c1517a'
+            'b5cfaa3412a10acebc287bcc94b1a3e86509bf1d06c5415cc58d7cb504d1bd6d')
 
 prepare() {
 # create *.desktop file
@@ -27,6 +29,7 @@
           --categories="Education;Science;Math"
 
   cd sagenb-$pkgver
+  patch -p1 -i ../sagenb-deprecated.patch # Fix deprecated imports
 
 # Use python2
   find -name '*.py' | xargs sed -e 's|#! /usr/bin/python|#! /usr/bin/python2|' -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \

Added: sagenb-deprecated.patch
===================================================================
--- sagenb-deprecated.patch	                        (rev 0)
+++ sagenb-deprecated.patch	2018-05-22 17:52:24 UTC (rev 327715)
@@ -0,0 +1,18 @@
+diff --git a/sagenb/flask_version/base.py b/sagenb/flask_version/base.py
+index da6a990c..fdc5382a 100755
+--- a/sagenb/flask_version/base.py
++++ b/sagenb/flask_version/base.py
+@@ -10,10 +10,10 @@ from .decorators import global_lock
+ # Make flask use the old session foo from <=flask-0.9
+ from flask_oldsessions import OldSecureCookieSessionInterface
+ 
+-from flask.ext.autoindex import AutoIndex
++from flask_autoindex import AutoIndex
+ from sage.env import SAGE_SRC, SAGE_DOC
+ SRC = os.path.join(SAGE_SRC, 'sage')
+-from flask.ext.openid import OpenID
++from flask_openid import OpenID
+ from flask_babel import Babel, gettext, ngettext, lazy_gettext, get_locale
+ from sagenb.misc.misc import SAGENB_ROOT, DATA, translations_path, N_, nN_, unicode_str
+ from json import dumps
+



More information about the arch-commits mailing list