Permalink
Browse files

[sci-mathematics/sage-baselayout] Version bump

Package-Manager: portage-2.1.11.31
  • Loading branch information...
1 parent c8efa8b commit ea5bf6113c3c230fb0218994e4d97bcc34681243 Christopher Schwan committed Dec 27, 2012
@@ -2,6 +2,12 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*sage-baselayout-5.5 (27 Dec 2012)
+
+ 27 Dec 2012; Christopher Schwan <cschwan@students.uni-mainz.de>
+ +sage-baselayout-5.5.ebuild:
+ Version bump
+
06 Dec 2012; François Bissey <francois.bissey@canterbury.ac.nz>
sage-baselayout-5.5_rc0.ebuild:
Add the run-cython script
@@ -3,10 +3,13 @@ AUX sage-baselayout-4.7.2-fix-SAGE_LOCAL.patch 4462 SHA256 1969d0c7a6a4af8c829f3
AUX sage-baselayout-5.4-gentooify-startup-script-2.patch.bz2 5149 SHA256 83e52463211d61adefce07bedfcd3c10310f06613014641592f76e78c4393752 SHA512 e85e05b055eda26c646f233f11f32b70f3f40105f49637645e0087186091900f3c796625bdc8fb60654ddf417fb74365c0c5b93429e8fae4e4187ca41f5ab49c WHIRLPOOL 4daa662eb7abfe5a2b3ecfffcb41bf9b7471e845694a1c909386e3e8ac5b449e5aa111ca0d9bc9d75dcf8f91854a30629a5ee66913c5ef24aaf4ccc9604ff0d2
AUX sage.svg.bz2 2603 SHA256 e30c9981dff53532d34d4ae6e5f91bf70169a866195b831300b102a9471e59bd SHA512 b9692023120d625990c88f4e4b179356c865b951634f0083f6156a4cb478cd038ee9638ab2ad14f5f1b63d4e98c7b20f74a174cc28da49a3369e0bb94ff7f7df WHIRLPOOL 96960ad317e82a692cb5afb447f415888d0fd99fb57898d7ea5d8ba3783a566d5d5bb1b969e11235fa6e6476a1ea3f6e60923cf209e91a314ac0d8ae6dcc84c1
DIST sage-baselayout-5.4.1.tar.bz2 1103901 SHA256 c628b89f9b186d8a65619db62a89ab156d3fab80279ab678a7bf656e4458cb69 SHA512 96aa75e3f4e881a57edec5e2b9837c262683349edd085dbb33e8f6bcaa2cd84f4c37b051c61a25729bced791eb39e41a1ab422af59d6d63c6c644dec1a751093 WHIRLPOOL fdb02aa1ba0ff40a7fda7624334ad5109f637e0022b4a59090216485c9160e4a0ce7cd798ce7fe2d398d8fe0c449bfe489075b78a8fa62c7e8b5576f0bc09957
+DIST sage-baselayout-5.5.tar.bz2 1112761 SHA256 632520f411ba507df2a103da3eaddb883204ef659c29627de7f43cdf0937b8ad SHA512 00b05d50fb8614cf08a1d1df58640587f2a20cc52aa719d1c5596f4b54a61bac233b1275b816e976b10692121496bd23f62ba9e0b0f77209487d6c1f01ddb4a1 WHIRLPOOL 7edc2384b0a3b0e99ba6862f356ff0a2bc26b59330971f8093111fe71e7947c646080851387b708213c0f3462a553e0bc546f30e0cc80d486f2eae7b457cb115
DIST sage-baselayout-5.5_rc0.tar.bz2 1112155 SHA256 468e74224a03ef4e8d64e119a8ab9fb355a2f15827308d368f5a860eb8c4c6b7 SHA512 1d0e2f0be27a0e43a064a9638679d520b1246fd8a2e05f3bab83147a4a3e2ffb11a57d9b57781e7b7458e01654a7b637c7fc4b574e0a87288b4dd540e444bdc8 WHIRLPOOL ccd5f4325ca2c6f4fc7c6e895662f15c727bfc292245257bd06bc47f7407ddf8493cbda43a8ea4f845d0b56debee929fb778b914a14a31b9ff478be51af9cfb5
DIST sage_root-5.4.1.tar.bz2 329388 SHA256 593fc7765d2a430f8596f91d2585a8aebf8632e337410aee6b40944ea329d4eb SHA512 eb81d696d3489061320f6303267bec9cf9d7e6f75164c5264ec2c9d64c4a14d9a50ddf1bb7d72917c55e5f3f5a3605a68f9acc28b158a0ac0b862355ddc2a735 WHIRLPOOL b979487f788ae899c4cf7d79340232c4400d263e4391c8faa7b3701ea1f0d0ddbed87217045d4f737665cdc4bcaf24d779700c6ba1a2498aa297ebfaabd113c4
DIST sage_root-5.5.rc0.tar.bz2 333623 SHA256 a96024dadf64c6546c1a4abcb0d6843022b7987ee35cb73474db1bde69ed5519 SHA512 d001a1734e95dd0faa9f82267e5f31fe7701ef6cee38cc691a8a49aa820b79cb8325062d1483429c843f024750a6cb6cfbe2ed18a65f1ffb5cdda19f5a4a4003 WHIRLPOOL 8a88ca02b91ca5a93e279f479615d6df9226bed148b7ec88ca0a74788c74607a320d5d9de774eb0757963cda05d9cefd911d651fa1ef3bf8dda48b3590708d3e
+DIST sage_root-5.5.tar.bz2 334485 SHA256 3463fc9e19f7ceced6b505ad240c9ddd06c2949b0fea9ba7a1b9845d392010ee SHA512 961c8f856e359bf0efd053fe894007631ba2eb9d168957edb3c1bb50f2ed05bb138f9d0478910a27c031dcc05fec6d24b3ed09d1ab0d8b20a34daf0b358cc05a WHIRLPOOL c0df75d926b0c9ad4994242ef233027cd60d70a2fc32e47ca2ec2029b99296b3d185deb623fae87964d0b85553b491e9ddfb0b4d5c5e416bac0e6d145723497b
EBUILD sage-baselayout-5.4.1.ebuild 4952 SHA256 dd4364b56eee3c57415d988973e0c96b82d68d9df44bc2c24c25ead23f860488 SHA512 f24848eca21bc09fea7cdad629352086cd80bcc9af50f077ba4a2f900ffd5fad3532fe26da6497d9240a8e5322f251e823825e5b69848bf79cb9e1a244136ec9 WHIRLPOOL 7f99e26dc7bfb411502d8c4bd7b68fcfa0b0e0d42da9ad49197a4d0bc60768eda3b5dc7d9e4d3a4a3daa7bfd603aece3db6abe1d84bbcf139b89fda50026913a
+EBUILD sage-baselayout-5.5.ebuild 4968 SHA256 8a18f1bb9f6aa1b419a04248f257e56c69846f71736daea8af2d0e8546a9dbdb SHA512 1806bc12d21005a4357db7889c8527a53e0e202baf37de8babcfb570188f481497dc5abefd5bdad384ef534886ee46cc701b195161f03fdda1f9fef4e7764a7e WHIRLPOOL 77a0a3b3b102666fcf418986af0efb58f975beffd246be893067c92f0d4d0ee4c3a660df80390ebe8cabae484108409ead7a08c2e3efcafa1ff22fd4900ae76f
EBUILD sage-baselayout-5.5_rc0.ebuild 4968 SHA256 07cf4ef63f62e83700da5246dd6ec460c471ef35971cde5bea68ed2dba4074ef SHA512 20b6d690abc2b5df8733be92b173061bb624c98b000f1b11542e34fc59575675d47ff673e7e413e2822a0b76ec51cd357dcc3bd540c75a118e7a26583433679a WHIRLPOOL 840734904a620cb52c43d7e3f409ffb3818e10cdcdfe3cd861f3bf36b625d2e808908fe6c5de8be0695acca851d79e0ed28f9fc1b6d17b414eafe743a9af173b
-MISC ChangeLog 24682 SHA256 af1d6c3da131c866ca9be9011360530ca0427a61f725ae8443c890b8287185da SHA512 5b7ed9f304b45ca0dd10af7e0afd1aac6df134af72627a6f946f0a8b1fc248fd8ba2178d38c66e54ea8af482743270ac5c5faf6642a02a50874e95ddcc5ef42a WHIRLPOOL 741230d66273c059deb5a122fd362ae2104c08d362ff2a2f09e7ebd734bf3e573091a5dde92e450ac7277a184a1a27761ae70132719fd6124579852fe05349da
+MISC ChangeLog 24831 SHA256 f28005e4a7494ecd17c716df4a23e228207f97d6eb6241769078de55bf014198 SHA512 b8c25f3d9804d4a5ae2a49e3a60306ff1d6cd0db819d22378315e44118e0da0491849329f4cbdfeece7deae6db80aacd4f5ec9fc9395777348be4200bc12f397 WHIRLPOOL 973c041da49d25d0f5d20b3ff88965fa824462156dd312e38ad1cd0667447e03938ff1806706544ab5e813055fefbad17c2b1e71046006e34f4950c2a6f24033
MISC metadata.xml 397 SHA256 43b9983d9fce7346d1fb4c047d05a5b64dc71fc037d0780cc8675f01d59abe1d SHA512 34244472d58576866463ae90bf7e5cabddcb848e0d06fe0818d4096bc977037705e7305f3d101cf900e68915fa23cf8f184d4b7b9876628fd4e43e8af0c93264 WHIRLPOOL 6a5c9122f4e684395666bb9a69c0ff6f3a4d62c64ba23f491cd7f1306bdde607f4b5ec737f4c5bfe429b2333427284c456ff3829d49a9a17072310f29da4f4d3
@@ -0,0 +1,181 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils prefix versionator
+
+SAGE_P="sage-$(replace_version_separator 2 '.')"
+MY_P="sage_scripts-$(replace_version_separator 2 '.')"
+SAGEROOT="sage_root-$(replace_version_separator 2 '.')"
+
+DESCRIPTION="Sage baselayout files"
+HOMEPAGE="http://www.sagemath.org"
+SRC_URI="http://sage.math.washington.edu/home/release/${SAGE_P}/${SAGE_P}/spkg/standard/${MY_P}.spkg -> ${P}.tar.bz2
+ http://sage.math.washington.edu/home/release/${SAGE_P}/${SAGE_P}/spkg/standard/${SAGEROOT}.spkg -> ${SAGEROOT}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos"
+IUSE="debug testsuite X tools"
+
+RESTRICT="mirror"
+
+DEPEND=""
+if [[ ${CHOST} == *-darwin* ]] ; then
+ RDEPEND="${DEPEND}
+ tools? ( dev-vcs/mercurial )
+ debug? ( sys-devel/gdb-apple )"
+else
+ RDEPEND="${DEPEND}
+ tools? ( dev-vcs/mercurial )
+ debug? ( sys-devel/gdb )"
+fi
+
+S="${WORKDIR}/${MY_P}"
+ROOT_S="${WORKDIR}/${SAGEROOT}"
+
+# TODO: scripts into /usr/libexec ?
+src_prepare() {
+ # ship our own version of sage-env
+ cat > sage-env <<-EOF
+ #!/bin/bash
+
+ export SAGE_ROOT="${EPREFIX}/usr/share/sage"
+ export SAGE_LOCAL="${EPREFIX}/usr/"
+ export SAGE_DATA="${EPREFIX}/usr/share/sage"
+ export SAGE_SHARE="${EPREFIX}/usr/share/sage"
+ export SAGE_DOC="${EPREFIX}/usr/share/sage/devel/sage/doc"
+ export SAGE_EXTCODE="${EPREFIX}/usr/share/sage/ext"
+
+ if [[ -z \${DOT_SAGE} ]]; then
+ export DOT_SAGE="\${HOME}/.sage"
+ fi
+
+ export SAGE_STARTUP_FILE="\${DOT_SAGE}/init.sage"
+ export SAGE_TESTDIR="\${DOT_SAGE}/tmp"
+ export SAGE_SERVER="http://www.sagemath.org/"
+ export EPYTHON=python2.7
+ export MPMATH_NOGMPY=1
+ EOF
+
+ # make .desktop file
+ cat > "${T}"/sage-sage.desktop <<-EOF
+ [Desktop Entry]
+ Name=Sage Shell
+ Type=Application
+ Comment=Math software for algebra, geometry, number theory, cryptography and numerical computation
+ Exec=sage
+ TryExec=sage
+ Icon=sage
+ Categories=Education;Science;Math;
+ Terminal=true
+ EOF
+
+ # TODO: do not remove scons and M2
+
+ # replace ${SAGE_ROOT}/local with ${SAGE_LOCAL}
+ epatch "${FILESDIR}"/${PN}-4.7.2-fix-SAGE_LOCAL.patch
+
+ # solve sage-notebook start-up problems (after patching them)
+ mv sage-notebook sage-notebook-real
+ mv sage-notebook-insecure sage-notebook-insecure-real
+
+ cat > sage-notebook <<-EOF
+ #!/bin/bash
+
+ source ${EPREFIX}/etc/sage-env
+ ${EPREFIX}/usr/bin/sage-notebook-real "\$@"
+ EOF
+
+ cat > sage-notebook-insecure <<-EOF
+ #!/bin/bash
+
+ source ${EPREFIX}/etc/sage-env
+ ${EPREFIX}/usr/bin/sage-notebook-insecure-real "\$@"
+ EOF
+
+ # sage startup script is placed into /usr/bin
+ sed -i "s:\"\$SAGE_ROOT\"/sage:\"\$SAGE_LOCAL\"/bin/sage:g" \
+ sage-maketest || die "failed to patch path for Sage's startup script"
+
+ # TODO: if USE=debug/testsuite, remove corresponding options
+
+ # replace $SAGE_ROOT/local with $SAGE_LOCAL
+ sed -i "s:\$SAGE_ROOT/local:\$SAGE_LOCAL:g" sage-gdb sage-gdb-ipython \
+ sage-cachegrind sage-callgrind sage-massif sage-omega sage-valgrind \
+ || die "failed to patch GNU Debugger scripts"
+
+ # replace MAKE by MAKEOPTS in sage-num-threads.py
+ sed -i "s:os.environ\[\"MAKE\"\]:os.environ\[\"MAKEOPTS\"\]:g" \
+ sage-num-threads.py
+
+ # remove developer- and unsupported options
+ cd "${ROOT_S}"
+ epatch "${FILESDIR}"/${PN}-5.4-gentooify-startup-script-2.patch.bz2
+ eprefixify spkg/bin/sage
+}
+
+src_install() {
+ # TODO: patch sage-core and remove sage-native-execute ?
+
+ # core scripts which are needed in every case
+ dobin sage-cleaner sage-banner sage-eval sage-ipython \
+ sage-maxima.lisp sage-native-execute sage-run sage-num-threads.py \
+ sage-rst2txt sage-rst2sws
+
+ dobin "${ROOT_S}"/spkg/bin/sage
+
+ # install sage-env under /etc
+ insinto /etc
+ doins sage-env
+
+ if use testsuite ; then
+ # DOCTESTING helper scripts
+ dobin sage-doctest sage-maketest sage-ptest sage-test
+ fi
+
+ if use tools ; then
+ # install some of sage tools for spkg development
+ dobin sage-pkg
+ fi
+
+ # COMMAND helper scripts
+ dobin sage-cython sage-notebook* sage-python sage-run-cython
+
+ # additonal helper scripts
+ dobin sage-preparse sage-startuptime.py
+
+ if use debug ; then
+ # GNU DEBUGGER helper schripts
+ dobin sage-gdb sage-gdb-ipython sage-gdb-commands
+
+ # VALGRIND helper scripts
+ dobin sage-cachegrind sage-callgrind sage-massif sage-omega \
+ sage-valgrind
+ fi
+
+ insinto /usr/bin
+ doins *doctest.py ipy_profile_sage.py
+
+ insinto /usr/share/sage
+ doins -r "${ROOT_S}"/ipython
+ doins "${ROOT_S}"/COPYING.txt
+
+ insinto /etc
+ doins "${FILESDIR}"/gprc.expect
+
+ # install devel directories and link
+ dodir /usr/share/sage/devel/sage-main
+ dosym /usr/share/sage/devel/sage-main /usr/share/sage/devel/sage
+
+ if use X ; then
+ # unpack icon
+ cp "${FILESDIR}"/sage.svg.bz2 "${T}" || die "failed to copy icon"
+ bzip2 -d "${T}"/sage.svg.bz2 || die "failed to unzip icon"
+
+ doicon "${T}"/sage.svg
+ domenu "${T}"/sage-sage.desktop
+ fi
+}

0 comments on commit ea5bf61

Please sign in to comment.