pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/maxima Update math/maxima package to allow it to ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a64ef3d86813
branches: trunk
changeset: 538091:a64ef3d86813
user: reinoud <reinoud%pkgsrc.org@localhost>
date: Mon Jan 28 12:08:49 2008 +0000
description:
Update math/maxima package to allow it to choose between clisp and sbcl. No
version has been bumped as its default has not changed and sbcl is only
working in pkgsrc-wip.
diffstat:
math/maxima/Makefile | 7 ++++---
math/maxima/PLIST | 14 ++++++++------
math/maxima/options.mk | 28 ++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 9 deletions(-)
diffs (107 lines):
diff -r 528d82a841f1 -r a64ef3d86813 math/maxima/Makefile
--- a/math/maxima/Makefile Mon Jan 28 11:25:49 2008 +0000
+++ b/math/maxima/Makefile Mon Jan 28 12:08:49 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/01/04 18:49:14 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2008/01/28 12:08:49 reinoud Exp $
#
DISTNAME= maxima-5.14.0
@@ -12,17 +12,18 @@
HOMEPAGE= http://maxima.sourceforge.net/
COMMENT= Computer algebra system
-DEPENDS+= clisp-[0-9]*:../../lang/clisp
+# Note: lisp backend is depended and setup up for in options.mk
DEPENDS+= tk-[0-9]*:../../x11/tk
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --enable-clisp
USE_TOOLS+= perl
REPLACE_SH= doc/misc/grepforvariables.sh
INFO_FILES= yes
TEST_TARGET= check
+.include "options.mk"
+
.include "../../mk/bsd.pkg.mk"
diff -r 528d82a841f1 -r a64ef3d86813 math/maxima/PLIST
--- a/math/maxima/PLIST Mon Jan 28 11:25:49 2008 +0000
+++ b/math/maxima/PLIST Mon Jan 28 12:08:49 2008 +0000
@@ -1,12 +1,13 @@
-@comment $NetBSD: PLIST,v 1.8 2008/01/03 20:13:26 tonio Exp $
+@comment $NetBSD: PLIST,v 1.9 2008/01/28 12:08:49 reinoud Exp $
bin/maxima
bin/rmaxima
bin/xmaxima
info/maxima-index.lisp
info/maxima.info
info/xmaxima.info
-lib/maxima/${PKGVERSION}/binary-clisp/lisp.run
-lib/maxima/${PKGVERSION}/binary-clisp/maxima.mem
+${clisp}lib/maxima/${PKGVERSION}/binary-clisp/lisp.run
+${clisp}lib/maxima/${PKGVERSION}/binary-clisp/maxima.mem
+${sbcl}lib/maxima/${PKGVERSION}/binary-sbcl/maxima.core
libexec/maxima/${PKGVERSION}/mgnuplot
man/man1/maxima.1
share/maxima/${PKGVERSION}/demo/array.dem
@@ -481,13 +482,13 @@
share/maxima/${PKGVERSION}/share/contrib/gf/gf_roots_test.mac
share/maxima/${PKGVERSION}/share/contrib/ggf.mac
share/maxima/${PKGVERSION}/share/contrib/graph2d.lisp
+share/maxima/${PKGVERSION}/share/contrib/graphs/cgraphs.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/create_graph.mac
-share/maxima/${PKGVERSION}/share/contrib/graphs/cgraphs.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/demoucron.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/draw_graph.mac
+share/maxima/${PKGVERSION}/share/contrib/graphs/graph6.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/graph_core.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/graph_polynomials.mac
-share/maxima/${PKGVERSION}/share/contrib/graphs/graph6.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/graphio.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/graphs.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/graphs.system
@@ -1645,6 +1646,7 @@
@dirrm share/maxima
@dirrm libexec/maxima/${PKGVERSION}
@dirrm libexec/maxima
-@dirrm lib/maxima/${PKGVERSION}/binary-clisp
+${clisp}@dirrm lib/maxima/${PKGVERSION}/binary-clisp
+${sbcl}@dirrm lib/maxima/${PKGVERSION}/binary-sbcl
@dirrm lib/maxima/${PKGVERSION}
@dirrm lib/maxima
diff -r 528d82a841f1 -r a64ef3d86813 math/maxima/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/maxima/options.mk Mon Jan 28 12:08:49 2008 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1 2008/01/28 12:08:49 reinoud Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.maxima
+PKG_OPTIONS_REQUIRED_GROUPS= lisp
+PKG_OPTIONS_GROUP.lisp= clisp sbcl
+
+PKG_SUGGESTED_OPTIONS+= clisp
+
+.include "../../mk/bsd.options.mk"
+
+# Select Lisp backend
+.if !empty(PKG_OPTIONS:Mclisp)
+DEPENDS+= clisp-[0-9]*:../../lang/clisp
+CONFIGURE_ARGS+= --enable-clisp
+.endif
+.if !empty(PKG_OPTIONS:Msbcl)
+DEPENDS+= sbcl-[0-9]*:../../lang/sbcl
+CONFIGURE_ARGS+= --enable-sbcl
+.endif
+
+# Modify PLIST
+.for opt in clisp sbcl
+.if !empty(PKG_OPTIONS:M${opt})
+PLIST_SUBST+= ${opt}=""
+.else
+PLIST_SUBST+= ${opt}="@comment "
+.endif
+.endfor
Home |
Main Index |
Thread Index |
Old Index