freebsd-ports/devel/asdlgen/files/patch-src_misc_sml-batch.in
Edwin Groothuis 6ec7d6368c New port: devel/asdlgen generate serializers for C,C++,Haskell,Icon,Java,ML
asdlGen generates data structure and serializer code from ASDL
	specifications [1]. It is especially helpful for exchanging
	tree like data structures between different programming languages.
	Currently C, C++, Haskell, Java, Icon, OCaml and SML are supported.
	Although the asdlGen project itself seems no longer actively
	maintained, ASDL is "alive" as it is used (at least) in the
	Moby [2] and Python [3,4] compilers.

	The port optionally installs a simple usage example [5] for all
	seven programming languages. I developed it primarily to test the
	port, but it could be helpful to users of asdlGen to get a quicker
	start, especially if a less familiar programming language is
	involved in their project. Reviewers/committers can easily make
	use of it via the "test-demo" target.

PR:		ports/117703
Submitted by:	Johannes 5 Joemann <joemann@beefree.free.de>
2008-05-24 06:39:32 +00:00

19 lines
560 B
Text

--- src/misc/sml-batch.in.orig 2001-10-02 16:20:32.000000000 +0200
+++ src/misc/sml-batch.in 2007-10-04 23:56:09.000000000 +0200
@@ -3,12 +3,15 @@
cmfile=sources-$$.cm
cat > ${cmfile} <<EOF
Group is
+\$/basis.cm
$@
EOF
@SMLNJ@ <<EOF
+(*
val path = String.tokens (fn x => x = #":") "${cmpath}";
CM.set_path (SOME (path@(CM.set_path NONE)));
-((CM.make' ("${cmfile}") handle _ => OS.Process.exit OS.Process.failure);
+*)
+((CM.make ("${cmfile}") handle _ => OS.Process.exit OS.Process.failure);
OS.Process.exit OS.Process.success; ())
EOF
ret=$?