From owner-svn-ports-all@freebsd.org Sat Jun 27 13:47:07 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FBFA98E499; Sat, 27 Jun 2015 13:47:07 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26C341D77; Sat, 27 Jun 2015 13:47:07 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5RDl7CQ073398; Sat, 27 Jun 2015 13:47:07 GMT (envelope-from dumbbell@FreeBSD.org) Received: (from dumbbell@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5RDl5WJ073390; Sat, 27 Jun 2015 13:47:05 GMT (envelope-from dumbbell@FreeBSD.org) Message-Id: <201506271347.t5RDl5WJ073390@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dumbbell set sender to dumbbell@FreeBSD.org using -f From: Jean-Sebastien Pedron Date: Sat, 27 Jun 2015 13:47:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390703 - in head/devel: . ocaml-parmap ocaml-parmap/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2015 13:47:07 -0000 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 +# $FreeBSD$ + +PORTNAME= parmap +DISTVERSION= 1.0-rc6 +CATEGORIES= devel +PKGNAMEPREFIX= ocaml- + +MAINTAINER= dumbbell@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 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 +@dir %%OCAML_SITELIBDIR%%