[arch-commits] Commit in sagetex (4 files)
Antonio Rojas
arojas at archlinux.org
Tue Dec 23 23:32:58 UTC 2014
Date: Wednesday, December 24, 2014 @ 00:32:57
Author: arojas
Revision: 124492
archrelease: copy trunk to community-testing-any
Added:
sagetex/repos/
sagetex/repos/community-testing-any/
sagetex/repos/community-testing-any/PKGBUILD
(from rev 124491, sagetex/trunk/PKGBUILD)
sagetex/repos/community-testing-any/sagetex.install
(from rev 124491, sagetex/trunk/sagetex.install)
-----------------+
PKGBUILD | 27 +++++++++++++++++++++++++++
sagetex.install | 17 +++++++++++++++++
2 files changed, 44 insertions(+)
Copied: sagetex/repos/community-testing-any/PKGBUILD (from rev 124491, sagetex/trunk/PKGBUILD)
===================================================================
--- repos/community-testing-any/PKGBUILD (rev 0)
+++ repos/community-testing-any/PKGBUILD 2014-12-23 23:32:57 UTC (rev 124492)
@@ -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-testing-any/sagetex.install (from rev 124491, sagetex/trunk/sagetex.install)
===================================================================
--- repos/community-testing-any/sagetex.install (rev 0)
+++ repos/community-testing-any/sagetex.install 2014-12-23 23:32:57 UTC (rev 124492)
@@ -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