Page MenuHomeFreeBSD

D2925.id6500.diff
No OneTemporary

D2925.id6500.diff

Index: devel/Makefile
===================================================================
--- devel/Makefile
+++ devel/Makefile
@@ -1437,6 +1437,7 @@
SUBDIR += ocaml-magic
SUBDIR += ocaml-opam
SUBDIR += ocaml-ounit
+ SUBDIR += ocaml-parmap
SUBDIR += ocaml-pcre
SUBDIR += ocaml-pomap
SUBDIR += ocaml-ppx-tools
Index: devel/ocaml-parmap/Makefile
===================================================================
--- /dev/null
+++ devel/ocaml-parmap/Makefile
@@ -0,0 +1,30 @@
+# Created by: Henrik Motakef <henrik.motakef@web.de>
+# $FreeBSD$
+
+PORTNAME= parmap
+PORTVERSION= 1.0.r6
+CATEGORIES= devel
+PKGNAMEPREFIX= ocaml-
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Minimalistic library allowing to exploit multicore architecture
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= rdicosmo
+GH_PROJECT= ${PORTNAME}
+GH_TAGNAME= 1.0-rc6
+
+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>
Index: devel/ocaml-parmap/distinfo
===================================================================
--- /dev/null
+++ devel/ocaml-parmap/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rdicosmo-parmap-1.0.r6-1.0-rc6_GH0.tar.gz) = 25e2eeb2ec8b1dedc8067443ddcddf4ab0ff2e3821da888338146af69e8fd9e6
+SIZE (rdicosmo-parmap-1.0.r6-1.0-rc6_GH0.tar.gz) = 97083
Index: devel/ocaml-parmap/files/patch-Makefile.in
===================================================================
--- /dev/null
+++ devel/ocaml-parmap/files/patch-Makefile.in
@@ -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
Index: devel/ocaml-parmap/files/patch-configure
===================================================================
--- /dev/null
+++ devel/ocaml-parmap/files/patch-configure
@@ -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"
Index: devel/ocaml-parmap/pkg-descr
===================================================================
--- /dev/null
+++ devel/ocaml-parmap/pkg-descr
@@ -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
Index: devel/ocaml-parmap/pkg-plist
===================================================================
--- /dev/null
+++ devel/ocaml-parmap/pkg-plist
@@ -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%%

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 12:58 PM (18 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15541568
Default Alt Text
D2925.id6500.diff (4 KB)

Event Timeline