Revision
94784
Author
mww@macports.org
Date
2012-06-29 11:57:17 -0700 (Fri, 29 Jun 2012)

Log Message

ocaml-odn: fix compilation

Modified Paths

Diff

Modified: trunk/dports/devel/ocaml-odn/Portfile (94783 => 94784)


--- trunk/dports/devel/ocaml-odn/Portfile	2012-06-29 18:54:29 UTC (rev 94783)
+++ trunk/dports/devel/ocaml-odn/Portfile	2012-06-29 18:57:17 UTC (rev 94784)
@@ -1,6 +1,7 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
+PortGroup           ocaml 1.0
 
 name                ocaml-odn
 version             0.0.8
@@ -27,15 +28,11 @@
 
 depends_lib         port:ocaml port:ocaml-type-conv
 
-use_configure       no
+use_oasis           yes
 
-build.env           PREFIX=${prefix}
-build.target        build
-use_parallel_build  no
+patch {
+    reinplace "s|type-conv|type_conv|g" ${worksrcpath}/setup.ml
+}
 
-set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
-destroot.env        OCAMLFIND_DESTDIR="$ocamlfind_destdir"
+configure.args-append "--override ocamlbuildflags '-use-ocamlfind -pkg type_conv'"
 
-pre-destroot {
-    file mkdir ${ocamlfind_destdir}
-}