[87156] trunk/dports/lang

mww at macports.org mww at macports.org
Sat Nov 12 06:11:14 PST 2011


Revision: 87156
          http://trac.macports.org/changeset/87156
Author:   mww at macports.org
Date:     2011-11-12 06:11:11 -0800 (Sat, 12 Nov 2011)
Log Message:
-----------
new port: ocaml-devel; development snapshot from svn, preview for 3.13 with GADT support

Added Paths:
-----------
    trunk/dports/lang/ocaml-devel/
    trunk/dports/lang/ocaml-devel/Portfile

Added: trunk/dports/lang/ocaml-devel/Portfile
===================================================================
--- trunk/dports/lang/ocaml-devel/Portfile	                        (rev 0)
+++ trunk/dports/lang/ocaml-devel/Portfile	2011-11-12 14:11:11 UTC (rev 87156)
@@ -0,0 +1,67 @@
+# $Id: Portfile 84561 2011-09-28 08:10:20Z mww at macports.org $
+
+PortSystem         1.0
+
+name               ocaml-devel
+conflicts          ocaml
+svn.revision       11273
+version            3.13.0-r${svn.revision}
+set major_vers     [join [lrange [split ${version} .] 0 1] .]
+platforms          darwin
+maintainers        mww openmaintainer
+categories         lang ml
+description        Objective Caml is an implementation of the ML language
+license            {QPL LGPL}
+homepage           http://www.ocaml.org/
+fetch.type         svn
+svn.url            http://caml.inria.fr/svn/ocaml/branches/gadts-devel/
+
+long_description \
+            Objective Caml is an implementation of the ML language, based on \
+            the Caml Light dialect extended with a complete class-based object \
+            system and a powerful module system in the style of Standard ML. \
+            This prot will install the development version of ocaml 3.13 with \
+            GADT support.
+
+use_bzip2          yes
+
+worksrcdir         gadts-devel
+
+depends_lib        port:ncurses
+
+use_parallel_build no
+universal_variant  no
+
+set docdir         ${prefix}/share/doc/${name}-${version}
+
+# Configure.
+configure.pre_args -prefix ${prefix}/lib
+configure.args     -no-tk -cc ${configure.cc} -aspp \"${configure.cc} -c\"
+
+# Building.
+build.target       world.opt
+build.cmd          "unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}"
+
+# Install.
+destroot.target    install
+destroot.destdir   BINDIR=${destroot}${prefix}/bin \
+                   LIBDIR=${destroot}${prefix}/lib/ocaml \
+                   MANDIR=${destroot}${prefix}/share/man
+
+post-destroot {
+    # Change "ld.conf" to remove ${destroot} in paths.
+    reinplace "s:${destroot}::g" ${destroot}${prefix}/lib/ocaml/ld.conf
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} Changes LICENSE README ${destroot}${docdir}
+}
+
+# Variants.
+variant profile description {Enable profiling} {
+    configure.env-append CC="gcc -pg"
+}
+
+variant labltk description {Include TK bindings and ocamlbrowser} {
+    depends_lib-append    port:tcl port:tk
+    configure.args-delete     -no-tk
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111112/b21733b8/attachment-0001.html>


More information about the macports-changes mailing list