svn commit: r390703 - in head/devel: . ocaml-parmap ocaml-parmap/files
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Sat Jun 27 13:47:07 UTC 2015
Author: dumbbell (src committer)
Date: Sat Jun 27 13:47:04 2015
New Revision: 390703
URL: https://svnweb.freebsd.org/changeset/ports/390703
Log:
devel/ocaml-parmap: New port for the "parmap" OCaml module
This module is used by Coccinelle (devel/coccinelle).
Differential Revision: https://reviews.freebsd.org/D2925
Reviewed by: kwm
Approved by: kwm
Added:
head/devel/ocaml-parmap/
head/devel/ocaml-parmap/Makefile (contents, props changed)
head/devel/ocaml-parmap/distinfo (contents, props changed)
head/devel/ocaml-parmap/files/
head/devel/ocaml-parmap/files/patch-Makefile.in (contents, props changed)
head/devel/ocaml-parmap/files/patch-configure (contents, props changed)
head/devel/ocaml-parmap/pkg-descr (contents, props changed)
head/devel/ocaml-parmap/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sat Jun 27 13:33:41 2015 (r390702)
+++ head/devel/Makefile Sat Jun 27 13:47:04 2015 (r390703)
@@ -1441,6 +1441,7 @@
SUBDIR += ocaml-magic
SUBDIR += ocaml-opam
SUBDIR += ocaml-ounit
+ SUBDIR += ocaml-parmap
SUBDIR += ocaml-pcre
SUBDIR += ocaml-pomap
SUBDIR += ocaml-ppx-tools
Added: head/devel/ocaml-parmap/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ocaml-parmap/Makefile Sat Jun 27 13:47:04 2015 (r390703)
@@ -0,0 +1,28 @@
+# Created by: Jean-Sébastien Pédron <dumbbell at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= parmap
+DISTVERSION= 1.0-rc6
+CATEGORIES= devel
+PKGNAMEPREFIX= ocaml-
+
+MAINTAINER= dumbbell at FreeBSD.org
+COMMENT= Minimalistic library allowing to exploit multicore architecture
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= rdicosmo
+
+USES= gmake
+GNU_CONFIGURE= yes
+USE_OCAML= yes
+USE_OCAML_FINDLIB= yes
+USE_OCAML_LDCONFIG= yes
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocaml/parmap/*.cmxs
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocaml/stublibs/*.so
+
+.include <bsd.port.mk>
Added: head/devel/ocaml-parmap/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ocaml-parmap/distinfo Sat Jun 27 13:47:04 2015 (r390703)
@@ -0,0 +1,2 @@
+SHA256 (rdicosmo-parmap-1.0-rc6_GH0.tar.gz) = 25e2eeb2ec8b1dedc8067443ddcddf4ab0ff2e3821da888338146af69e8fd9e6
+SIZE (rdicosmo-parmap-1.0-rc6_GH0.tar.gz) = 97083
Added: head/devel/ocaml-parmap/files/patch-Makefile.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ocaml-parmap/files/patch-Makefile.in Sat Jun 27 13:47:04 2015 (r390703)
@@ -0,0 +1,15 @@
+--- Makefile.in.orig 2015-02-09 10:42:28 UTC
++++ Makefile.in
+@@ -20,9 +20,9 @@ INSTALL = $(OCAMLFIND) install
+ UNINSTALL = $(OCAMLFIND) remove
+ else
+ export OCAMLLIBDIR := lib/ocaml
+-LIBDIR=$(DESTDIR)/$(OCAMLLIBDIR)
+-BINDIR=$(DESTDIR)/bin
+-MANDIR=$(DESTDIR)/man/man3
++LIBDIR=$(DESTDIR)$(prefix)/$(OCAMLLIBDIR)
++BINDIR=$(DESTDIR)$(exec_prefix)/bin
++MANDIR=$(DESTDIR)$(prefix)/man/man3
+ INSTALL = $(OCAMLFIND) install -destdir $(LIBDIR)
+ UNINSTALL = $(OCAMLFIND) remove -destdir $(LIBDIR)
+ endif
Added: head/devel/ocaml-parmap/files/patch-configure
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ocaml-parmap/files/patch-configure Sat Jun 27 13:47:04 2015 (r390703)
@@ -0,0 +1,13 @@
+--- configure.orig 2015-02-09 10:42:28 UTC
++++ configure
+@@ -4379,8 +4379,8 @@ _ACEOF
+ ac_config_headers="$ac_config_headers config.h"
+
+
+-t=`$OCAMLBUILD -use-ocamlfind &> /dev/null; echo $?`
+-if test $t == 0 ; then
++t=`$OCAMLBUILD -use-ocamlfind > /dev/null; echo $?`
++if test "$t" = 0 ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ocaml version $OCAMLVERSION. Use standard Makefile" >&5
+ $as_echo "ocaml version $OCAMLVERSION. Use standard Makefile" >&6; }
+ ac_config_files="$ac_config_files Makefile"
Added: head/devel/ocaml-parmap/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ocaml-parmap/pkg-descr Sat Jun 27 13:47:04 2015 (r390703)
@@ -0,0 +1,9 @@
+Parmap is a minimalistic library allowing to exploit multicore
+architecture for OCaml programs with minimal modifications: if you want
+to use your many cores to accelerate an operation which happens to be a
+map, fold or map/fold (map-reduce), just use Parmap's parmap, parfold
+and parmapfold primitives in place of the standard List.map and friends,
+and specify the number of subprocesses to use by the optional parameter
+~ncores.
+
+WWW: https://github.com/rdicosmo/parmap
Added: head/devel/ocaml-parmap/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ocaml-parmap/pkg-plist Sat Jun 27 13:47:04 2015 (r390703)
@@ -0,0 +1,18 @@
+lib/ocaml/parmap/META
+lib/ocaml/parmap/bytearray.cmi
+lib/ocaml/parmap/bytearray.mli
+lib/ocaml/parmap/libparmap_stubs.a
+lib/ocaml/parmap/parmap.a
+lib/ocaml/parmap/parmap.cma
+lib/ocaml/parmap/parmap.cmi
+lib/ocaml/parmap/parmap.cmxa
+lib/ocaml/parmap/parmap.cmxs
+lib/ocaml/parmap/parmap.mli
+lib/ocaml/parmap/parmap_utils.cmi
+lib/ocaml/parmap/parmap_utils.mli
+lib/ocaml/parmap/setcore.cmi
+lib/ocaml/parmap/setcore.mli
+lib/ocaml/stublibs/dllparmap_stubs.so
+lib/ocaml/stublibs/dllparmap_stubs.so.owner
+man/man3/Parmap.3o.gz
+ at dir %%OCAML_SITELIBDIR%%
More information about the svn-ports-all
mailing list