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))`.diff -r1.5 -r1.6 pkgsrc/devel/ocaml-react/Makefile
(jaapb)
@@ -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 | |||
3 | PKGNAME= ocaml-${DISTNAME} | 3 | DISTNAME= react-1.2.0 | |
4 | DISTNAME= react-0.9.4 | |||
5 | PKGREVISION= 2 | |||
6 | CATEGORIES= devel | 4 | CATEGORIES= devel | |
7 | MASTER_SITES= http://erratique.ch/software/react/releases/ | 5 | MASTER_SITES= http://erratique.ch/software/react/releases/ | |
8 | EXTRACT_SUFX= .tbz | 6 | EXTRACT_SUFX= .tbz | |
9 | 7 | |||
10 | MAINTAINER= jaapb@kerguelen.org | 8 | MAINTAINER= jaapb@NetBSD.org | |
11 | HOMEPAGE= http://erratique.ch/software/react | 9 | HOMEPAGE= http://erratique.ch/software/react | |
12 | COMMENT= OCaml module for functional reactive programming | 10 | COMMENT= OCaml module for functional reactive programming | |
13 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
14 | 12 | |||
15 | USE_LANGUAGES= c | 13 | CONFIGURE_ARGS+= --prefix "${PREFIX}" --destdir "${DESTDIR}" | |
16 | HAS_CONFIGURE= yes | 14 | INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}/react | |
17 | CONFIGURE_ARGS= --prefix "${PREFIX}" --destdir "${DESTDIR}" | |||
18 | ||||
19 | SUBST_CLASSES+= destdir | |||
20 | SUBST_STAGE.destdir= post-configure | |||
21 | SUBST_MESSAGE.destdir= Changing install location to DESTDIR | |||
22 | SUBST_FILES.destdir= setup.ml | |||
23 | SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' | |||
24 | ||||
25 | DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib | |||
26 | ||||
27 | PLIST_VARS+= opt | |||
28 | .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ | |||
29 | (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") | |||
30 | PLIST.opt= yes | |||
31 | 15 | |||
32 | post-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 | |||
35 | post-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 | ||||
39 | do-configure: | |||
40 | cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS} | |||
41 | 23 | |||
42 | do-build: | 24 | do-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 | ||
45 | pre-install: | 27 | .else | |
46 | ${MKDIR} ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib | 28 | cd ${WRKSRC} && ocaml pkg/build.ml | |
29 | .endif | |||
47 | 30 | |||
48 | do-install: | 31 | do-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" |
@@ -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 | |
3 | lib/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 | |
5 | lib/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 | |
10 | lib/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 |
@@ -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 | |||
3 | SHA1 (react-0.9.4.tbz) = b055d40f43411f8367eeb11f4e87f7d3955d7b2d | 3 | SHA1 (react-1.2.0.tbz) = 00804b409432fbb5ecbfb78d3802d494f4c666d7 | |
4 | RMD160 (react-0.9.4.tbz) = 64fc6c80cb4ff1c52daa89dda0d774297f900b6c | 4 | RMD160 (react-1.2.0.tbz) = 07a2621d5bef6c6509b80d7385393fbcded5139c | |
5 | Size (react-0.9.4.tbz) = 82964 bytes | 5 | Size (react-1.2.0.tbz) = 64665 bytes |