[arch-commits] Commit in sage-notebook/repos/community-any (4 files)
Antonio Rojas
arojas at archlinux.org
Sat Jun 17 18:35:27 UTC 2017
Date: Saturday, June 17, 2017 @ 18:35:26
Author: arojas
Revision: 237986
archrelease: copy trunk to community-any
Added:
sage-notebook/repos/community-any/PKGBUILD
(from rev 237985, sage-notebook/trunk/PKGBUILD)
sage-notebook/repos/community-any/sage.service
(from rev 237985, sage-notebook/trunk/sage.service)
Deleted:
sage-notebook/repos/community-any/PKGBUILD
sage-notebook/repos/community-any/sage.service
--------------+
PKGBUILD | 120 ++++++++++++++++++++++++++++-----------------------------
sage.service | 16 +++----
2 files changed, 68 insertions(+), 68 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-17 18:35:02 UTC (rev 237985)
+++ PKGBUILD 2017-06-17 18:35:26 UTC (rev 237986)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
-
-pkgname=sage-notebook
-pkgver=1.0.1
-pkgrel=1
-pkgdesc='Browser-based notebook interface for SageMath'
-arch=(any)
-url='http://www.sagemath.org'
-license=(GPL3)
-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)
-sha256sums=('d3fa8deca39618262733bf4fd86d079f038f6f7b3f428c20773fd523411a1626'
- '2cf8668fa77a96fe562dafd50cab41aad03f53ee8b91587b1b45ecd193c1517a')
-
-prepare() {
-# create *.desktop file
- gendesk -f -n \
- --pkgname="sage-notebook" \
- --pkgdesc="SageMath notebook" \
- --name="SageMath" \
- --exec="/usr/bin/sage -notebook=sagenb" \
- --terminal=true \
- --categories="Education;Science;Math"
-
- cd sagenb-$pkgver
-
-# Use python2
- find -name '*.py' | xargs sed -e 's|#! /usr/bin/python|#! /usr/bin/python2|' -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
- -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i
- sed -e 's|python %s|python2 %s|' -i sagenb/notebook/run_notebook.py
- sed -e "s|python = 'python'|python = 'python2'|" -i sagenb/interfaces/expect.py
-}
-
-build() {
- cd sagenb-$pkgver
- python2 setup.py build
-}
-
-package() {
- cd sagenb-$pkgver
-
- python2 setup.py install --root "$pkgdir" --optimize=1
-
- install -D -m644 COPYING "$pkgdir"/usr/share/licenses/${pkgname}/COPYING
-
- ln -s /usr/share/mathjax "$pkgdir"/usr/lib/python2.7/site-packages/sagenb/data/mathjax
-
-# install a systemd user unit
- install -Dm644 "${srcdir}/sage.service" "$pkgdir/usr/lib/systemd/user/sage.service"
-# install *.desktop and icon files
- install -Dm644 "${srcdir}/sage-notebook.desktop" "$pkgdir/usr/share/applications/sage-notebook.desktop"
- install -Dm644 "$pkgdir/usr/lib/python2.7/site-packages/sagenb/data/sage/images/icon48x48.png" \
- "$pkgdir/usr/share/pixmaps/sage-notebook.png"
-# remove sage3d
- rm -r "$pkgdir"/usr/bin
-}
Copied: sage-notebook/repos/community-any/PKGBUILD (from rev 237985, sage-notebook/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-06-17 18:35:26 UTC (rev 237986)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
+
+pkgname=sage-notebook
+pkgver=1.0.1
+pkgrel=2
+pkgdesc='Browser-based notebook interface for SageMath'
+arch=(any)
+url='http://www.sagemath.org'
+license=(GPL3)
+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)
+sha256sums=('d3fa8deca39618262733bf4fd86d079f038f6f7b3f428c20773fd523411a1626'
+ '2cf8668fa77a96fe562dafd50cab41aad03f53ee8b91587b1b45ecd193c1517a')
+
+prepare() {
+# create *.desktop file
+ gendesk -f -n \
+ --pkgname="sage-notebook" \
+ --pkgdesc="SageMath notebook" \
+ --name="SageMath" \
+ --exec="/usr/bin/sage -notebook=sagenb" \
+ --terminal=true \
+ --categories="Education;Science;Math"
+
+ cd sagenb-$pkgver
+
+# Use python2
+ find -name '*.py' | xargs sed -e 's|#! /usr/bin/python|#! /usr/bin/python2|' -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+ -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i
+ sed -e 's|python %s|python2 %s|' -i sagenb/notebook/run_notebook.py
+ sed -e "s|python='python'|python='python2'|" -i sagenb/interfaces/expect.py
+}
+
+build() {
+ cd sagenb-$pkgver
+ python2 setup.py build
+}
+
+package() {
+ cd sagenb-$pkgver
+
+ python2 setup.py install --root "$pkgdir" --optimize=1
+
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/${pkgname}/COPYING
+
+ ln -s /usr/share/mathjax "$pkgdir"/usr/lib/python2.7/site-packages/sagenb/data/mathjax
+
+# install a systemd user unit
+ install -Dm644 "${srcdir}/sage.service" "$pkgdir/usr/lib/systemd/user/sage.service"
+# install *.desktop and icon files
+ install -Dm644 "${srcdir}/sage-notebook.desktop" "$pkgdir/usr/share/applications/sage-notebook.desktop"
+ install -Dm644 "$pkgdir/usr/lib/python2.7/site-packages/sagenb/data/sage/images/icon48x48.png" \
+ "$pkgdir/usr/share/pixmaps/sage-notebook.png"
+# remove sage3d
+ rm -r "$pkgdir"/usr/bin
+}
Deleted: sage.service
===================================================================
--- sage.service 2017-06-17 18:35:02 UTC (rev 237985)
+++ sage.service 2017-06-17 18:35:26 UTC (rev 237986)
@@ -1,8 +0,0 @@
-[Unit]
-Description=A free open-source mathematics software system
-
-[Service]
-ExecStart=/usr/bin/sage -notebook=sagenb
-
-[Install]
-WantedBy=default.target
Copied: sage-notebook/repos/community-any/sage.service (from rev 237985, sage-notebook/trunk/sage.service)
===================================================================
--- sage.service (rev 0)
+++ sage.service 2017-06-17 18:35:26 UTC (rev 237986)
@@ -0,0 +1,8 @@
+[Unit]
+Description=A free open-source mathematics software system
+
+[Service]
+ExecStart=/usr/bin/sage -notebook=sagenb
+
+[Install]
+WantedBy=default.target
More information about the arch-commits
mailing list