[86640] trunk/dports/devel/caml-fieldslib/Portfile
mww at macports.org
mww at macports.org
Sun Oct 30 17:38:00 PDT 2011
Revision: 86640
http://trac.macports.org/changeset/86640
Author: mww at macports.org
Date: 2011-10-30 17:37:58 -0700 (Sun, 30 Oct 2011)
Log Message:
-----------
caml-fieldslib: add license; use ocaml port group
Modified Paths:
--------------
trunk/dports/devel/caml-fieldslib/Portfile
Modified: trunk/dports/devel/caml-fieldslib/Portfile
===================================================================
--- trunk/dports/devel/caml-fieldslib/Portfile 2011-10-30 23:20:24 UTC (rev 86639)
+++ trunk/dports/devel/caml-fieldslib/Portfile 2011-10-31 00:37:58 UTC (rev 86640)
@@ -1,12 +1,14 @@
# $Id$
PortSystem 1.0
+PortGroup ocaml 1.0
name caml-fieldslib
version 107.01
distname fieldslib-${version}
categories devel ml
maintainers mww openmaintainer
+license LGPL-2.1
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, \
@@ -28,20 +30,10 @@
set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
-# 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"
-}
-
configure.pre_args --prefix "${prefix}" --destdir "${destroot}"
post-configure {
- reinplace "s|${prefix}/bin/ocamlfind|${worksrcpath}/ocamlfind|g" ${worksrcpath}/setup.data
+ reinplace "s|${prefix}/bin/ocamlfind|${ocamlfind_wrapper}|g" ${worksrcpath}/setup.data
}
use_parallel_build no
-pre-destroot {
- xinstall -m 755 -d $ocamlfind_destdir
-}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111030/df276d9f/attachment.html>
More information about the macports-changes
mailing list