pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/37716: [patch] option to use sbcl in math/maxima
>Number: 37716
>Category: pkg
>Synopsis: [patch] option to use sbcl in math/maxima
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jan 08 02:30:00 +0000 2008
>Originator: Aleksej Saushev <asau%inbox.ru@localhost>
>Release: NetBSD 4.99.48
>Organization:
>Environment:
System: NetBSD asau.local 4.99.48 NetBSD 4.99.48 (KERN) #0: Mon Jan 7 04:25:27
MSK 2008 asau%asau.local@localhost:/usr/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
Currently, Maxima is built using slow cross-platform CLISP (lang/clisp),
it is possible to use faster SBCL. I propose supporting CLISP as
default backend, with an option to use SBCL.
>How-To-Repeat:
Inspection.
>Fix:
--- /dev/null 2008-01-07 22:56:35.000000000 +0300
+++ options.mk 2008-01-07 22:26:55.000000000 +0300
@@ -0,0 +1,29 @@
+PKG_OPTIONS_VAR= PKG_OPTIONS.maxima
+PKG_OPTIONS_OPTIONAL_GROUPS= lisp
+PKG_OPTIONS_GROUP.lisp= clisp sbcl
+
+PKG_DEFAULT_OPTIONS= clisp
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+
+.if empty(PKG_OPTIONS:Mclisp) && empty(PKG_OPTIONS:Msbcl)
+PKG_OPTIONS+= clisp
+.endif
+
+# Select Lisp backend
+.if !empty(PKG_OPTIONS:Mclisp)
+CONFIGURE_ARGS+= --enable-clisp
+.endif
+.if !empty(PKG_OPTIONS:Msbcl)
+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
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/math/maxima/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile 4 Jan 2008 18:49:14 -0000 1.16
+++ Makefile 7 Jan 2008 20:02:44 -0000
@@ -18,11 +18,12 @@
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"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/math/maxima/PLIST,v
retrieving revision 1.8
diff -u -r1.8 PLIST
--- PLIST 3 Jan 2008 20:13:26 -0000 1.8
+++ PLIST 7 Jan 2008 20:02:44 -0000
@@ -5,8 +5,9 @@
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/create_graph.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/cgraphs.mac
+share/maxima/${PKGVERSION}/share/contrib/graphs/create_graph.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
Home |
Main Index |
Thread Index |
Old Index