pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/scilab Add dependency on lang/ocaml for those sys...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/937ab08d8584
branches:  trunk
changeset: 484798:937ab08d8584
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Mon Nov 29 22:05:08 2004 +0000

description:
Add dependency on lang/ocaml for those systems which ocamlopt is supported
on.

Addresses PR pkg/28410 by sutre at labri dot fr.  Some patches were supplied
in the PR, the PLIST fix is from me.

diffstat:

 math/scilab/Makefile         |  15 +++++++++++++--
 math/scilab/PLIST.opt        |  28 ++++++++++++++++++++++++++++
 math/scilab/distinfo         |   3 ++-
 math/scilab/patches/patch-ao |  28 ++++++++++++++++++++++++++++
 4 files changed, 71 insertions(+), 3 deletions(-)

diffs (118 lines):

diff -r 6585cb0caa28 -r 937ab08d8584 math/scilab/Makefile
--- a/math/scilab/Makefile      Mon Nov 29 21:18:59 2004 +0000
+++ b/math/scilab/Makefile      Mon Nov 29 22:05:08 2004 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.56 2004/10/03 00:12:57 tv Exp $
+# $NetBSD: Makefile,v 1.57 2004/11/29 22:05:08 dmcmahill Exp $
 #
 
 DISTNAME=      ${SCIBASE}.src
 PKGNAME=       ${SCIBASE}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    math
 MASTER_SITES=  ftp://ftp.inria.fr/INRIA/Scilab/distributions/
 
@@ -91,6 +91,7 @@
        ${RM} -f ${PREFIX}/lib/${SCIBASE}/macros/util/scipad.sci.orig
        ${RM} -f ${PREFIX}/lib/${SCIBASE}/libtool
        ${LN} -s ${LOCALBASE}/bin/libtool ${PREFIX}/lib/${SCIBASE}/libtool
+       ${RM} -f ${PREFIX}/lib/${SCIBASE}/config/*.subst.sav
 
 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
 GCC_REQD+=             2.95.3
@@ -106,6 +107,16 @@
                ${MAKE_ENV} ${MAKE_PROGRAM} tests 2>&1 | \
                ${TEE} ${WRKDIR}/examples.log
 
+# scilab wants ocamlopt so use the same list here as in the
+# lang/ocaml package
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+    (${MACHINE_ARCH} == "sparc")
+PLIST_SRC=     ${PKGDIR}/PLIST.opt ${PKGDIR}/PLIST
+.include "../../lang/ocaml/buildlink3.mk"
+.else
+PLIST_SRC=     ${PKGDIR}/PLIST
+CONFIGURE_ARGS+=       --without-ocaml
+.endif
 .include "../../parallel/pvm3/buildlink3.mk"
 .include "../../textproc/sablotron/buildlink3.mk"
 .include "../../x11/tk/buildlink3.mk"
diff -r 6585cb0caa28 -r 937ab08d8584 math/scilab/PLIST.opt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/scilab/PLIST.opt     Mon Nov 29 22:05:08 2004 +0000
@@ -0,0 +1,28 @@
+@comment $NetBSD: PLIST.opt,v 1.1 2004/11/29 22:05:08 dmcmahill Exp $
+lib/${PKGNAME}/bin/modelicac
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/Capacitor.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/ConstantVoltage.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/CurrentSensor.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/Diode.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/Ground.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/InPutPort.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/Inductor.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/NPN.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/OutPort.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/OutPutPort.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/Pin.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/PotentialSensor.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/Resistor.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/VVsourceAC.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/VariableResistor.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/VoltageSensor.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/VsourceAC.moc
+lib/${PKGNAME}/macros/scicos_blocks/Electrical/VsourceDC.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/Bache.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/PerteDP.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/PortPHQ1.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/PortPHQ2.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/Puits.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/Source.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/ThermoCarre.moc
+lib/${PKGNAME}/macros/scicos_blocks/Hydraulics/VanneReglante.moc
diff -r 6585cb0caa28 -r 937ab08d8584 math/scilab/distinfo
--- a/math/scilab/distinfo      Mon Nov 29 21:18:59 2004 +0000
+++ b/math/scilab/distinfo      Mon Nov 29 22:05:08 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2004/07/15 14:39:05 dmcmahill Exp $
+$NetBSD: distinfo,v 1.16 2004/11/29 22:05:08 dmcmahill Exp $
 
 SHA1 (scilab-3.0.src.tar.gz) = 73465add3c1b6640172e885b29fcfd8a3dc426a7
 Size (scilab-3.0.src.tar.gz) = 10988126 bytes
@@ -16,3 +16,4 @@
 SHA1 (patch-al) = 371078078036436c72868eadd9f40532d9d2916f
 SHA1 (patch-am) = 7dc94f3d41aff5c508256361e15aab6cd0c4924a
 SHA1 (patch-an) = 75b9c531dcc39e82a9cfc3e5352afbe57f826310
+SHA1 (patch-ao) = 1dae172657b3852db6c14b9a791858f704528aba
diff -r 6585cb0caa28 -r 937ab08d8584 math/scilab/patches/patch-ao
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/scilab/patches/patch-ao      Mon Nov 29 22:05:08 2004 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ao,v 1.8 2004/11/29 22:05:08 dmcmahill Exp $
+
+--- ocaml/Makefile.orig        Tue Mar 30 13:30:26 2004
++++ ocaml/Makefile
+@@ -26,7 +26,7 @@ PLATFORM=$(shell uname -s)
+ EXE=modelicac
+ 
+ 
+-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi
++.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi .mll .mly
+ 
+ 
+ 
+@@ -60,12 +60,12 @@ EXE=modelicac
+       @$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $(<)
+ 
+ 
+-%.ml %.mli: %.mly
++.mly.ml:
+       @ocamlyacc $(<)
+       @$(RM) -f $(<:.mly=.mli)
+ 
+ 
+-%.ml: %.mll
++.mll.ml:
+       @ocamllex $(<)
+ 
+ 



Home | Main Index | Thread Index | Old Index