Skip to content
Browse files

bump sagenb to 0.10.2 for 5.4 - note we don't have the right jmol rig…

…ht now.

(Portage version: 2.2.0_alpha134/git/Linux x86_64, unsigned Manifest commit)
  • Loading branch information...
1 parent fb4d5b4 commit 628bb7bc1dad7addfbfafad1c96af4e6e6603256 @kiwifb kiwifb committed
View
6 sci-mathematics/sage-notebook/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*sage-notebook-0.10.2 (07 Oct 2012)
+
+ 07 Oct 2012; François Bissey <francois.bissey@canterbury.ac.nz>
+ +sage-notebook-0.10.2.ebuild, +files/sage-notebook-0.10.2-setup.py.patch:
+ bump to 0.10.2
+
*sage-notebook-0.9.1-r3 (23 Aug 2012)
23 Aug 2012; François Bissey <francois.bissey@canterbury.ac.nz>
View
5 sci-mathematics/sage-notebook/Manifest
@@ -1,4 +1,5 @@
AUX sage-notebook 2422 SHA256 da49593e84a26a43dc9833ff0edf4e389c8e951c735e2509eec7e92e8ad6382c SHA512 6593495bdcce6e0870de667e482b4c364aebcbb219d7a5a70257526a94ae8c4a68853e670efa8f4c7e5a8fb747a9fe50f3c030c884aa39545d769fa10e2f16cd WHIRLPOOL 7d2325ec7a7f1909504a5848ac3a1064521e1b20435d7f2abda5da1f774033b78bbbea95973bd92a7d8f9921849851ba543d609636865af5617d0babda805267
+AUX sage-notebook-0.10.2-setup.py.patch 957 SHA256 c92ed5d4800232b6ce4d1a23483d810d18341c17ab9f05d5f6c54a37a016658f SHA512 fe4db7b116ed13dbabd8d4a432581eed513d41648fc446f930d37ae97fbd925f24f9a24285b1f4db9ca6e540013170e9fc07feb9b51d9fc8a4a3700bc262536a WHIRLPOOL c57587968f203f6a73bec38a48231c3a272caeb031df1ef42ef152bb2fefab89f58043cdfb44c6794e33dd59698e45a23fd71cdf53ee81b3ca1ec313658239d1
AUX sage-notebook-0.8-nojava.patch 487 SHA256 6f46501927def7c74913c342c2af4c79e64af1dfcdd0da43223ad38525b0865c SHA512 8af80b52e50040d10e1f6dd79f4b2c2354a6569645131d406fed9875ad2142246e0a379798c68777bb22dbca5849a6d48e3f204746530c8a4f302044a7419f9f WHIRLPOOL e6a499259a09509b588b6019d1c5929bd5ad954c25147dfedb36b12ef99a917256632d12206c8d2e7bd458edd6fba8f6019af800e8a7679f01380f993ebb4d92
AUX sage-notebook-0.8.14-fix-secure-connection.patch 1128 SHA256 6b2d2c56cda7aea04a67e90998aab3d025fff9a29b65cfebb8481d96e5bbcb42 SHA512 a0364b33da2b5a2794c51403fe5eb0cb6c00bfdd4b78e59dcb6d38f5d9c6d191624f1df7277fa3e6fff9e4c1f65d2d7d40c36dd86a849e308d93dd4890f7e980 WHIRLPOOL 5382b01478e22ee96b1d6ff34fbb8f79f35b5d60375b6ae8abb74f1b6e3e295f80da52696c5648029dbf2320f1e92954a7e6d8d8368ef7a72a90520861f562cf
AUX sage-notebook-0.8.16-twistd-python-version.patch 843 SHA256 4968de713c854bfa835eb9a5e1c1394f10d93696a4669d7b3768f28c14cb95cf SHA512 76f53e6bad008ff6ed3351da2a6caa8c6b8d4d4d19a9d3297f54a9318279b349e7f6dc48b2f722654d7168eb8c5e32cf15c2a7223156e905781954afe32e223d WHIRLPOOL 0335e70b5337e1acf81d376d44a7d685bca2e9ec2d8140493d0f5a195f361f8eee4a4bb00e04413a0e3ba742d8714ecabb83ce4281a8506f946e4d9a839a45f3
@@ -7,9 +8,11 @@ AUX sage-notebook-0.9.1-base-jmol.patch 1052 SHA256 70e91283ea7857debe8c07620db3
AUX sage-notebook-0.9.1-notebook.patch 591 SHA256 d01656720591ad1f5cb3e717684f02720fb273f70df17fc1551b8950cecaa576 SHA512 5ed95284b1682e3b514de0edcf8b7d4f6ce19f9deef9b399732cf03df4009dce80f70532597edc2093bd5741d454496d93484f94cff759dc31d00c4c33e4243c WHIRLPOOL 515f2586b77cb9d852d1dd9fd8ddf5f950f844f50a5e93019c97b5040c2dca01d4ba14fc5a386469f8ffe5d167f2768786ae2fa291c4d34ee3bbe59e3cba0155
AUX sage-notebook-0.9.1-sageinspect.patch 412 SHA256 d29925e1df4881ed7ee6e506534368669aaf202c09de552d6d42934d9360b2a4 SHA512 6bdf81cc0282fa0ceb3c3c67302bdc5133173dba2ce28f9f8d3fadae2b199ae78953de0632c41f46a7db935c835e7aace3d23b39531b43f918572ff68abb5c66 WHIRLPOOL b693eb062ac65acaee7cc3b1a3d90e89ef1e1b3b24ad5368716bd9a4b498fa5ba63f914d4e6f2a9f8eef09aedb9ba68b019ed604275fe57cb5e33dc8b1c116c0
AUX sage-notebook.conf 2380 SHA256 6c706850bba9530b24bb1512432807874124197b2598fc46fab78070abf9979e SHA512 284b88f05675935c26750ae0c1719cfaaeca17c574c27fd93d29cf2ce15520170938f6f7eee4c642fb95adadad77b2e32d221c6ed9c2fb3a8e20e8a37c0f3bec WHIRLPOOL 4df0106b93be259633e4c1b043c504940f72acda284bf58449bd4acf7dfb475afcde6dcc7bcda8d38e8f8cf4ca27075e15942c51b1521ae7e6beda171b51b586
+DIST sage-notebook-0.10.2.tar.gz 5104561 SHA256 57adbe163fb25c7c33fbc1bdab937e5a1a4d5b2fe4e3fdbdaf89b57fad446520 SHA512 d06adb3d48551e7b2e32dc55c9239bfab7bc406d7b67af4fc44d73663a1c9a4fc80a131ae89e68d4c5755c7ef8e2028d8f011f9c1d32929c84f35eafdf74fd6a WHIRLPOOL d1bc66c52ecca412540cce5b2fa218d6550d1630b86ee40543baff6e2685914c782ce3d431eadf4123e818665f0ffe136d885d8b224cac3f48b2d961a198ccd4
DIST sage-notebook-0.8.29.tar.bz2 18899951 SHA256 a1804d2235567a33d93b4477a71e3221b55a7cd3324ab07889bdb9287bfb4b82 SHA512 666aa6e5253fde302844e2954a35123120767130facc9729d0eb586b3d1edbfaf573dd3a6ea83186c7b3c87cf1f7b7be3e20baa17209f63ff74700053061595e WHIRLPOOL 3c78b157ae72f2a0bbbe5e2e2e6e4bb255a1a6e5976802b7ee54b5e696c01ac7cf95f7d7b75996f22be186919d29851ce02adcc05ee70ad3a6ec53ca180c25b4
DIST sage-notebook-0.9.1.tar.gz 3394879 SHA256 bd52207e8b04d6a35152a67ea140bf96c82c45354ea478d70b316005c5e8f554 SHA512 0b4e4c8ee218c7e95233bdc30f961a603ef2f3e3892ab9eb71728080bb7ac15f766579dc91e60f927a201cf01faca66408e411dbb8d584bada1601903813bdb7 WHIRLPOOL b494d8454366f2920249620535d4fac8e4075ca099701baad5f39e7be3882d30077116de3e3c1c2e438e33e1c6bcb3de0f47affd0db6f1bb8b6c45df10e62a3c
+EBUILD sage-notebook-0.10.2.ebuild 2493 SHA256 68915472c19d70786a0851684607f5a0d67fd3fc68e7e5b9d71093d0c7732461 SHA512 130591f8444bc94618572a929bf1e3f6da902b2b9e4fb92d4d7fecbee8f28b3fcbfafe6e397ddcf9ebdfe688fac22167b98c16e940e5fdd5b16aecb123550aa5 WHIRLPOOL b0ccd3e596d9020ca9e934195484e21db315abbc6a603e194a2cfc9bb56b2add4629ad83220e54e54247f69f5685bbe4a8ed9b6a0014faabf1aa56ccf0199a8f
EBUILD sage-notebook-0.8.29-r2.ebuild 3221 SHA256 6244448983f8cc5d8af37ae772f7703d2e044c789c165bc3167ce9ce73fc8e9d SHA512 7ac57e61b533ed1691914ef7fc3f7e0fd79f9733a6f232f6615bfc7e90c651c8916431f4cac20cfea423ed639dc36cdeae1e41d56b10cfee0eb897562d15405d WHIRLPOOL 01b5725f32297735623c64025c2a157cf9588ec2a421759a4d1c6f968d5a2f62140d6916d1346c9f16c19fa59fb1f34e059e274835b82e2d74705b90c6f2fab6
EBUILD sage-notebook-0.9.1-r3.ebuild 2522 SHA256 95f403324d0c55340a1142115a17ee8de0fecbd1ae0bf08910fa028272f61862 SHA512 2971ff33fa71bb7ce1e43a16c32c614eb54f85940cba7b42eba629d7562f3b2b614c06a3bad1b201511ce5c1b3622abb29176fdb1695538ab86495fbc8ee06c5 WHIRLPOOL 010882aef3b4f32974edf1efcba1a7bd5f5a14ebdb6a9c65a9678eca467b3ee14fbd32a0d4187c80cd07c3fe72636343f51a8e4ce726079c259372aecbed6ff5
-MISC ChangeLog 17743 SHA256 b2cebe269895c66bc6607a1aec3aeee8712f8a10c305a4dd5f96a19311399dfd SHA512 26a7e0977365842db364ece09dc5f388abd38a68fb31cd54d95e053f8e4e2837ff6fe4ed353f7dd05332fbd4c0cc3f505216de677f5556bb6b75df58af9ba976 WHIRLPOOL 333389aa8463d4637f415807825abd0ec24aa8666b5b52c465b58c4d26bea732ffcfb13c7e6949d5b54da802a6fcaee21ca0bf640f55136109308d947d25d221
+MISC ChangeLog 17941 SHA256 6e4d4d110144a9a1d2ef62edb24f2dfbda2677b118db303c5f6592d49aa4bf94 SHA512 9ae805d7ddd847b85ce6946771ea08f34a7102847a24b6f1470d92af0eff034eefa3792d24a53c0e79e35f10c4b324eb9d0d3beb41ff73e9962edc4743322964 WHIRLPOOL 08b045a483949fa55db7511eeffe9fd545100f7103dc6eccf8220cd061d9c3f6411ffd14080eb71c20b38dffd76ec412e1c0c7b8df02d0774fd314c645b4a7e1
MISC metadata.xml 390 SHA256 eccc924165a32c606bf95567e3e77e5d40fbf4e03f2ac9985086af94779798c2 SHA512 6a90189e5c1057f570fca565a2f88c36bb285166747068134589ea51a81d791ee3a545b7e41cf1d0ee6681c624d509bf42dcc164ddb5c3f78ca8e351a3888322 WHIRLPOOL 1d1631cfe52269cfbb0081013c6a557a717eba89fc953e083b45f627c2862d8013f6dfb165e6272bfa668aa73d715c38e4672834eee304d1c4313571c224788e
View
21 sci-mathematics/sage-notebook/files/sage-notebook-0.10.2-setup.py.patch
@@ -0,0 +1,21 @@
+--- setup.py.orig 2012-10-07 23:11:47.689898038 +1300
++++ setup.py 2012-10-07 23:13:37.219009136 +1300
+@@ -51,7 +51,8 @@
+ url = 'http://github.com/sagemath/sagenb',
+ install_requires = install_requires,
+ test_suite = 'sagenb.testing.run_tests.all_tests',
+- packages = [ 'sagenb'
++ packages = [ 'flask_version'
++ , 'sagenb'
+ , 'sagenb.interfaces'
+ , 'sagenb.misc'
+ , 'sagenb.notebook'
+@@ -62,8 +63,6 @@
+ , 'sagenb.testing.tests'
+ , 'sagenb.testing.selenium'
+ ],
+- scripts = [ 'sagenb/data/sage3d/sage3d',
+- ],
+ package_data = {'sagenb':
+ all_files('sagenb/data', 'sagenb/') +
+ all_files('sagenb/translations', 'sagenb/')
View
99 sci-mathematics/sage-notebook/sage-notebook-0.10.2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+PYTHON_DEPEND="2:2.7"
+PYTHON_MODNAME="sagenb"
+PYTHON_USE_WITH_OPT="ssl"
+
+inherit distutils eutils user
+
+MY_PN="sagemath-sagenb"
+
+DESCRIPTION="The Sage Notebook is a web-based graphical user interface for mathematical software"
+HOMEPAGE="http://nb.sagemath.org"
+SRC_URI="https://github.com/sagemath/sagenb/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="+java server ssl"
+
+RESTRICT="mirror"
+
+CDEPEND="~dev-python/pexpect-2.0
+ >=dev-python/twisted-12.0
+ >=dev-python/twisted-mail-12.0
+ >=dev-python/twisted-web-12.0
+ !dev-python/twisted-web2
+ >=dev-python/jinja-2.5.5
+ >=dev-python/docutils-0.5
+ >=dev-python/flask-autoindex-0.4.1
+ >=dev-python/flask-openid-1.0.1
+ >=dev-python/flask-babel-0.8
+ dev-python/webassets"
+DEPEND="${CDEPEND}
+ test? ( sci-mathematics/sage[testsuite] )"
+RDEPEND="${CDEPEND}
+ sci-mathematics/sage
+ java? ( ~sci-chemistry/jmol-12.2.27
+ ~sci-chemistry/jmol-applet-12.2.27 )"
+
+# github release tag
+TAG=dbabb90
+S="${WORKDIR}/${MY_PN}-${TAG}"
+
+pkg_setup() {
+ # Sage now will only works with python 2.7.*
+ python_set_active_version 2.7
+ python_pkg_setup
+ export DOT_SAGE="${S}"
+
+ # create user to run the server
+ if use server ; then
+ enewgroup sage
+ enewuser sage -1 /bin/bash /var/lib/sage sage
+ fi
+}
+
+src_prepare() {
+ # ship flask_version and not sage3d
+ epatch "${FILESDIR}"/${PN}-0.10.2-setup.py.patch
+
+ # find flask_version in the right place
+ sed -i "s:import base:import flask_version.base:" sagenb/notebook/run_notebook.py || die "failed to patch for flask_version path"
+
+ # remove sage3d
+ rm -rf sagenb/data/sage3d || die "failed to remove sage3d"
+
+ # find jmol
+ epatch "${FILESDIR}"/${PN}-0.9.1-base-jmol.patch
+ sed -i "s:jmol/appletweb/Jmol.js:jmol/Jmol.js:g" sagenb/data/sage/html/notebook/base.html
+
+ # fix SAGE_ROOT
+ epatch "${FILESDIR}"/${PN}-0.9.1-notebook.patch
+
+ mkdir conf.d || die "failed to create directory"
+ mkdir init.d || die "failed to create directory"
+
+ cp "${FILESDIR}"/${PN} init.d/${PN} || die "failed to copy file"
+ cp "${FILESDIR}"/${PN}.conf conf.d/${PN} || die "failed to copy file"
+
+ distutils_src_prepare
+}
+
+src_install() {
+ # install runscript+configuration file to run the notebook as a daemon
+ if use server ; then
+ doinitd init.d/${PN}
+ doconfd conf.d/${PN}
+ fi
+
+ distutils_src_install
+}
+
+src_test() {
+ PYTHONPATH="." default_src_test
+}

0 comments on commit 628bb7b

Please sign in to comment.
Something went wrong with that request. Please try again.