[94146] trunk/dports/devel

mww at macports.org mww at macports.org
Sun Jun 10 04:19:59 PDT 2012


Revision: 94146
          https://trac.macports.org/changeset/94146
Author:   mww at macports.org
Date:     2012-06-10 04:19:55 -0700 (Sun, 10 Jun 2012)
Log Message:
-----------
ocaml-curses: new port

Added Paths:
-----------
    trunk/dports/devel/ocaml-curses/
    trunk/dports/devel/ocaml-curses/Portfile
    trunk/dports/devel/ocaml-curses/files/Makefile
    trunk/dports/devel/ocaml-curses/files/config.ml

Removed Paths:
-------------
    trunk/dports/devel/ocaml-curses/Portfile
    trunk/dports/devel/ocaml-curses/files/lib_zone.ml.diff

Deleted: trunk/dports/devel/ocaml-curses/Portfile
===================================================================
--- trunk/dports/devel/ocaml-core/Portfile	2012-05-15 12:02:05 UTC (rev 93111)
+++ trunk/dports/devel/ocaml-curses/Portfile	2012-06-10 11:19:55 UTC (rev 94146)
@@ -1,39 +0,0 @@
-# $Id$
-
-PortSystem          1.0
-
-name                ocaml-core
-version             107.01
-categories          devel ml
-platforms           darwin
-maintainers         mww openmaintainer
-description         Jane Street's alternative to the standard OCaml library
-license             LGPL-2.1
-long_description    ${description}
-homepage            http://www.janestreet.com/ocaml/
-master_sites        ${homepage}
-checksums           md5     375d8f46e47d44e1de35cf36b78b9c8e \
-                    sha1    ef4443939cb42f5778912608d3023a669b06d44f \
-                    rmd160  5a496d71ac40bd709675e12a90233956a7a9309d
-
-distname            core-${version}
-
-depends_lib         port:ocaml port:ocaml-findlib port:ocaml-sexplib \
-                    port:ocaml-res port:ocaml-bin-prot port:ocaml-fieldslib
-
-use_configure       no
-
-build.env           PREFIX=${prefix}
-use_parallel_build  no
-
-set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
-
-destroot.env        OCAMLFIND_DESTDIR="$ocamlfind_destdir"
-
-pre-destroot {
-    xinstall -m 755 -d $ocamlfind_destdir/stublibs
-}
-
-platform darwin {
-    patchfiles-append lib_zone.ml.diff
-}

Copied: trunk/dports/devel/ocaml-curses/Portfile (from rev 94122, trunk/dports/devel/ocaml-core/Portfile)
===================================================================
--- trunk/dports/devel/ocaml-curses/Portfile	                        (rev 0)
+++ trunk/dports/devel/ocaml-curses/Portfile	2012-06-10 11:19:55 UTC (rev 94146)
@@ -0,0 +1,38 @@
+# $Id$
+
+PortSystem          1.0
+PortGroup           ocaml 1.0
+
+name                ocaml-curses
+version             1.0.3
+categories          devel ml
+platforms           darwin
+license             LGPL-2.1
+maintainers         mww openmaintainer
+description         provide curses / ncurses bindings for the OCaml language
+long_description    ${description}
+homepage            http://www.nongnu.org/ocaml-tmk/
+master_sites        http://download.savannah.gnu.org/releases/ocaml-tmk/
+checksums           rmd160  3645ef814e20efdaca254f3f6746c1ffe68363cc \
+                    sha256  990a55ff99223edaa04387802907b00c475b46dd921dc5f8c5ede15ac673656f
+
+depends_lib         port:ocaml port:ocaml-findlib port:ncurses
+
+configure {
+    touch ${worksrcpath}/config.h
+    file copy ${filespath}/config.ml ${worksrcpath}
+    file copy ${filespath}/Makefile ${worksrcpath}
+    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+}
+
+destroot {
+    system "cd ${worksrcpath} && ${prefix}/bin/ocamlfind install curses -destdir ${destroot}${prefix}/lib/ocaml/site-lib -ldconf ignore curses.mli libcurses_stubs.a keys.cmo keys.cmi dllcurses_stubs.so curses.cmxa curses.a curses.cmx curses.cmi curses.cma META"
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING ${destroot}${prefix}/share/doc/${name}
+}
+
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     core-(\[0-9.\]+)${extract.suffix}
+

Added: trunk/dports/devel/ocaml-curses/files/Makefile
===================================================================
--- trunk/dports/devel/ocaml-curses/files/Makefile	                        (rev 0)
+++ trunk/dports/devel/ocaml-curses/files/Makefile	2012-06-10 11:19:55 UTC (rev 94146)
@@ -0,0 +1,46 @@
+# $Id: Makefile.in,v 1.2 2008/11/17 16:53:36 rwmj Exp $
+
+PACKAGE = ocaml-curses
+VERSION = 1.0.3
+CURSES = ncurses
+CLIBS = ncurses
+INCDIRS = @PREFIX@/include
+LIBDIRS = @PREFIX@/lib
+DEFS  = -DHAVE_CONFIG_H
+
+RESULT = curses
+SOURCES = ml_curses.c keys.ml curses.mli curses.ml
+
+CC = @CC@
+CFLAGS = -g -Wall $(DEFS)
+LDFLAGS =
+RANLIB = ranlib
+LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so)
+OCAMLDOCFLAGS = -stars
+
+all: byte opt
+
+opt: ncl META
+	$(RANLIB) *.a
+
+byte: bcl META
+	$(RANLIB) *.a
+
+test: test.ml byte
+	$(OCAMLC) -I . -o $@ curses.cma $<
+
+test.opt: test.ml opt
+	$(OCAMLOPT) -I . -o $@ curses.cmxa $<
+
+META: META.in
+	sed \
+	  -e 's/@PACKAGE@/curses/' \
+	  -e 's/@VERSION@/$(VERSION)/' \
+	  -e 's/@CURSES@/$(CURSES)/' \
+	  < $< > $@
+
+doc: htdoc
+
+include OCamlMakefile
+
+.PHONY: doc

Added: trunk/dports/devel/ocaml-curses/files/config.ml
===================================================================
--- trunk/dports/devel/ocaml-curses/files/config.ml	                        (rev 0)
+++ trunk/dports/devel/ocaml-curses/files/config.ml	2012-06-10 11:19:55 UTC (rev 94146)
@@ -0,0 +1,2 @@
+let wide_ncurses = false
+

Deleted: trunk/dports/devel/ocaml-curses/files/lib_zone.ml.diff
===================================================================
--- trunk/dports/devel/ocaml-core/files/lib_zone.ml.diff	2012-05-15 12:02:05 UTC (rev 93111)
+++ trunk/dports/devel/ocaml-curses/files/lib_zone.ml.diff	2012-06-10 11:19:55 UTC (rev 94146)
@@ -1,11 +0,0 @@
---- lib/zome.ml.orig	2012-04-16 22:12:22.000000000 -0400
-+++ lib/zone.ml	2012-04-16 22:12:58.000000000 -0400
-@@ -387,7 +387,7 @@
-   let default () =
-     {
-       full = false;
--      basedir = "/usr/share/zoneinfo/posix";
-+      basedir = "/usr/share/zoneinfo";
-       table = String.Table.create ~size:11 ();
-     }
- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120610/7b4bb8f1/attachment-0001.html>


More information about the macports-changes mailing list