Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[sci-mathematics/sage-notebook] Migrate to distutils-r1.eclass

Package-Manager: portage-2.1.11.31
  • Loading branch information...
commit f7ab4157b78094d3139ceea5f5872123a5958403 1 parent a507432
Christopher Schwan authored
6 sci-mathematics/sage-notebook/ChangeLog
View
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*sage-notebook-0.10.2-r3 (16 Dec 2012)
+
+ 16 Dec 2012; Christopher Schwan <cschwan@students.uni-mainz.de>
+ +sage-notebook-0.10.2-r3.ebuild:
+ Migrate to distutils-r1.eclass
+
27 Nov 2012; François Bissey <francois.bissey@canterbury.ac.nz>
files/sage-notebook-0.10.2, files/sage-notebook.conf-0.10.2:
Include the changes suggested by Coacher
3  sci-mathematics/sage-notebook/Manifest
View
@@ -5,5 +5,6 @@ AUX sage-notebook-0.9.1-notebook.patch 591 SHA256 d01656720591ad1f5cb3e717684f02
AUX sage-notebook.conf-0.10.2 2381 SHA256 72b85cdb77518b1689fadc652d2f90786bc3a25dd6df9683a757202e9210d97f SHA512 0aa3ca99f66af9334ccd580adc70c0047d7ec9b9eb965849c5a57f059401d45d37e3969918e4bbf5ad9b2aca0707b1b082576f8fd8281b6f4feb0a76900dc5b9 WHIRLPOOL 1b7176de015de50cea77cef4ff1f981f8f9cd65b7ec84333865ba775bdb56d637f9c5f430561d996b42aa7c7c66c1a197955bd14141cb44d055678ff574dc182
DIST sage-notebook-0.10.2.tar.gz 5104561 SHA256 57adbe163fb25c7c33fbc1bdab937e5a1a4d5b2fe4e3fdbdaf89b57fad446520 SHA512 d06adb3d48551e7b2e32dc55c9239bfab7bc406d7b67af4fc44d73663a1c9a4fc80a131ae89e68d4c5755c7ef8e2028d8f011f9c1d32929c84f35eafdf74fd6a WHIRLPOOL d1bc66c52ecca412540cce5b2fa218d6550d1630b86ee40543baff6e2685914c782ce3d431eadf4123e818665f0ffe136d885d8b224cac3f48b2d961a198ccd4
EBUILD sage-notebook-0.10.2-r2.ebuild 2677 SHA256 12d4f71c3df8504c8dd4e7430fce1ca2ba411dfbaa4f0f343c374625cb318b49 SHA512 8e216a743e832db23689773edb916e53cdfd200df856fe23421f12192f776af68a0d479224d125aa6156d85c4c3d723b113cf93b28ce3f323dbba005e6d428f9 WHIRLPOOL 77d9484d4bb478498e24a59257c6e107557e7b89b9e586a5ee62c2930f684d7a712586b98f2cc106360be1c9861245267fac4910545280aa34d3b1ac8391548e
-MISC ChangeLog 19924 SHA256 e08f50db57d26127c1cfdbd3b1c08cdeb785d52dd483992f9366718570bd85ba SHA512 00ddebf25beedd7b4d6ac30ef700dc7f5d62e57cbdc39fcbd292e8d7bdba9aa969fc1b48f7813b43160f00f9a8a114f90cfd9333dd0c596bbb9d2771df6a2448 WHIRLPOOL ebf4a17b0190ffee5ae022724bd858a65ea5360020f9a6ff5aea06b7b1676676edc8cbc8f4d2c98acf11f56c390e34b1bf65f2aa60325657109af8946cc0322c
+EBUILD sage-notebook-0.10.2-r3.ebuild 2616 SHA256 9cc29097b97a45483d7e73bd11e73da75225dad220f677e679bb9fdda8875ee8 SHA512 cce00d47eaa90dfe6784e6462bfdc879416ebc08d1ccc05b3bcba32a3723a04ea7a61a3c76869bd607da37e90ea78c5386c5775b368a3f7c9554f64903a6ff49 WHIRLPOOL 100833198976fd78c8b1a8d72fe0860cf84c29864ec3a3feed7fa23becf8abe509fcbc66227970b967f0fc7144d8f021a69d84ac6276d82d31d6e3eeca47def9
+MISC ChangeLog 20099 SHA256 33b79631c61621faa835583ace1c8d7aaa4d73f92314abd462883eb5555aaf8c SHA512 b3e62ea579f367e036d332b5df01889548a425fcc506f9534ee46fb6dca9fd4a356210ff0d68dd338824492843741bf3598308d61774339924e4a5d90358b6f6 WHIRLPOOL f5c6b30a2ce381bb8d8d6d5929d1b90b104872a13eccf531345c7ca7f47950012b494a0128daed9121369dae3e58764c7cc98e4a93c9a3752e23701d58924411
MISC metadata.xml 390 SHA256 eccc924165a32c606bf95567e3e77e5d40fbf4e03f2ac9985086af94779798c2 SHA512 6a90189e5c1057f570fca565a2f88c36bb285166747068134589ea51a81d791ee3a545b7e41cf1d0ee6681c624d509bf42dcc164ddb5c3f78ca8e351a3888322 WHIRLPOOL 1d1631cfe52269cfbb0081013c6a557a717eba89fc953e083b45f627c2862d8013f6dfb165e6272bfa668aa73d715c38e4672834eee304d1c4313571c224788e
97 sci-mathematics/sage-notebook/sage-notebook-0.10.2-r3.ebuild
View
@@ -0,0 +1,97 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+PYTHON_COMPAT=( python2_7 )
+python_moduleroot="sagenb"
+PYTHON_REQ_USE="ssl"
+
+inherit distutils-r1 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"
+
+RESTRICT="mirror test"
+
+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,${PYTHON_USEDEP}] )"
+RDEPEND="${CDEPEND}
+ sci-mathematics/sage[${PYTHON_USEDEP}]
+ java? ( ~sci-chemistry/jmol-12.3.14
+ ~sci-chemistry/jmol-applet-12.3.14 )"
+
+# github release tag
+TAG=dbabb90
+S="${WORKDIR}/${MY_PN}-${TAG}"
+
+pkg_setup() {
+ python_export python2_7 EPYTHON
+
+ 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 and various openid
+ epatch "${FILESDIR}"/${PN}-0.9.1-base.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}-0.10.2 init.d/${PN} || die "failed to copy file"
+ cp "${FILESDIR}"/${PN}.conf-0.10.2 conf.d/${PN} || die "failed to copy file"
+
+ # correct the location of JmolHelp.html if include in jmol-applet[sage]
+# sed -i s:\/java\/jmol\/appletweb:\/java\/jmol:g sagenb/data/sage/js/jmol_lib.js
+
+ distutils-r1_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-r1_src_install
+}
Please sign in to comment.
Something went wrong with that request. Please try again.