[arch-commits] Commit in (6 files)
Antonio Rojas
arojas at archlinux.org
Sat Dec 20 21:37:54 UTC 2014
Date: Saturday, December 20, 2014 @ 22:37:53
Author: arojas
Revision: 124221
Splitting sage-mathematics
Added:
maxima-ecl/
maxima-ecl/trunk/
maxima-ecl/trunk/PKGBUILD
maxima-ecl/trunk/build-fasl.patch
maxima-ecl/trunk/maxima.desktop
maxima-ecl/trunk/maxima.install
------------------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
build-fasl.patch | 23 ++++++++++++++++++
maxima.desktop | 11 ++++++++
maxima.install | 18 ++++++++++++++
4 files changed, 118 insertions(+)
Added: maxima-ecl/trunk/PKGBUILD
===================================================================
--- maxima-ecl/trunk/PKGBUILD (rev 0)
+++ maxima-ecl/trunk/PKGBUILD 2014-12-20 21:37:53 UTC (rev 124221)
@@ -0,0 +1,66 @@
+# $Id: PKGBUILD 150832 2012-02-23 12:01:17Z juergen $
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir at archlinux.org>
+# Modified to compile against ecl by: maribu
+
+pkgname=maxima-ecl
+_pkgname=maxima
+pkgver=5.35.1
+_eclver=13.5.1
+pkgrel=1
+pkgdesc="A sophisticated computer algebra system (compiled against ecl)"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://maxima.sourceforge.net"
+depends=("ecl=$_eclver" 'texinfo')
+makedepends=('python2')
+optdepends=('gnuplot: plotting capabilities' 'rlwrap: readline support via /usr/bin/rmaxima' 'tk: graphical xmaxima interface')
+conflicts=('maxima')
+provides=('maxima')
+options=('!zipman') # don't zip info pages or they won't work inside maxima
+install=maxima.install
+source=("http://downloads.sourceforge.net/sourceforge/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+ "${_pkgname}.desktop" 'build-fasl.patch')
+md5sums=('4bb0b999645ec2b20b7e301d36f83a4c'
+ '24aa81126fbb8b726854e5a80d4c2415'
+ 'eb33481ea06afb97743af06ff52c099b')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+# set correct python executable to create docs
+ sed -i "s|${PYTHONBIN:-python}|python2|" doc/info/extract_categories.sh
+
+# build maxima ecl library
+ patch -p1 -i ../build-fasl.patch
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ # set correct python executable to create docs
+ sed -i "s|${PYTHONBIN:-python}|python2|" doc/info/extract_categories.sh
+
+ ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \
+ --libexecdir=/usr/lib --enable-ecl --with-default-lisp=ecl
+ make -j1
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # install some freedesktop.org compatibility
+ install -Dm644 ${srcdir}/${_pkgname}.desktop \
+ $pkgdir/usr/share/applications/${_pkgname}.desktop
+
+ # make sure, we have a nice icon for the desktop file at the right place
+ install -d $pkgdir/usr/share/pixmaps/
+ ln -s /usr/share/maxima/${pkgver}/xmaxima/maxima-new.png \
+ $pkgdir/usr/share/pixmaps/${_pkgname}.png
+
+ _ecldir="/usr/lib/ecl-$_eclver"
+ mkdir -p "$pkgdir/$_ecldir"
+ install src/binary-ecl/maxima.fas "$pkgdir/$_ecldir"
+}
Added: maxima-ecl/trunk/build-fasl.patch
===================================================================
--- maxima-ecl/trunk/build-fasl.patch (rev 0)
+++ maxima-ecl/trunk/build-fasl.patch 2014-12-20 21:37:53 UTC (rev 124221)
@@ -0,0 +1,23 @@
+Build a fasl library for ecl in addition to an executable program.
+
+References:
+* http://trac.sagemath.org/ticket/16178
+* https://github.com/cschwan/sage-on-gentoo/issues/226
+* https://bugs.gentoo.org/show_bug.cgi?id=499634
+
+Index: maxima-5.29.1/src/maxima.system
+===================================================================
+--- maxima-5.29.1.orig/src/maxima.system
++++ maxima-5.29.1/src/maxima.system
+@@ -75,6 +75,11 @@
+ ;; Convert dir/foo.fas to dir/foo.o
+ (make-pathname :type "o" :defaults p))
+ files)))
++ (c::build-fasl "binary-ecl/maxima" :lisp-files obj
++ :ld-flags
++ (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
++ (find-package "MAXIMA")))))
++ (if (and x (not (string= x ""))) (list x))))
+ (c::build-program "binary-ecl/maxima" :lisp-files obj
+ :ld-flags
+ (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*"
Added: maxima-ecl/trunk/maxima.desktop
===================================================================
--- maxima-ecl/trunk/maxima.desktop (rev 0)
+++ maxima-ecl/trunk/maxima.desktop 2014-12-20 21:37:53 UTC (rev 124221)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=XMaxima
+GenericName=A computer algebra system
+GenericName[de]=Computeralgebra System
+GenericName[it]=algebra a livello avanzato
+Comment=A sophisticated computer algebra system
+Exec=xmaxima
+Icon=maxima
+Terminal=true
+Type=Application
+Categories=Science;Math;
Added: maxima-ecl/trunk/maxima.install
===================================================================
--- maxima-ecl/trunk/maxima.install (rev 0)
+++ maxima-ecl/trunk/maxima.install 2014-12-20 21:37:53 UTC (rev 124221)
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(imaxima.info maxima.info xmaxima.info)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
More information about the arch-commits
mailing list