[61183] trunk/dports/lang
mww at macports.org
mww at macports.org
Fri Dec 4 00:43:49 PST 2009
Revision: 61183
http://trac.macports.org/changeset/61183
Author: mww at macports.org
Date: 2009-12-04 00:43:45 -0800 (Fri, 04 Dec 2009)
Log Message:
-----------
new port lang/caml-dypgen, a GLR parser generator for OCaml
Added Paths:
-----------
trunk/dports/lang/caml-dypgen/
trunk/dports/lang/caml-dypgen/Portfile
trunk/dports/lang/caml-dypgen/files/
trunk/dports/lang/caml-dypgen/files/dypgen.sh
trunk/dports/lang/caml-dypgen/files/patch-Makefile.diff
trunk/dports/lang/caml-dypgen/files/patch-dyplib-Makefile.diff
Added: trunk/dports/lang/caml-dypgen/Portfile
===================================================================
--- trunk/dports/lang/caml-dypgen/Portfile (rev 0)
+++ trunk/dports/lang/caml-dypgen/Portfile 2009-12-04 08:43:45 UTC (rev 61183)
@@ -0,0 +1,42 @@
+# $Id$
+
+PortSystem 1.0
+name caml-dypgen
+version 20091118
+categories lang devel ml
+platforms darwin
+maintainers mww openmaintainer
+description Self-extensible parsers and lexers for the Objective Caml programming language.
+long_description ${description}
+homepage http://dypgen.free.fr/
+master_sites ${homepage}
+
+distname dypgen-${version}
+use_bzip2 yes
+
+checksums md5 e5037450094ab0332340e233b323cff6 \
+ sha1 df8e4cfc4b148428ebada7c5118a4a71ce26eb6f \
+ rmd160 82d181518bd035ec02a4d344cd6635cc743ec828
+
+depends_lib port:caml-findlib \
+ port:ocaml
+
+patchfiles patch-Makefile.diff patch-dyplib-Makefile.diff
+
+use_configure no
+
+use_parallel_build no
+
+destroot.args BINDIR=${prefix}/bin
+
+post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/examples \
+ ${destroot}${prefix}/share/doc/${name}
+ file copy ${worksrcpath}/demos ${destroot}${prefix}/share/examples/${name}
+ xinstall -m 644 -W ${worksrcpath} dypgen-doc.pdf CHANGES \
+ CREDITS INSTALL Licence_CeCILL-B_V1-en.txt Licence_CeCILL-B_V1-fr.txt \
+ ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 755 ${filespath}/dypgen.sh ${destroot}${prefix}/bin/dypgen
+ reinplace "s|@prefix@|${prefix}|g" ${destroot}${prefix}/bin/dypgen
+}
+
Property changes on: trunk/dports/lang/caml-dypgen/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: trunk/dports/lang/caml-dypgen/files/dypgen.sh
===================================================================
--- trunk/dports/lang/caml-dypgen/files/dypgen.sh (rev 0)
+++ trunk/dports/lang/caml-dypgen/files/dypgen.sh 2009-12-04 08:43:45 UTC (rev 61183)
@@ -0,0 +1,2 @@
+#!/bin/sh
+ at prefix@/bin/dypgen.ml --ocamlc "-I @prefix@/lib/ocaml/site-lib/dyp" $*
Added: trunk/dports/lang/caml-dypgen/files/patch-Makefile.diff
===================================================================
--- trunk/dports/lang/caml-dypgen/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/lang/caml-dypgen/files/patch-Makefile.diff 2009-12-04 08:43:45 UTC (rev 61183)
@@ -0,0 +1,39 @@
+--- work/dypgen-20091118/Makefile 2009-11-18 19:14:18.000000000 +0100
++++ Makefile 2009-12-03 21:19:39.000000000 +0100
+@@ -6,7 +6,7 @@
+ cd dyplib; $(MAKE)
+ cd dypgen; $(MAKE)
+
+-all:
++all: dyp
+ $(MAKE) dypgen
+ $(MAKE) examples
+
+@@ -21,11 +21,11 @@
+ done
+
+ install: install_opt
+- mkdir -p $(BINDIR)
+- cp dypgen/dypgen $(BINDIR)
+- cp dyp2gram.pl $(BINDIR)
+- chmod +x $(BINDIR)/dyp2gram.pl
+- cd dyplib; $(MAKE) install
++ mkdir -p $(DESTDIR)$(BINDIR)
++ cp dypgen/dypgen $(DESTDIR)$(BINDIR)/dypgen.ml
++ cp dyp2gram.pl $(DESTDIR)$(BINDIR)
++ chmod +x $(DESTDIR)$(BINDIR)/dyp2gram.pl
++ cd dyplib; $(MAKE) install DESTDIR=$(DESTDIR)
+
+ install2: install_opt
+ mkdir -p $(BINDIR)
+@@ -35,8 +35,8 @@
+
+ ifdef CAMLOPT
+ install_opt:
+- mkdir -p $(BINDIR)
+- cp dypgen/dypgen.opt $(BINDIR)
++ mkdir -p $(DESTDIR)$(BINDIR)
++ cp dypgen/dypgen.opt $(DESTDIR)$(BINDIR)
+ else
+ install_opt:
+ endif
Added: trunk/dports/lang/caml-dypgen/files/patch-dyplib-Makefile.diff
===================================================================
--- trunk/dports/lang/caml-dypgen/files/patch-dyplib-Makefile.diff (rev 0)
+++ trunk/dports/lang/caml-dypgen/files/patch-dyplib-Makefile.diff 2009-12-04 08:43:45 UTC (rev 61183)
@@ -0,0 +1,14 @@
+--- dyplib/Makefile 2009-11-18 19:14:18.000000000 +0100
++++ dyplib/Makefile 2009-12-03 21:23:07.000000000 +0100
+@@ -19,8 +19,9 @@
+ prof:
+ endif
+
+-install: uninstall
+- $(OCAMLFIND) install dyp META dyp.cma dyp.cmxa dyp.a dyp.cmi
++install:
++ mkdir -p $(DESTDIR)/`$(OCAMLFIND) printconf destdir`
++ $(OCAMLFIND) install -destdir $(DESTDIR)/`$(OCAMLFIND) printconf destdir` dyp META dyp.cma dyp.cmxa dyp.a dyp.cmi dyp.mli
+
+ uninstall:
+ $(OCAMLFIND) remove dyp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091204/6ef1c662/attachment.html>
More information about the macports-changes
mailing list