[53330] trunk/dports/devel

erickt at macports.org erickt at macports.org
Fri Jul 3 10:57:04 PDT 2009


Revision: 53330
          http://trac.macports.org/changeset/53330
Author:   erickt at macports.org
Date:     2009-07-03 10:57:04 -0700 (Fri, 03 Jul 2009)
Log Message:
-----------
Add a Portfile for camomile

Added Paths:
-----------
    trunk/dports/devel/caml-camomile/
    trunk/dports/devel/caml-camomile/Portfile

Added: trunk/dports/devel/caml-camomile/Portfile
===================================================================
--- trunk/dports/devel/caml-camomile/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-camomile/Portfile	2009-07-03 17:57:04 UTC (rev 53330)
@@ -0,0 +1,53 @@
+# $Id$
+
+PortSystem          1.0
+
+name                caml-camomile
+version             0.7.2
+categories          devel ml
+maintainers         toots at rastageeks.org
+description         OCaml module to convert strings to and from various encodings
+homepage            http://camomile.sf.net/
+platforms           darwin
+master_sites        sourceforge:camomile
+distfiles           camomile-${version}.tar.bz2
+worksrcdir          camomile-${version}
+use_bzip2           yes
+
+checksums           md5     288e17838fedc52aacb733952b25d5dd \
+                    sha1    8793a16a689056b9b20b54654ff67aebf7153857 \
+                    rmd160  e77220de7c2be9a13c60aafe6aec476eca9a7645
+
+depends_lib         port:ocaml port:caml-findlib
+
+configure.cflags    {}
+configure.cxxflags  {}
+configure.cppflags  {}
+configure.ldflags   {}
+configure.cxx       {}
+configure.objc      {}
+configure.cpp       {}
+configure.cc        {}
+
+build.args          LIBDIRS=${prefix}/lib
+
+proc ocamlfind_destdir {} {
+    # only bother calculating this darn thing once
+    variable ocamlfind_destdir {}
+    variable destroot
+    variable prefix
+    if {![string length $ocamlfind_destdir]} {
+        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
+    }
+    return $ocamlfind_destdir
+}
+
+pre-destroot {
+  system "mkdir -p [ocamlfind_destdir]"
+  reinplace "s#ocamlfind install#ocamlfind install -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/Makefile
+  reinplace "s#\$(DATADIR)#${destroot}\$(DATADIR)#g" ${worksrcpath}/Makefile
+  reinplace "s#\$(BINDIR)#${destroot}\$(BINDIR)#g" ${worksrcpath}/Makefile
+}
+
+livecheck.check     regex
+livecheck.regex     "camomile-(.*?).tar.bz2"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090703/288fdf54/attachment.html>


More information about the macports-changes mailing list