[84240] trunk/dports/devel/caml-lwt/Portfile
mww at macports.org
mww at macports.org
Wed Sep 21 05:36:21 PDT 2011
Revision: 84240
http://trac.macports.org/changeset/84240
Author: mww at macports.org
Date: 2011-09-21 05:36:18 -0700 (Wed, 21 Sep 2011)
Log Message:
-----------
caml-lwt: version 2.3.1; take (open-)maintainership;
Modified Paths:
--------------
trunk/dports/devel/caml-lwt/Portfile
Modified: trunk/dports/devel/caml-lwt/Portfile
===================================================================
--- trunk/dports/devel/caml-lwt/Portfile 2011-09-21 10:47:22 UTC (rev 84239)
+++ trunk/dports/devel/caml-lwt/Portfile 2011-09-21 12:36:18 UTC (rev 84240)
@@ -1,12 +1,12 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
name caml-lwt
-version 2.1.0
+version 2.3.1
distname lwt-${version}
categories devel ml
-maintainers nomaintainer
+maintainers mww openmaintainer
description Cooperative threading library for OCaml
long_description LWT is a lightweight thread library for OCaml to implement \
co-operative concurrency.
@@ -15,27 +15,38 @@
master_sites http://ocsigen.org/download/
depends_lib port:ocaml port:caml-findlib port:caml-ssl \
- port:caml-react port:caml-text
+ port:caml-react port:caml-text port:libev
-checksums md5 93feaa322f1bc585dc60a891cae4e40f \
- sha1 301080f0d5241658c248c3b7f959688ee17e54e8 \
- rmd160 c1af42b3a5661d89b003efdf6e188f3c69587938
+checksums md5 fb7f3600a075c94a94eacf2464c09feb \
+ sha1 ff24f98362c03df0df620011c31b6cc06308ef4e \
+ rmd160 379ac57f13c22860354120b0d42d0efdf351a041
-use_configure no
use_parallel_build no
-patchfiles patch-Makefile.diff
-
set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
-destroot.post_args DESTDIR="$ocamlfind_destdir"
-build.target "all doc"
+# 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 { system -W ${worksrcpath} "${prefix}/bin/ocaml setup.ml -configure --override prefix ${destroot}${prefix} --override docdir ${destroot}${prefix}/share/doc/${name}" }
+post-configure {
+ reinplace "s|${prefix}/bin/ocamlfind|${worksrcpath}/ocamlfind|g" ${worksrcpath}/setup.data
+}
+
+build {
+ system -W ${worksrcpath} "${prefix}/bin/ocaml setup.ml -build"
+ system -W ${worksrcpath} "${prefix}/bin/ocaml setup.ml -doc"
+}
+
+destroot {
+ xinstall -d -m 755 ${ocamlfind_destdir}
+ system -W ${worksrcpath} "${prefix}/bin/ocaml setup.ml -install"
+}
+
livecheck.type regex
livecheck.url http://ocsigen.org/download/
livecheck.version ${version}
livecheck.regex {>lwt-(.*)\.tar\.gz\.asc}
-post-destroot {
- xinstall -d -755 ${destroot}${prefix}/share/doc/${name}
- eval xinstall -m 644 [glob ${worksrcpath}/_build/lwt.docdir/*] \
- ${destroot}${prefix}/share/doc/${name}
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110921/319c6b0c/attachment.html>
More information about the macports-changes
mailing list