[84694] trunk/dports/devel/ocaml-extunix/Portfile

mww at macports.org mww at macports.org
Thu Sep 29 13:16:57 PDT 2011


Revision: 84694
          http://trac.macports.org/changeset/84694
Author:   mww at macports.org
Date:     2011-09-29 13:16:56 -0700 (Thu, 29 Sep 2011)
Log Message:
-----------
ocaml-extunit: use ocaml portgroup

Modified Paths:
--------------
    trunk/dports/devel/ocaml-extunix/Portfile

Modified: trunk/dports/devel/ocaml-extunix/Portfile
===================================================================
--- trunk/dports/devel/ocaml-extunix/Portfile	2011-09-29 20:12:48 UTC (rev 84693)
+++ trunk/dports/devel/ocaml-extunix/Portfile	2011-09-29 20:16:56 UTC (rev 84694)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup ocaml 1.0
 
 name                ocaml-extunix
 version             0.0.3
@@ -18,32 +19,16 @@
                     rmd160  cf16ec5bbec91ca12b6598f9a22db87d0a8923eb \
                     sha256  c44b921227e074f0d13292e78c081252590dbf6fd9f751945d29823d990e2eeb
 
-depends_lib         port:ocaml port:caml-findlib port:caml-ounit
+depends_lib-append  port:caml-ounit
 
 patchfiles          patch-src-discover.ml.diff
 
-set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
+use_oasis yes
 
-# cheat the system by providing a thin ocamlfind-wrapper that obeys destdir
-post-extract {
-    system -W ${worksrcpath} "echo ${prefix}/bin/ocamlfind \\$* -destdir ${ocamlfind_destdir} -ldconf ignore > ocamlfind"
-    system -W ${worksrcpath} "chmod +x ocamlfind"
-}
+configure.args-append "--override datarootdir ${destroot}${prefix}/share"
 
-configure {
-    system -W ${worksrcpath} "ocaml setup.ml -configure --override prefix ${prefix} --override datarootdir ${destroot}${prefix}/share"
-}
+post-build { system -W ${worksrcpath} "${build.cmd} setup.ml -doc" }
 
-build {
-    system -W ${worksrcpath} "ocaml setup.ml -build"
-    system -W ${worksrcpath} "ocaml setup.ml -doc"
-}
-
-pre-destroot {
-    reinplace "s|${prefix}/bin/ocamlfind|${worksrcpath}/ocamlfind|g" ${worksrcpath}/setup.data
-    xinstall -d -m 755 ${ocamlfind_destdir}
-}
-
 livecheck.type      regex
 livecheck.url       https://forge.ocamlcore.org/frs/?group_id=175
 livecheck.regex     {>ocaml-extunix-(.*)\.tar\.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110929/45595165/attachment.html>


More information about the macports-changes mailing list