[20887] trunk/dports/devel

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 7 14:15:10 PST 2006


Revision: 20887
          http://trac.macosforge.org/projects/macports/changeset/20887
Author:   jmpp at macports.org
Date:     2006-12-07 14:15:09 -0800 (Thu, 07 Dec 2006)

Log Message:
-----------

New Port: caml-extlib. Contributed by Kevin Ballard, thanks! Closes #11111.

Added Paths:
-----------
    trunk/dports/devel/caml-extlib/
    trunk/dports/devel/caml-extlib/Portfile
    trunk/dports/devel/caml-extlib/files/
    trunk/dports/devel/caml-extlib/files/patch-install.ml

Added: trunk/dports/devel/caml-extlib/Portfile
===================================================================
--- trunk/dports/devel/caml-extlib/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-extlib/Portfile	2006-12-07 22:15:09 UTC (rev 20887)
@@ -0,0 +1,36 @@
+PortSystem          1.0
+
+name                caml-extlib
+version             1.5
+categories          devel
+maintainers         kevin at sb.org
+description         Extended Standard Library for OCaml
+long_description    A User-supported Extended Standard Library for OCaml
+homepage            http://ocaml-lib.sourceforge.net/
+platforms           darwin
+master_sites        sourceforge:ocaml-lib
+
+checksums           md5 17808ae18d6b6e40637f0df8561583e8 \
+                    sha1 04d52f922fbecd3e6a693ef2e50af21adb53c1a1
+distfiles           extlib-${version}.tar.gz
+worksrcdir          extlib-${version}
+
+patchfiles          patch-install.ml
+
+depends_lib         bin:camlp4:ocaml bin:ocamlfind:caml-findlib
+
+use_configure       no
+
+build {}
+
+destroot.cmd        "ocaml"
+destroot.pre_args   install.ml
+destroot.args       -b -n -doc
+destroot.post_args
+
+pre-destroot {
+        set extlib_destdir  ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
+        file mkdir $extlib_destdir
+        reinplace s|##PREFIX##|${prefix}| ${worksrcpath}/install.ml
+        reinplace s|##DESTDIR##|${extlib_destdir}| ${worksrcpath}/install.ml
+}


Property changes on: trunk/dports/devel/caml-extlib/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/devel/caml-extlib/files/patch-install.ml
===================================================================
--- trunk/dports/devel/caml-extlib/files/patch-install.ml	                        (rev 0)
+++ trunk/dports/devel/caml-extlib/files/patch-install.ml	2006-12-07 22:15:09 UTC (rev 20887)
@@ -0,0 +1,21 @@
+--- install.ml.bak	2006-12-06 16:22:11.000000000 -0500
++++ install.ml	2006-12-06 16:22:58.000000000 -0500
+@@ -173,9 +173,6 @@
+ 	end;
+ 	if !autodoc then begin
+ 		run (sprintf "ocamldoc -sort -html -d %s %s" doc_dir (m_list ".mli"));
+-		run ((match path_type with
+-				| PathDos -> sprintf "%s odoc_style.css %s\\style.css";
+-				| PathUnix -> sprintf "%s odoc_style.css %s/style.css") cp_cmd doc_dir);
+ 	end;
+ 	match install_dir with
+ 	  Findlib ->
+@@ -194,7 +191,7 @@
+ 	    end;
+ 	    run (sprintf "%s META.txt META" cp_cmd);
+ 	    let files = Buffer.contents files in
+-	    run (sprintf "ocamlfind install extlib %s META" files);
++	    run (sprintf "##PREFIX##/bin/ocamlfind install -destdir '##DESTDIR##' -metadir '' extlib %s META" files);
+ 	| Dir install_dir ->
+ 	    List.iter (fun m ->
+ 			copy (m ^ ".cmi") install_dir;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061207/083028e6/attachment.html


More information about the macports-changes mailing list