[20961] trunk/dports/devel

source_changes at macosforge.org source_changes at macosforge.org
Wed Dec 13 18:32:05 PST 2006


Revision: 20961
          http://trac.macosforge.org/projects/macports/changeset/20961
Author:   eridius at macports.org
Date:     2006-12-13 18:32:04 -0800 (Wed, 13 Dec 2006)

Log Message:
-----------
New port: devel/caml-heredoc. Fixes #11129.

Added Paths:
-----------
    trunk/dports/devel/caml-heredoc/
    trunk/dports/devel/caml-heredoc/Portfile
    trunk/dports/devel/caml-heredoc/files/
    trunk/dports/devel/caml-heredoc/files/patch-Makefile

Added: trunk/dports/devel/caml-heredoc/Portfile
===================================================================
--- trunk/dports/devel/caml-heredoc/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-heredoc/Portfile	2006-12-14 02:32:04 UTC (rev 20961)
@@ -0,0 +1,49 @@
+# $Id$
+
+PortSystem 1.0
+
+name                caml-heredoc
+version             20060107
+categories          devel
+maintainers         kevin at sb.org
+description         Heredoc: syntactic sugar for text producing applications
+long_description    Without any doubt, OCaml is a great langage for Web publishing. \
+                    I used it for a long time to produce my static web pages and more \
+                    recently to write some CGI scripts. \
+                    HereDoc is an attempt to provide syntactic sugar for such applications.
+homepage            http://www.eleves.ens.fr/home/frisch/soft.html
+platforms           darwin
+master_sites        http://www.eleves.ens.fr/home/frisch/info/
+
+checksums           md5 b1032fcbb61c42cf0600083181c0a84e \
+                    sha1 cb102e7adf0b2539c86a026f8111f36f2aaa9007
+distfiles           HereDoc-${version}.tar.gz
+worksrcdir          HereDoc
+
+patchfiles          patch-Makefile
+
+depends_lib         bin:camlp4:ocaml bin:ocamlfind:caml-findlib
+
+use_configure       no
+
+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 {
+        file mkdir [ocamlfind_destdir]
+        reinplace s|##PREFIX##|${prefix}| ${worksrcpath}/Makefile
+        reinplace s|##DESTDIR##|[ocamlfind_destdir]| ${worksrcpath}/Makefile
+}
+
+post-destroot {
+        xinstall -d [ocamlfind_destdir]/HereDoc/doc/
+        xinstall -m 644 ${worksrcpath}/doc.html [ocamlfind_destdir]/HereDoc/doc/index.html
+}


Property changes on: trunk/dports/devel/caml-heredoc/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/devel/caml-heredoc/files/patch-Makefile
===================================================================
--- trunk/dports/devel/caml-heredoc/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/devel/caml-heredoc/files/patch-Makefile	2006-12-14 02:32:04 UTC (rev 20961)
@@ -0,0 +1,20 @@
+--- Makefile.orig	2006-12-10 21:53:56.000000000 -0500
++++ Makefile	2006-12-10 21:58:09.000000000 -0500
+@@ -1,7 +1,7 @@
+ OCAMLC = ocamlc
+ OCAMLOPT = ocamlopt
+ OCAMLLEX = ocamllex
+-OCAMLFIND = ocamlfind
++OCAMLFIND = ##PREFIX##/bin/ocamlfind
+ MKCAMLP4 = mkcamlp4
+ 
+ HEREDOC = $(OCAMLC) -pp './HereDoc' text.cmo
+@@ -22,7 +22,7 @@
+ 	$(OCAMLC) -c -a -o pa_HereDoc.cma unix.cma str.cma hereDoc_lexer.cmo pa_HereDoc.cmo
+ 
+ install:
+-	$(OCAMLFIND) install HereDoc META HereDoc text.cmi text.cmo text.cmx text.o text.mli pa_HereDoc.cma
++	$(OCAMLFIND) install -destdir '##DESTDIR##' -metadir '' HereDoc META HereDoc text.cmi text.cmo text.cmx text.o text.mli pa_HereDoc.cma
+ 
+ uninstall:
+ 	$(OCAMLFIND) remove HereDoc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061213/f7f0fbd7/attachment.html


More information about the macports-changes mailing list