summaryrefslogtreecommitdiff
path: root/community/sage-mathematics/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/sage-mathematics/PKGBUILD')
-rw-r--r--community/sage-mathematics/PKGBUILD33
1 files changed, 14 insertions, 19 deletions
diff --git a/community/sage-mathematics/PKGBUILD b/community/sage-mathematics/PKGBUILD
index 04529d1c4..aa68e7c98 100644
--- a/community/sage-mathematics/PKGBUILD
+++ b/community/sage-mathematics/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 73103 2012-07-01 13:56:11Z dwallace $
+# $Id: PKGBUILD 73127 2012-07-02 04:22:14Z dwallace $
# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Antonio Rojas < nqn1976 @ gmail.com >
# Contributor: Thomas Dziedzic < gostrc at gmail >
@@ -8,37 +8,26 @@
pkgname=sage-mathematics
pkgver=5.0.1
-pkgrel=2
+pkgrel=3
pkgdesc='SAGE: Open Source Mathematics Software, a viable free alternative to Magma, Maple, Mathematica, and Matlab.'
url='http://www.sagemath.org'
arch=('i686' 'x86_64')
license=('GPL')
#depends=('readline')
-depends=('ppl')
-makedepends=('gcc-fortran' 'gcc-libs' 'desktop-file-utils' 'imagemagick' 'texlive-core')
+makedepends=('gcc-fortran' 'desktop-file-utils')
optdepends=('imagemagick: some plotting functionality benefits from it'
'texlive-core: some plotting functionality benefits from it, also to use SageTeX'
- 'sage-mathematics-spkgs: original packages used to build additional packages')
+ 'openssh: to use the notebook in secure mode'
+ 'ffmpeg: to show animations'
+ 'jsmath-fonts: native TeX fonts for the notebook')
options=('!makeflags')
install="${pkgname}.install"
source=("http://sage.math.washington.edu/home/release/sage-${pkgver}/sage-${pkgver}.tar"
'SAGE-notebook.desktop')
-md5sums=('1538dbcfac04482b3837ba06bb75f073'
- 'dc391f12b7d17dd37326343ec0e99bbd')
build() {
cd sage-${pkgver}
- # modularization of sage, sort of :)
- # fixes the following error:
- # bash: symbol lookup error: bash: undefined symbol: rl_filename_rewrite_hook
- # remove this hack when sage uses a readline 6.1 or greater, or when sage uses its own internal bash
- # this is for people who have custom kernels (sage works this around by checking uname -r)
- #mkdir -p spkg/installed
- #touch spkg/installed/readline-6.1
- mkdir -p spkg/installed
- touch spkg/installed/ppl-0.11.2
-
# fix "missing sage.all error" during build
unset CFLAGS
unset CXXFLAGS
@@ -46,6 +35,9 @@ build() {
# fix build errors
unset LDFLAGS
+ # don't build GCC
+ export SAGE_INSTALL_GCC='no'
+
# enable multiple threads while building, is this really needed? check if uses MAKEFLAGS
export SAGE_BUILD_THREADS=$(lscpu | awk '/^CPU\(s\):/ { print $2 }')
export MAKE="make -j${SAGE_BUILD_THREADS}"
@@ -98,11 +90,14 @@ package() {
ln -s /opt/sage/sage ${pkgdir}/usr/bin/sage
# remove build logs
- rm -f ${pkgdir}/opt/sage/install.log
+ rm -f ${pkgdir}/opt/sage/*.log
rm -rf ${pkgdir}/opt/sage/spkg/logs
# remove source packages, since they are rarely needed, they are 300mb in size (compressed)
- # no need to package them together, put into sage-mathematics-spkgs
rm -f ${pkgdir}/opt/sage/spkg/base/*spkg
rm -f ${pkgdir}/opt/sage/spkg/standard/*spkg
}
+
+# vim :set ts=2 sw=2 et:
+md5sums=('1538dbcfac04482b3837ba06bb75f073'
+ 'dc391f12b7d17dd37326343ec0e99bbd')