[83986] trunk/dports/devel/caml-fieldslib/Portfile
mww at macports.org
mww at macports.org
Wed Sep 14 01:25:14 PDT 2011
Revision: 83986
http://trac.macports.org/changeset/83986
Author: mww at macports.org
Date: 2011-09-14 01:25:11 -0700 (Wed, 14 Sep 2011)
Log Message:
-----------
version 107.01; take (open)maintainership;
Modified Paths:
--------------
trunk/dports/devel/caml-fieldslib/Portfile
Modified: trunk/dports/devel/caml-fieldslib/Portfile
===================================================================
--- trunk/dports/devel/caml-fieldslib/Portfile 2011-09-14 07:49:37 UTC (rev 83985)
+++ trunk/dports/devel/caml-fieldslib/Portfile 2011-09-14 08:25:11 UTC (rev 83986)
@@ -1,11 +1,12 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+
name caml-fieldslib
-version 0.1.2
+version 107.01
distname fieldslib-${version}
categories devel ml
-maintainers nomaintainer
+maintainers mww openmaintainer
description Syntax support for folding over record fields in OCaml
long_description This library defines a syntax extension for OCaml using Camlp4 that \
can be used to define first class values representing record fields, \
@@ -16,25 +17,31 @@
platforms darwin
master_sites http://www.janestreet.com/ocaml/
-livecheck.url http://ocaml.janestreet.com/?q=node/13
livecheck.type regex
-livecheck.regex {fieldslib-(.*)\.tgz}
+livecheck.regex {fieldslib-(.*)\.tar.gz}
-checksums md5 d7cf2d3a815cd55352b0d5be164fc687 \
- sha1 302362ed8c3ce1913246da9584abec8311617807 \
- rmd160 3207b2baf8e8e5aa6cf27d1660bf9503db925a58
+checksums md5 f2ed8e1b485881405dba601ffd87112b \
+ sha1 3028363f3f92f2dc4e7adf1b1a8d6db1ecafb75b \
+ rmd160 f3e000d2ede046afb4db3eaa72ef8b6b217e7388
depends_lib port:ocaml port:caml-findlib port:caml-type-conv
-use_configure no
-use_parallel_build no
+set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
-build.env PREFIX=${prefix}
+# cheat the system by providing a thin ocamlfind-wrapper that obeys destdir
+post-extract {
+ system -W ${worksrcpath} "echo ${prefix}/bin/ocamlfind \\$* -destdir ${ocamlfind_destdir} > ocamlfind"
+ system -W ${worksrcpath} "chmod +x ocamlfind"
+}
-set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
+configure.pre_args --prefix "${prefix}" --destdir "${destroot}"
+post-configure {
+ reinplace "s|${prefix}/bin/ocamlfind|${worksrcpath}/ocamlfind|g" ${worksrcpath}/setup.data
+}
-destroot.env OCAMLFIND_DESTDIR="$ocamlfind_destdir"
+use_parallel_build no
pre-destroot {
- file mkdir $ocamlfind_destdir
+ xinstall -m 755 -d $ocamlfind_destdir
}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110914/9853f519/attachment.html>
More information about the macports-changes
mailing list