[arch-commits] Commit in sage-mathematics/repos (14 files)

Daniel Wallace dwallace at nymeria.archlinux.org
Thu May 23 21:46:56 UTC 2013


    Date: Thursday, May 23, 2013 @ 23:46:56
  Author: dwallace
Revision: 91566

archrelease: copy trunk to community-i686, community-x86_64

Added:
  sage-mathematics/repos/community-i686/PKGBUILD
    (from rev 91565, sage-mathematics/trunk/PKGBUILD)
  sage-mathematics/repos/community-i686/SAGE-notebook.desktop
    (from rev 91565, sage-mathematics/trunk/SAGE-notebook.desktop)
  sage-mathematics/repos/community-i686/sage-mathematics.install
    (from rev 91565, sage-mathematics/trunk/sage-mathematics.install)
  sage-mathematics/repos/community-i686/sage.service
    (from rev 91565, sage-mathematics/trunk/sage.service)
  sage-mathematics/repos/community-x86_64/PKGBUILD
    (from rev 91565, sage-mathematics/trunk/PKGBUILD)
  sage-mathematics/repos/community-x86_64/SAGE-notebook.desktop
    (from rev 91565, sage-mathematics/trunk/SAGE-notebook.desktop)
  sage-mathematics/repos/community-x86_64/sage-mathematics.install
    (from rev 91565, sage-mathematics/trunk/sage-mathematics.install)
  sage-mathematics/repos/community-x86_64/sage.service
    (from rev 91565, sage-mathematics/trunk/sage.service)
Deleted:
  sage-mathematics/repos/community-i686/PKGBUILD
  sage-mathematics/repos/community-i686/SAGE-notebook.desktop
  sage-mathematics/repos/community-i686/sage-mathematics.install
  sage-mathematics/repos/community-x86_64/PKGBUILD
  sage-mathematics/repos/community-x86_64/SAGE-notebook.desktop
  sage-mathematics/repos/community-x86_64/sage-mathematics.install

-------------------------------------------+
 /PKGBUILD                                 |  216 ++++++++++++++++++++++++++++
 /SAGE-notebook.desktop                    |   38 ++++
 /sage-mathematics.install                 |  120 +++++++++++++++
 community-i686/PKGBUILD                   |  102 -------------
 community-i686/SAGE-notebook.desktop      |   19 --
 community-i686/sage-mathematics.install   |   58 -------
 community-i686/sage.service               |    8 +
 community-x86_64/PKGBUILD                 |  102 -------------
 community-x86_64/SAGE-notebook.desktop    |   19 --
 community-x86_64/sage-mathematics.install |   58 -------
 community-x86_64/sage.service             |    8 +
 11 files changed, 390 insertions(+), 358 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-05-23 21:46:32 UTC (rev 91565)
+++ community-i686/PKGBUILD	2013-05-23 21:46:56 UTC (rev 91566)
@@ -1,102 +0,0 @@
-# $Id$
-# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Antonio Rojas < nqn1976 @ gmail.com >
-# Contributor: Thomas Dziedzic < gostrc at gmail >
-# Contributor: Osman Ugus <ugus11 at yahoo.com>
-# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
-# Special thanks to Nareto for moving the compile from the .install to the PKGBUILD
-
-pkgname=sage-mathematics
-pkgver=5.8
-pkgrel=1
-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=('xz' 'java-environment=7' 'desktop-file-utils' 'libxmu' 'libtiff' 'sqlite' 'libjpeg-turbo')
-depends=('desktop-file-utils')
-makedepends=('gcc-fortran' )
-optdepends=('imagemagick: some plotting functionality benefits from it'
-            'texlive-core: some plotting functionality benefits from it, also to use SageTeX'
-            'openssh: to use the notebook in secure mode'
-            'ffmpeg: to show animations')
-options=('!makeflags')
-install="${pkgname}.install"
-source=("http://sage.math.washington.edu/home/release/sage-${pkgver}/sage-${pkgver}.tar"
-        'SAGE-notebook.desktop')
-md5sums=('fc5b401174ee1efa7aea163e804c2b42'
-         'b82f94383829eee26648feb977e2d89b')
-
-build() {
-  cd sage-${pkgver}
-
-  # fix "missing sage.all error" during build
-  unset CFLAGS
-  unset CXXFLAGS
-
-  # fix build errors
-  unset LDFLAGS
-
-  # 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}"
-
-  # use archlinux's fortran rather then the one that ships with sage to compile sage's fortran
-  export FC=/usr/bin/gfortran
-
-  # disable building with debugging support
-  export SAGE_DEBUG='no'
-
-  # enable fat binaries (disables processor specific optimizations)
-  # comment out if you're only building it for yourself
-  export SAGE_FAT_BINARY='yes'
-
-  # can't write to root in a clean chroot
-  export DOT_SAGE='/build/src/'
-
-  # only build sage, no documents
-  #make build
-  make
-  ./sage --bdist "$pkgver"
-}
-
-<< COMMENT
-check() {
-  cd sage-${pkgver}
-
-  # uncomment if we want to run all the tests (warning: very long)
-  #make ptestlong
-}
-COMMENT
-
-package() {
-  cd sage-${pkgver}
-
-  # cp because make install is experimental and will corrupt the install
-  install -d ${pkgdir}/opt/sage
-  cp -dpr --no-preserve=ownership dist/sage-"$pkgver-$CARCH-Linux/"* ${pkgdir}/opt/sage/
-
-  # move SageTeX files to more appropriate directory
-  install -d ${pkgdir}/usr/share
-  mv ${pkgdir}/opt/sage/local/share/texmf \
-    ${pkgdir}/usr/share
-
-  desktop-file-install ${srcdir}/SAGE-notebook.desktop \
-    --dir ${pkgdir}/usr/share/applications 
-
-  # create link to main binary
-  install -d ${pkgdir}/usr/bin
-  ln -s /opt/sage/sage ${pkgdir}/usr/bin/sage
-
-  # remove build logs
-  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)
-  rm -f ${pkgdir}/opt/sage/spkg/base/*spkg
-  rm -f ${pkgdir}/opt/sage/spkg/standard/*spkg
-}
-
-# vim :set ts=2 sw=2 et:
-md5sums=('b91d6c20798f396a9c875527c78b3587'
-         'b82f94383829eee26648feb977e2d89b')

Copied: sage-mathematics/repos/community-i686/PKGBUILD (from rev 91565, sage-mathematics/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,108 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Antonio Rojas < nqn1976 @ gmail.com >
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Osman Ugus <ugus11 at yahoo.com>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Special thanks to Nareto for moving the compile from the .install to the PKGBUILD
+
+pkgname=sage-mathematics
+pkgver=5.9
+pkgrel=1
+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=('xz' 'java-environment=7' 'desktop-file-utils' 'libxmu' 'libtiff' 'sqlite' 'libjpeg-turbo')
+depends=('desktop-file-utils')
+makedepends=('gcc-fortran' 'freetype2')
+optdepends=('imagemagick: some plotting functionality benefits from it'
+            'texlive-core: some plotting functionality benefits from it, also to use SageTeX'
+            'openssh: to use the notebook in secure mode'
+            'ffmpeg: to show animations'
+            'cairo: R plots')
+install="${pkgname}.install"
+source=("http://sage.math.washington.edu/home/release/sage-${pkgver}/sage-${pkgver}.tar"
+        'SAGE-notebook.desktop'
+        'sage.service')
+
+build() {
+  cd sage-${pkgver}
+
+  # fix "missing sage.all error" during build
+  unset CFLAGS
+  unset CXXFLAGS
+
+  # fix build errors
+  unset LDFLAGS
+
+  # enable multiple threads while building, is this really needed? check if uses MAKEFLAGS
+  export MAKE="make -j$(nproc)"
+
+  # use archlinux's fortran rather then the one that ships with sage to compile sage's fortran
+  export FC=/usr/bin/gfortran
+
+  # disable building with debugging support
+  export SAGE_DEBUG='no'
+
+  # enable fat binaries (disables processor specific optimizations)
+  # comment out if you're only building it for yourself
+  export SAGE_FAT_BINARY='yes'
+
+  # can't write to root in a clean chroot
+  mkdir "$srcdir/buiild"
+  export DOT_SAGE="$srcdir/build"
+
+  # Singular is broken
+  export CPP='/usr/bin/cpp'
+
+  # only build sage, no documents
+  #make build
+  make
+  ./sage --bdist "$pkgver"
+}
+
+<< COMMENT
+check() {
+  cd sage-${pkgver}
+
+  # uncomment if we want to run all the tests (warning: very long)
+  #make ptestlong
+}
+COMMENT
+
+package() {
+  cd sage-${pkgver}
+
+  # cp because make install is experimental and will corrupt the install
+  install -d ${pkgdir}/opt/sage
+  cp -dpr --no-preserve=ownership dist/sage-"$pkgver-$CARCH-Linux/"* ${pkgdir}/opt/sage/
+
+  # move SageTeX files to more appropriate directory
+  install -d ${pkgdir}/usr/share
+  mv ${pkgdir}/opt/sage/local/share/texmf \
+    ${pkgdir}/usr/share
+
+  desktop-file-install ${srcdir}/SAGE-notebook.desktop \
+    --dir ${pkgdir}/usr/share/applications 
+
+  # create link to main binary
+  install -d ${pkgdir}/usr/bin
+  ln -s /opt/sage/sage ${pkgdir}/usr/bin/sage
+
+  # remove build logs
+  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)
+  rm -f ${pkgdir}/opt/sage/spkg/base/*spkg
+  rm -f ${pkgdir}/opt/sage/spkg/standard/*spkg
+
+  # install a systemd user unit
+  install -Dm755 $srcdir/sage.service $pkgdir/usr/lib/systemd/user/sage.service
+}
+
+# vim :set ts=2 sw=2 et:
+md5sums=('708520904f2d42039c714ac72a631948'
+         'b82f94383829eee26648feb977e2d89b'
+         '985da1c1d1dcdc3ea9aa73035cb7996b')

Deleted: community-i686/SAGE-notebook.desktop
===================================================================
--- community-i686/SAGE-notebook.desktop	2013-05-23 21:46:32 UTC (rev 91565)
+++ community-i686/SAGE-notebook.desktop	2013-05-23 21:46:56 UTC (rev 91566)
@@ -1,19 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Name=SAGE
-Comment=SAGE NOTEBOOK
-Comment[en_US]=SAGE NOTEBOOK
-Exec=/opt/sage/sage -notebook
-GenericName=
-GenericName[de]=
-Icon=/opt/sage/devel/ext-main/notebook/images/sageicon.png
-MimeType=
-Name[de]=SAGE
-StartupNotify=true
-Terminal=true
-Type=Application
-Categories=Science;Math;
-X-DCOP-ServiceType=
-X-KDE-SubstituteUID=false
-X-KDE-Username=
-GenericName[en_US]=

Copied: sage-mathematics/repos/community-i686/SAGE-notebook.desktop (from rev 91565, sage-mathematics/trunk/SAGE-notebook.desktop)
===================================================================
--- community-i686/SAGE-notebook.desktop	                        (rev 0)
+++ community-i686/SAGE-notebook.desktop	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Version=1.0
+Name=SAGE
+Comment=SAGE NOTEBOOK
+Comment[en_US]=SAGE NOTEBOOK
+Exec=/opt/sage/sage -notebook
+GenericName=
+GenericName[de]=
+Icon=/opt/sage/devel/ext-main/notebook/images/sageicon.png
+MimeType=
+Name[de]=SAGE
+StartupNotify=true
+Terminal=true
+Type=Application
+Categories=Science;Math;
+X-DCOP-ServiceType=
+X-KDE-SubstituteUID=false
+X-KDE-Username=
+GenericName[en_US]=

Deleted: community-i686/sage-mathematics.install
===================================================================
--- community-i686/sage-mathematics.install	2013-05-23 21:46:32 UTC (rev 91565)
+++ community-i686/sage-mathematics.install	2013-05-23 21:46:56 UTC (rev 91566)
@@ -1,58 +0,0 @@
-post_install() {
-  cd /opt/sage
-  update-desktop-database -q
-
-  # set HOME because when sage updates its sage_root (after being moved) it will write files to ~/.sage with root ownership
-  # the files it writes to ~/.sage can be safely ignored
-  HOME=/tmp ./sage -c
-
-  # add sagemath user for the daemon
-  useradd -r -c 'Sage daemon' -d /opt/sage -s /bin/false sagemath
-
-  # Update LaTeX db to point to SageTeX
-  if [ -f /usr/bin/texhash ]; then
-    /usr/bin/texhash /usr/share/texmf
-  else
-    echo 'Warning: could not find /usr/bin/texhash'
-    echo 'SageTeX has been installed but you need to run:'
-    echo '# texhash /usr/share/texmf'
-    echo 'So that LaTeX will be able to find it.'
-  fi
-
-echo '
- ___                       
-/ (_)        o            |
-\__   _  _      __        |
-/    / |/ |  | /  \_|   | |
-\___/  |  |_/|/\__/  \_/|/o
-            /|         /|  
-            \|         \|  
- ________________________________ 
-< sage-mathematics, I mean, MOO! >
- -------------------------------- 
-        \   ^__^
-         \  (oo)\_______
-            (__)\       )\/\
-                ||----w |
-                ||     ||
-'
-
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  # Update LaTeX db to remove SageTeX entries
-  update-desktop-database -q
-  if [ -f /usr/bin/texhash ]; then
-    /usr/bin/texhash /usr/share/texmf
-  fi
-
-  # remove the sagemath daemon user
-  userdel sagemath
-
-  # clean up left overs
-  rm -rf /opt/sage
-}

Copied: sage-mathematics/repos/community-i686/sage-mathematics.install (from rev 91565, sage-mathematics/trunk/sage-mathematics.install)
===================================================================
--- community-i686/sage-mathematics.install	                        (rev 0)
+++ community-i686/sage-mathematics.install	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,60 @@
+post_install() {
+  cd /opt/sage
+  update-desktop-database -q
+
+  # set HOME because when sage updates its sage_root (after being moved) it will write files to ~/.sage with root ownership
+  # the files it writes to ~/.sage can be safely ignored
+  HOME=/tmp ./sage -c
+
+  # add sagemath user for the daemon
+  useradd -r -c 'Sage daemon' -d /opt/sage -s /bin/false sagemath
+
+  # Update LaTeX db to point to SageTeX
+  if [ -f /usr/bin/texhash ]; then
+    /usr/bin/texhash /usr/share/texmf
+  else
+    echo 'Warning: could not find /usr/bin/texhash'
+    echo 'SageTeX has been installed but you need to run:'
+    echo '# texhash /usr/share/texmf'
+    echo 'So that LaTeX will be able to find it.'
+  fi
+
+echo '
+ ___                       
+/ (_)        o            |
+\__   _  _      __        |
+/    / |/ |  | /  \_|   | |
+\___/  |  |_/|/\__/  \_/|/o
+            /|         /|  
+            \|         \|  
+ ________________________________ 
+< sage-mathematics, I mean, MOO! >
+ -------------------------------- 
+        \   ^__^
+         \  (oo)\_______
+            (__)\       )\/\
+                ||----w |
+                ||     ||
+'
+
+}
+
+post_upgrade() {
+  post_install $1
+  echo "There is now a user session unit included to run a sage notebook as your user."
+  echo "The wiki includes a guide on starting systemd user sessions"
+}
+
+post_remove() {
+  # Update LaTeX db to remove SageTeX entries
+  update-desktop-database -q
+  if [ -f /usr/bin/texhash ]; then
+    /usr/bin/texhash /usr/share/texmf
+  fi
+
+  # remove the sagemath daemon user
+  userdel sagemath
+
+  # clean up left overs
+  rm -rf /opt/sage
+}

Copied: sage-mathematics/repos/community-i686/sage.service (from rev 91565, sage-mathematics/trunk/sage.service)
===================================================================
--- community-i686/sage.service	                        (rev 0)
+++ community-i686/sage.service	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,8 @@
+[Unit]
+Description=A free open-source mathematics software system
+
+[Service]
+ExecStart=/opt/sage/sage -n
+
+[Install]
+WantedBy=default.target

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-05-23 21:46:32 UTC (rev 91565)
+++ community-x86_64/PKGBUILD	2013-05-23 21:46:56 UTC (rev 91566)
@@ -1,102 +0,0 @@
-# $Id$
-# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Antonio Rojas < nqn1976 @ gmail.com >
-# Contributor: Thomas Dziedzic < gostrc at gmail >
-# Contributor: Osman Ugus <ugus11 at yahoo.com>
-# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
-# Special thanks to Nareto for moving the compile from the .install to the PKGBUILD
-
-pkgname=sage-mathematics
-pkgver=5.8
-pkgrel=1
-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=('xz' 'java-environment=7' 'desktop-file-utils' 'libxmu' 'libtiff' 'sqlite' 'libjpeg-turbo')
-depends=('desktop-file-utils')
-makedepends=('gcc-fortran' )
-optdepends=('imagemagick: some plotting functionality benefits from it'
-            'texlive-core: some plotting functionality benefits from it, also to use SageTeX'
-            'openssh: to use the notebook in secure mode'
-            'ffmpeg: to show animations')
-options=('!makeflags')
-install="${pkgname}.install"
-source=("http://sage.math.washington.edu/home/release/sage-${pkgver}/sage-${pkgver}.tar"
-        'SAGE-notebook.desktop')
-md5sums=('fc5b401174ee1efa7aea163e804c2b42'
-         'b82f94383829eee26648feb977e2d89b')
-
-build() {
-  cd sage-${pkgver}
-
-  # fix "missing sage.all error" during build
-  unset CFLAGS
-  unset CXXFLAGS
-
-  # fix build errors
-  unset LDFLAGS
-
-  # 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}"
-
-  # use archlinux's fortran rather then the one that ships with sage to compile sage's fortran
-  export FC=/usr/bin/gfortran
-
-  # disable building with debugging support
-  export SAGE_DEBUG='no'
-
-  # enable fat binaries (disables processor specific optimizations)
-  # comment out if you're only building it for yourself
-  export SAGE_FAT_BINARY='yes'
-
-  # can't write to root in a clean chroot
-  export DOT_SAGE='/build/src/'
-
-  # only build sage, no documents
-  #make build
-  make
-  ./sage --bdist "$pkgver"
-}
-
-<< COMMENT
-check() {
-  cd sage-${pkgver}
-
-  # uncomment if we want to run all the tests (warning: very long)
-  #make ptestlong
-}
-COMMENT
-
-package() {
-  cd sage-${pkgver}
-
-  # cp because make install is experimental and will corrupt the install
-  install -d ${pkgdir}/opt/sage
-  cp -dpr --no-preserve=ownership dist/sage-"$pkgver-$CARCH-Linux/"* ${pkgdir}/opt/sage/
-
-  # move SageTeX files to more appropriate directory
-  install -d ${pkgdir}/usr/share
-  mv ${pkgdir}/opt/sage/local/share/texmf \
-    ${pkgdir}/usr/share
-
-  desktop-file-install ${srcdir}/SAGE-notebook.desktop \
-    --dir ${pkgdir}/usr/share/applications 
-
-  # create link to main binary
-  install -d ${pkgdir}/usr/bin
-  ln -s /opt/sage/sage ${pkgdir}/usr/bin/sage
-
-  # remove build logs
-  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)
-  rm -f ${pkgdir}/opt/sage/spkg/base/*spkg
-  rm -f ${pkgdir}/opt/sage/spkg/standard/*spkg
-}
-
-# vim :set ts=2 sw=2 et:
-md5sums=('b91d6c20798f396a9c875527c78b3587'
-         'b82f94383829eee26648feb977e2d89b')

Copied: sage-mathematics/repos/community-x86_64/PKGBUILD (from rev 91565, sage-mathematics/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,108 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Antonio Rojas < nqn1976 @ gmail.com >
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Osman Ugus <ugus11 at yahoo.com>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Special thanks to Nareto for moving the compile from the .install to the PKGBUILD
+
+pkgname=sage-mathematics
+pkgver=5.9
+pkgrel=1
+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=('xz' 'java-environment=7' 'desktop-file-utils' 'libxmu' 'libtiff' 'sqlite' 'libjpeg-turbo')
+depends=('desktop-file-utils')
+makedepends=('gcc-fortran' 'freetype2')
+optdepends=('imagemagick: some plotting functionality benefits from it'
+            'texlive-core: some plotting functionality benefits from it, also to use SageTeX'
+            'openssh: to use the notebook in secure mode'
+            'ffmpeg: to show animations'
+            'cairo: R plots')
+install="${pkgname}.install"
+source=("http://sage.math.washington.edu/home/release/sage-${pkgver}/sage-${pkgver}.tar"
+        'SAGE-notebook.desktop'
+        'sage.service')
+
+build() {
+  cd sage-${pkgver}
+
+  # fix "missing sage.all error" during build
+  unset CFLAGS
+  unset CXXFLAGS
+
+  # fix build errors
+  unset LDFLAGS
+
+  # enable multiple threads while building, is this really needed? check if uses MAKEFLAGS
+  export MAKE="make -j$(nproc)"
+
+  # use archlinux's fortran rather then the one that ships with sage to compile sage's fortran
+  export FC=/usr/bin/gfortran
+
+  # disable building with debugging support
+  export SAGE_DEBUG='no'
+
+  # enable fat binaries (disables processor specific optimizations)
+  # comment out if you're only building it for yourself
+  export SAGE_FAT_BINARY='yes'
+
+  # can't write to root in a clean chroot
+  mkdir "$srcdir/buiild"
+  export DOT_SAGE="$srcdir/build"
+
+  # Singular is broken
+  export CPP='/usr/bin/cpp'
+
+  # only build sage, no documents
+  #make build
+  make
+  ./sage --bdist "$pkgver"
+}
+
+<< COMMENT
+check() {
+  cd sage-${pkgver}
+
+  # uncomment if we want to run all the tests (warning: very long)
+  #make ptestlong
+}
+COMMENT
+
+package() {
+  cd sage-${pkgver}
+
+  # cp because make install is experimental and will corrupt the install
+  install -d ${pkgdir}/opt/sage
+  cp -dpr --no-preserve=ownership dist/sage-"$pkgver-$CARCH-Linux/"* ${pkgdir}/opt/sage/
+
+  # move SageTeX files to more appropriate directory
+  install -d ${pkgdir}/usr/share
+  mv ${pkgdir}/opt/sage/local/share/texmf \
+    ${pkgdir}/usr/share
+
+  desktop-file-install ${srcdir}/SAGE-notebook.desktop \
+    --dir ${pkgdir}/usr/share/applications 
+
+  # create link to main binary
+  install -d ${pkgdir}/usr/bin
+  ln -s /opt/sage/sage ${pkgdir}/usr/bin/sage
+
+  # remove build logs
+  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)
+  rm -f ${pkgdir}/opt/sage/spkg/base/*spkg
+  rm -f ${pkgdir}/opt/sage/spkg/standard/*spkg
+
+  # install a systemd user unit
+  install -Dm755 $srcdir/sage.service $pkgdir/usr/lib/systemd/user/sage.service
+}
+
+# vim :set ts=2 sw=2 et:
+md5sums=('708520904f2d42039c714ac72a631948'
+         'b82f94383829eee26648feb977e2d89b'
+         '985da1c1d1dcdc3ea9aa73035cb7996b')

Deleted: community-x86_64/SAGE-notebook.desktop
===================================================================
--- community-x86_64/SAGE-notebook.desktop	2013-05-23 21:46:32 UTC (rev 91565)
+++ community-x86_64/SAGE-notebook.desktop	2013-05-23 21:46:56 UTC (rev 91566)
@@ -1,19 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Name=SAGE
-Comment=SAGE NOTEBOOK
-Comment[en_US]=SAGE NOTEBOOK
-Exec=/opt/sage/sage -notebook
-GenericName=
-GenericName[de]=
-Icon=/opt/sage/devel/ext-main/notebook/images/sageicon.png
-MimeType=
-Name[de]=SAGE
-StartupNotify=true
-Terminal=true
-Type=Application
-Categories=Science;Math;
-X-DCOP-ServiceType=
-X-KDE-SubstituteUID=false
-X-KDE-Username=
-GenericName[en_US]=

Copied: sage-mathematics/repos/community-x86_64/SAGE-notebook.desktop (from rev 91565, sage-mathematics/trunk/SAGE-notebook.desktop)
===================================================================
--- community-x86_64/SAGE-notebook.desktop	                        (rev 0)
+++ community-x86_64/SAGE-notebook.desktop	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Version=1.0
+Name=SAGE
+Comment=SAGE NOTEBOOK
+Comment[en_US]=SAGE NOTEBOOK
+Exec=/opt/sage/sage -notebook
+GenericName=
+GenericName[de]=
+Icon=/opt/sage/devel/ext-main/notebook/images/sageicon.png
+MimeType=
+Name[de]=SAGE
+StartupNotify=true
+Terminal=true
+Type=Application
+Categories=Science;Math;
+X-DCOP-ServiceType=
+X-KDE-SubstituteUID=false
+X-KDE-Username=
+GenericName[en_US]=

Deleted: community-x86_64/sage-mathematics.install
===================================================================
--- community-x86_64/sage-mathematics.install	2013-05-23 21:46:32 UTC (rev 91565)
+++ community-x86_64/sage-mathematics.install	2013-05-23 21:46:56 UTC (rev 91566)
@@ -1,58 +0,0 @@
-post_install() {
-  cd /opt/sage
-  update-desktop-database -q
-
-  # set HOME because when sage updates its sage_root (after being moved) it will write files to ~/.sage with root ownership
-  # the files it writes to ~/.sage can be safely ignored
-  HOME=/tmp ./sage -c
-
-  # add sagemath user for the daemon
-  useradd -r -c 'Sage daemon' -d /opt/sage -s /bin/false sagemath
-
-  # Update LaTeX db to point to SageTeX
-  if [ -f /usr/bin/texhash ]; then
-    /usr/bin/texhash /usr/share/texmf
-  else
-    echo 'Warning: could not find /usr/bin/texhash'
-    echo 'SageTeX has been installed but you need to run:'
-    echo '# texhash /usr/share/texmf'
-    echo 'So that LaTeX will be able to find it.'
-  fi
-
-echo '
- ___                       
-/ (_)        o            |
-\__   _  _      __        |
-/    / |/ |  | /  \_|   | |
-\___/  |  |_/|/\__/  \_/|/o
-            /|         /|  
-            \|         \|  
- ________________________________ 
-< sage-mathematics, I mean, MOO! >
- -------------------------------- 
-        \   ^__^
-         \  (oo)\_______
-            (__)\       )\/\
-                ||----w |
-                ||     ||
-'
-
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  # Update LaTeX db to remove SageTeX entries
-  update-desktop-database -q
-  if [ -f /usr/bin/texhash ]; then
-    /usr/bin/texhash /usr/share/texmf
-  fi
-
-  # remove the sagemath daemon user
-  userdel sagemath
-
-  # clean up left overs
-  rm -rf /opt/sage
-}

Copied: sage-mathematics/repos/community-x86_64/sage-mathematics.install (from rev 91565, sage-mathematics/trunk/sage-mathematics.install)
===================================================================
--- community-x86_64/sage-mathematics.install	                        (rev 0)
+++ community-x86_64/sage-mathematics.install	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,60 @@
+post_install() {
+  cd /opt/sage
+  update-desktop-database -q
+
+  # set HOME because when sage updates its sage_root (after being moved) it will write files to ~/.sage with root ownership
+  # the files it writes to ~/.sage can be safely ignored
+  HOME=/tmp ./sage -c
+
+  # add sagemath user for the daemon
+  useradd -r -c 'Sage daemon' -d /opt/sage -s /bin/false sagemath
+
+  # Update LaTeX db to point to SageTeX
+  if [ -f /usr/bin/texhash ]; then
+    /usr/bin/texhash /usr/share/texmf
+  else
+    echo 'Warning: could not find /usr/bin/texhash'
+    echo 'SageTeX has been installed but you need to run:'
+    echo '# texhash /usr/share/texmf'
+    echo 'So that LaTeX will be able to find it.'
+  fi
+
+echo '
+ ___                       
+/ (_)        o            |
+\__   _  _      __        |
+/    / |/ |  | /  \_|   | |
+\___/  |  |_/|/\__/  \_/|/o
+            /|         /|  
+            \|         \|  
+ ________________________________ 
+< sage-mathematics, I mean, MOO! >
+ -------------------------------- 
+        \   ^__^
+         \  (oo)\_______
+            (__)\       )\/\
+                ||----w |
+                ||     ||
+'
+
+}
+
+post_upgrade() {
+  post_install $1
+  echo "There is now a user session unit included to run a sage notebook as your user."
+  echo "The wiki includes a guide on starting systemd user sessions"
+}
+
+post_remove() {
+  # Update LaTeX db to remove SageTeX entries
+  update-desktop-database -q
+  if [ -f /usr/bin/texhash ]; then
+    /usr/bin/texhash /usr/share/texmf
+  fi
+
+  # remove the sagemath daemon user
+  userdel sagemath
+
+  # clean up left overs
+  rm -rf /opt/sage
+}

Copied: sage-mathematics/repos/community-x86_64/sage.service (from rev 91565, sage-mathematics/trunk/sage.service)
===================================================================
--- community-x86_64/sage.service	                        (rev 0)
+++ community-x86_64/sage.service	2013-05-23 21:46:56 UTC (rev 91566)
@@ -0,0 +1,8 @@
+[Unit]
+Description=A free open-source mathematics software system
+
+[Service]
+ExecStart=/opt/sage/sage -n
+
+[Install]
+WantedBy=default.target




More information about the arch-commits mailing list