summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2011-06-04 21:03:14 +0000
committerAndrey Grozin <grozin@gentoo.org>2011-06-04 21:03:14 +0000
commitfad465c27a8af2b75d386e682fa8aec260a84886 (patch)
treea1ebc6b7164bc35f5662b1a69ff8aeafdc37f5b5 /sci-mathematics
parentmask net-mail/gml for removal (diff)
downloadgentoo-2-fad465c27a8af2b75d386e682fa8aec260a84886.tar.gz
gentoo-2-fad465c27a8af2b75d386e682fa8aec260a84886.tar.bz2
gentoo-2-fad465c27a8af2b75d386e682fa8aec260a84886.zip
With USE=ecls, build and install also the ecl library. Also, get rid of maintainer mode (again). Thanks to Francois Bissey <fbissey@slingshot.co.nz>
(Portage version: 2.2.0_alpha37/cvs/Linux i686)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/maxima/ChangeLog9
-rw-r--r--sci-mathematics/maxima/maxima-5.24.0-r1.ebuild (renamed from sci-mathematics/maxima/maxima-5.24.0.ebuild)18
2 files changed, 25 insertions, 2 deletions
diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog
index 9739048980ee..7d38a3c50f6b 100644
--- a/sci-mathematics/maxima/ChangeLog
+++ b/sci-mathematics/maxima/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-mathematics/maxima
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.87 2011/04/28 19:25:46 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.88 2011/06/04 21:03:14 grozin Exp $
+
+*maxima-5.24.0-r1 (04 Jun 2011)
+
+ 04 Jun 2011; Andrey Grozin <grozin@gentoo.org> -maxima-5.24.0.ebuild,
+ +maxima-5.24.0-r1.ebuild:
+ With USE=ecls, build and install also the ecl library. Also, get rid of
+ maintainer mode (again). Thanks to Francois Bissey <fbissey@slingshot.co.nz>
*maxima-5.24.0 (29 Apr 2011)
diff --git a/sci-mathematics/maxima/maxima-5.24.0.ebuild b/sci-mathematics/maxima/maxima-5.24.0-r1.ebuild
index 78ced3cfad6f..b924095bcfd7 100644
--- a/sci-mathematics/maxima/maxima-5.24.0.ebuild
+++ b/sci-mathematics/maxima/maxima-5.24.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.24.0.ebuild,v 1.1 2011/04/28 19:25:46 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.24.0-r1.ebuild,v 1.1 2011/06/04 21:03:14 grozin Exp $
EAPI=3
@@ -116,6 +116,7 @@ src_prepare() {
# bug #343331
rm share/Makefile.in || die
+ rm src/Makefile.in || die
eautoreconf
}
@@ -164,6 +165,21 @@ src_install() {
if use emacs; then
elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el || die
fi
+
+ # if we use ecls, build an ecls library for maxima
+ if use ecls; then
+ cd src
+ mkdir ./lisp-cache
+ ecl \
+ -eval '(require `asdf)' \
+ -eval '(setf asdf::*user-cache* (truename "./lisp-cache"))' \
+ -eval '(load "maxima-build.lisp")' \
+ -eval '(asdf:make-build :maxima :type :fasl :move-here ".")' \
+ -eval '(quit)'
+ ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"`
+ insinto "${ECLLIB#${EPREFIX}}"
+ newins maxima.fasb maxima.fas
+ fi
}
pkg_preinst() {