[84697] trunk/dports/devel/caml-ounit/Portfile
mww at macports.org
mww at macports.org
Thu Sep 29 13:49:40 PDT 2011
Revision: 84697
http://trac.macports.org/changeset/84697
Author: mww at macports.org
Date: 2011-09-29 13:49:39 -0700 (Thu, 29 Sep 2011)
Log Message:
-----------
caml-ounit: use ocaml portgroup
Modified Paths:
--------------
trunk/dports/devel/caml-ounit/Portfile
Modified: trunk/dports/devel/caml-ounit/Portfile
===================================================================
--- trunk/dports/devel/caml-ounit/Portfile 2011-09-29 20:48:41 UTC (rev 84696)
+++ trunk/dports/devel/caml-ounit/Portfile 2011-09-29 20:49:39 UTC (rev 84697)
@@ -1,7 +1,7 @@
# $Id$
PortSystem 1.0
-
+PortGroup ocaml 1.0
name caml-ounit
version 1.1.0
categories devel ml
@@ -23,36 +23,12 @@
sha1 e477f8a1b4fcd6a838cbbc04450a80b1cea3456c \
rmd160 f7d82446970f40eccc917a3ee57e7d6526b1b177
-depends_lib port:ocaml \
- port:caml-findlib
-
-# ocaml is not universal
-universal_variant no
-
livecheck.type regex
livecheck.url http://forge.ocamlcore.org/frs/?group_id=162
livecheck.regex {>ounit-(.*)\.tar\.gz}
-set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
+use_oasis yes
+use_oasis_doc 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"
-}
-
-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}
-}
-destroot { system -W ${worksrcpath} "ocaml setup.ml -install" }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110929/288e5a6d/attachment.html>
More information about the macports-changes
mailing list