[arch-commits] Commit in texmacs/trunk (PKGBUILD)
Rémy Oudompheng
remy at archlinux.org
Sun Sep 26 07:27:57 UTC 2010
Date: Sunday, September 26, 2010 @ 03:27:56
Author: remy
Revision: 91284
upgpkg: texmacs 1.0.7.3-3
Rebuild (change python to python2)
Modified:
texmacs/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-09-26 06:20:10 UTC (rev 91283)
+++ PKGBUILD 2010-09-26 07:27:56 UTC (rev 91284)
@@ -4,12 +4,12 @@
pkgname=texmacs
pkgver=1.0.7.3
-pkgrel=2
+pkgrel=3
pkgdesc="GNU TeXmacs is a free scientific text editor, which was both inspired by TeX and GNU Emacs. WYSIWYG editor TeX-fonts and CAS-interface (Giac, GTybalt, Macaulay 2, Maxima, Octave, Pari, Qcl, R and Yacas) in one."
arch=('i686' 'x86_64')
url="http://www.texmacs.org/"
license=('GPL')
-depends=('perl' 'guile' 'texlive-core' 'python' 'libxext' 'freetype2')
+depends=('perl' 'guile' 'texlive-core' 'python2' 'libxext' 'freetype2')
# do not remove texlive-core dependency, as it is needed!
optdepends=('transfig: convert images using fig2ps')
source=(ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-${pkgver}-src.tar.gz)
@@ -17,13 +17,20 @@
build() {
cd ${srcdir}/TeXmacs-${pkgver}-src
+ sed -i 's/env python/env python2/' \
+ plugins/{mathematica/bin/realpath.py,python/bin/tm_python,sage/bin/tm_sage}
+ sed -i 's/"python"/"python2"/' plugins/python/progs/init-python.scm
sed -i '/^LDPATH/d' src/makefile.in
./configure --prefix=/usr \
--mandir=/usr/share/man \
--libexecdir=/usr/lib
- make || return 1
- make DESTDIR=${pkgdir} install || return 1
+ make
+}
+package() {
+ cd ${srcdir}/TeXmacs-${pkgver}-src
+ make DESTDIR=${pkgdir} install
+
# fix fig2ps script
sed -i 's|${prefix}|/usr|' ${pkgdir}/usr/bin/fig2ps
}
More information about the arch-commits
mailing list