Hi here's an update for devel/ocaml-react to 1.2.0. I use the NAME variable so that I can use similar Makefiles for other OCaml libraries from Daniel Bünzli without forgetting to substitute the name somewhere. OK?
Christopher Index: Makefile =================================================================== RCS file: /cvs/ports/devel/ocaml-react/Makefile,v retrieving revision 1.5 diff -u -p -r1.5 Makefile --- Makefile 27 Aug 2014 08:05:17 -0000 1.5 +++ Makefile 22 Sep 2014 11:47:16 -0000 @@ -3,14 +3,14 @@ COMMENT = functional reactive programming (FRP) for OCaml CATEGORIES = devel -V = 1.1.0 -DISTNAME = react-${V} +V = 1.2.0 +NAME = react +DISTNAME = ${NAME}-${V} EXTRACT_SUFX = .tbz -NAME = ocaml-react -PKGNAME = ${NAME}-${V} -MASTER_SITES = http://erratique.ch/software/react/releases/ +PKGNAME = ocaml-${DISTNAME} +MASTER_SITES = http://erratique.ch/software/${NAME}/releases/ -HOMEPAGE = http://erratique.ch/software/react +HOMEPAGE = http://erratique.ch/software/${NAME} # BSD3 @@ -18,14 +18,15 @@ PERMIT_PACKAGE_CDROM = Yes MODULES = lang/ocaml +BUILD_DEPENDS = sysutils/findlib RUN_DEPENDS = lang/ocaml -ALL_TARGET = react.{cma,cmi,mli} +ALL_TARGET = ${NAME}.{cma,cmi,mli} .include <bsd.port.arch.mk> .if ${PROPERTIES:Mocaml_native} -ALL_TARGET += react.{a,cmx,cmxa} +ALL_TARGET += ${NAME}.{a,cmx,cmxa} .if ${PROPERTIES:Mocaml_native_dynlink} -ALL_TARGET += react.cmxs +ALL_TARGET += ${NAME}.cmxs .endif .endif @@ -34,14 +35,12 @@ do-build: cd ${WRKSRC} && ocamlbuild ${ALL_TARGET} do-install: - ${INSTALL_SCRIPT_DIR} ${PREFIX}/lib/ocaml/react - ${INSTALL_SCRIPT} \ + env -i ${MAKE_ENV} ocamlfind install ${NAME} \ ${WRKSRC}/pkg/META \ - ${ALL_TARGET:S|^|${WRKSRC}/_build/src/|} \ - ${PREFIX}/lib/ocaml/react/ - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${NAME}/api - ${INSTALL_DATA} ${WRKDIST}/{README,CHANGES}.md ${PREFIX}/share/doc/${NAME}/ - ${INSTALL_DATA} ${WRKDIST}/doc/* ${PREFIX}/share/doc/${NAME}/api/ + ${ALL_TARGET:S|^|${WRKSRC}/_build/src/|} + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml-${NAME}/api + ${INSTALL_DATA} ${WRKDIST}/{README,CHANGES}.md ${PREFIX}/share/doc/ocaml-${NAME}/ + ${INSTALL_DATA} ${WRKDIST}/doc/* ${PREFIX}/share/doc/ocaml-${NAME}/api/ .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/ocaml-react/distinfo,v retrieving revision 1.2 diff -u -p -r1.2 distinfo --- distinfo 27 Aug 2014 08:05:17 -0000 1.2 +++ distinfo 22 Sep 2014 11:47:16 -0000 @@ -1,2 +1,2 @@ -SHA256 (react-1.1.0.tbz) = pzYUWYqugY//Vv2g/AU9fuNpLZNh1epxokC94yGy1b8= -SIZE (react-1.1.0.tbz) = 62472 +SHA256 (react-1.2.0.tbz) = iHquqRkYcLwPN/lFwC7EyQSX2UnNTe3D1WXD++x60E4= +SIZE (react-1.2.0.tbz) = 64665 -- http://gmerlin.de OpenPGP: http://gmerlin.de/christopher.pub F190 D013 8F01 AA53 E080 3F3C F17F B0A1 D44E 4FEE
signature.asc
Description: PGP signature