[arch-commits] Commit in sagetex/repos (4 files)

Antonio Rojas arojas at archlinux.org
Mon Jan 5 21:14:39 UTC 2015


    Date: Monday, January 5, 2015 @ 22:14:39
  Author: arojas
Revision: 125453

db-move: moved sagetex from [community-testing] to [community] (any)

Added:
  sagetex/repos/community-any/
  sagetex/repos/community-any/PKGBUILD
    (from rev 125452, sagetex/repos/community-testing-any/PKGBUILD)
  sagetex/repos/community-any/sagetex.install
    (from rev 125452, sagetex/repos/community-testing-any/sagetex.install)
Deleted:
  sagetex/repos/community-testing-any/

-----------------+
 PKGBUILD        |   27 +++++++++++++++++++++++++++
 sagetex.install |   17 +++++++++++++++++
 2 files changed, 44 insertions(+)

Copied: sagetex/repos/community-any/PKGBUILD (from rev 125452, sagetex/repos/community-testing-any/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-01-05 21:14:39 UTC (rev 125453)
@@ -0,0 +1,27 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=sagetex
+pkgver=2.3.4
+pkgrel=1
+pkgdesc='Allows to embed code, results of computations, and plots from Sage into LaTeX documents'
+arch=('any')
+url='http://www.sagemath.org'
+license=('GPL2')
+depends=('sage-mathematics' 'texlive-core')
+makedepends=('python2')
+source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2")
+install=$pkgname.install
+md5sums=('55d2293116a391631daaf7847e618646')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+# use python2
+  find -name '*.py' | xargs sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  python2 setup.py install --root "$pkgdir" --optimize=1
+}

Copied: sagetex/repos/community-any/sagetex.install (from rev 125452, sagetex/repos/community-testing-any/sagetex.install)
===================================================================
--- community-any/sagetex.install	                        (rev 0)
+++ community-any/sagetex.install	2015-01-05 21:14:39 UTC (rev 125453)
@@ -0,0 +1,17 @@
+post_install() {
+  # 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
+}
+
+post_remove() {
+  if [ -f /usr/bin/texhash ]; then
+    /usr/bin/texhash /usr/share/texmf
+  fi
+}
\ No newline at end of file



More information about the arch-commits mailing list