Thu Oct 9 21:38:49 2014 UTC ()
Updated ocaml-react to latest version, 1.2.0. Changes include:
- Fix bug in dynamic creation of S.{diff,changes} (#8).
- Fix bug in dynamic creation of S.switch (#7).
- Add support for toplevel: automatically `open React` on `#require "react"`.
- Add `S.Bool.{flip,edge,fall,rise}`.
- Fix `S.switch` rank's initialisation.
- Add `E.l{1,2,3,4,5,6}`, lifting combinators on events.
- Add `E.Option.{some,value}`.
- Add `S.{Float,Int}.{zero,one,minus_one}`.
- Add `S.Bool.{zero,one}`.
- Add `S.Option.{none,some,value}`.
- Add `{S,E}.on` equivalent to `{S,E}.when_`.
- Deprecate `{S,E}.when_` (syntax error prone).
- Fix `S.bind`.
- Use package builder topkg for distribution.
- Add support for update steps, see the `React.Step` module. Allows to
  specify simultaneous primitive signal updates and event occurences.
  The functions returned by `{S,E}.create` now have an optional
  `?step` argument; if unused the previous semantics is preserved.
- Add support for strong stops, can be used on platforms where weak
  arrays are not to prevent leaks. The function `{E,S}.stop` now have
  an optional `?strong` argument; if unused the previous semantics is
  preserved.
- Change signature of `S.switch`. Any existing call `S.switch ~eq s es` can
  be replaced by `S.(switch ~eq (hold ~eq:( == ) s es))`.


(jaapb)
diff -r1.5 -r1.6 pkgsrc/devel/ocaml-react/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/ocaml-react/PLIST
diff -r1.2 -r1.3 pkgsrc/devel/ocaml-react/distinfo
diff -r1.1.1.1 -r0 pkgsrc/devel/ocaml-react/PLIST.opt

cvs diff -r1.5 -r1.6 pkgsrc/devel/ocaml-react/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/ocaml-react/Makefile 2013/11/01 11:30:22 1.5
+++ pkgsrc/devel/ocaml-react/Makefile 2014/10/09 21:38:49 1.6
@@ -1,52 +1,47 @@ @@ -1,52 +1,47 @@
1# $NetBSD: Makefile,v 1.5 2013/11/01 11:30:22 jaapb Exp $ 1# $NetBSD: Makefile,v 1.6 2014/10/09 21:38:49 jaapb Exp $
2 2
3PKGNAME= ocaml-${DISTNAME} 3DISTNAME= react-1.2.0
4DISTNAME= react-0.9.4 
5PKGREVISION= 2 
6CATEGORIES= devel 4CATEGORIES= devel
7MASTER_SITES= http://erratique.ch/software/react/releases/ 5MASTER_SITES= http://erratique.ch/software/react/releases/
8EXTRACT_SUFX= .tbz 6EXTRACT_SUFX= .tbz
9 7
10MAINTAINER= jaapb@kerguelen.org 8MAINTAINER= jaapb@NetBSD.org
11HOMEPAGE= http://erratique.ch/software/react 9HOMEPAGE= http://erratique.ch/software/react
12COMMENT= OCaml module for functional reactive programming 10COMMENT= OCaml module for functional reactive programming
13LICENSE= modified-bsd 11LICENSE= modified-bsd
14 12
15USE_LANGUAGES= c 13CONFIGURE_ARGS+= --prefix "${PREFIX}" --destdir "${DESTDIR}"
16HAS_CONFIGURE= yes 14INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}/react
17CONFIGURE_ARGS= --prefix "${PREFIX}" --destdir "${DESTDIR}" 
18 
19SUBST_CLASSES+= destdir 
20SUBST_STAGE.destdir= post-configure 
21SUBST_MESSAGE.destdir= Changing install location to DESTDIR 
22SUBST_FILES.destdir= setup.ml 
23SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' 
24 
25DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib 
26 
27PLIST_VARS+= opt 
28.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ 
29 (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") 
30PLIST.opt= yes 
31 15
32post-build: 16#SUBST_CLASSES+= destdir
33 cd ${WRKSRC} && ocamlbuild src/react.cmxs 17#SUBST_STAGE.destdir= post-configure
 18#SUBST_MESSAGE.destdir= Changing install location to DESTDIR
 19#SUBST_FILES.destdir= setup.ml
 20#SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,'
34 21
35post-install: 22.include "../../mk/ocaml.mk"
36 cd ${WRKSRC} && ${INSTALL_LIB} _build/src/react.cmxs ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/react 
37.endif 
38 
39do-configure: 
40 cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS} 
41 23
42do-build: 24do-build:
43 cd ${WRKSRC} && ocaml setup.ml -build 25.if ${OCAML_USE_OPT_COMPILER} == yes
44 26 cd ${WRKSRC} && ocaml pkg/build.ml native=true native-dynlink=true
45pre-install: 27.else
46 ${MKDIR} ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib 28 cd ${WRKSRC} && ocaml pkg/build.ml
 29.endif
47 30
48do-install: 31do-install:
49 cd ${WRKSRC} && ocaml setup.ml -install 32 for i in react.cma react.cmi react.mli react_top.cma; do \
 33 ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i \
 34 ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/react; \
 35 done
 36.if ${OCAML_USE_OPT_COMPILER} == yes
 37 for i in react.a react.cmx react.cmxa react.cmxs react_top.a react_top.cmxa \
 38 react_top.cmxs; do \
 39 ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i \
 40 ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/react; \
 41 done
 42.endif
 43 ${INSTALL_DATA} ${WRKSRC}/_build/pkg/META \
 44 ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/react
50 45
51.include "../../lang/ocaml/buildlink3.mk" 46.include "../../devel/ocaml-findlib/buildlink3.mk"
52.include "../../mk/bsd.pkg.mk" 47.include "../../mk/bsd.pkg.mk"

cvs diff -r1.2 -r1.3 pkgsrc/devel/ocaml-react/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/ocaml-react/PLIST 2012/08/16 11:49:30 1.2
+++ pkgsrc/devel/ocaml-react/PLIST 2014/10/09 21:38:49 1.3
@@ -1,11 +1,15 @@ @@ -1,11 +1,15 @@
1@comment $NetBSD: PLIST,v 1.2 2012/08/16 11:49:30 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.3 2014/10/09 21:38:49 jaapb Exp $
2@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/react 2@unexec %D/libexec/ocaml-findlib-register del %D/${OCAML_SITELIB}/react
3lib/ocaml/site-lib/react/META 3${OCAML_SITELIB}/react/META
4${PLIST.opt}lib/ocaml/site-lib/react/react.a 4${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react.a
5lib/ocaml/site-lib/react/react.cmi 5${OCAML_SITELIB}/react/react.cmi
6${PLIST.opt}lib/ocaml/site-lib/react/react.cma 6${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react.cma
7${PLIST.opt}lib/ocaml/site-lib/react/react.cmx 7${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react.cmx
8${PLIST.opt}lib/ocaml/site-lib/react/react.cmxa 8${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react.cmxa
9${PLIST.opt}lib/ocaml/site-lib/react/react.cmxs 9${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react.cmxs
10lib/ocaml/site-lib/react/react.mli 10${OCAML_SITELIB}/react/react.mli
11@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/react 11${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react_top.a
 12${OCAML_SITELIB}/react/react_top.cma
 13${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react_top.cmxa
 14${PLIST.ocaml-opt}${OCAML_SITELIB}/react/react_top.cmxs
 15@exec %D/libexec/ocaml-findlib-register add %D/${OCAML_SITELIB}/react

cvs diff -r1.2 -r1.3 pkgsrc/devel/ocaml-react/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/ocaml-react/distinfo 2012/08/16 11:49:30 1.2
+++ pkgsrc/devel/ocaml-react/distinfo 2014/10/09 21:38:49 1.3
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.2 2012/08/16 11:49:30 wiz Exp $ 1$NetBSD: distinfo,v 1.3 2014/10/09 21:38:49 jaapb Exp $
2 2
3SHA1 (react-0.9.4.tbz) = b055d40f43411f8367eeb11f4e87f7d3955d7b2d 3SHA1 (react-1.2.0.tbz) = 00804b409432fbb5ecbfb78d3802d494f4c666d7
4RMD160 (react-0.9.4.tbz) = 64fc6c80cb4ff1c52daa89dda0d774297f900b6c 4RMD160 (react-1.2.0.tbz) = 07a2621d5bef6c6509b80d7385393fbcded5139c
5Size (react-0.9.4.tbz) = 82964 bytes 5Size (react-1.2.0.tbz) = 64665 bytes

File Deleted: pkgsrc/devel/ocaml-react/Attic/PLIST.opt