From owner-svn-ports-all@FreeBSD.ORG Wed Mar 26 20:01:24 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24CEF658; Wed, 26 Mar 2014 20:01:24 +0000 (UTC) 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 1176E37A; Wed, 26 Mar 2014 20:01:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2QK1NEW061696; Wed, 26 Mar 2014 20:01:23 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2QK1NfN061693; Wed, 26 Mar 2014 20:01:23 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201403262001.s2QK1NfN061693@svn.freebsd.org> From: John Marino Date: Wed, 26 Mar 2014 20:01:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349285 - head/devel/ocaml-react 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.17 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: Wed, 26 Mar 2014 20:01:24 -0000 Author: marino Date: Wed Mar 26 20:01:23 2014 New Revision: 349285 URL: http://svnweb.freebsd.org/changeset/ports/349285 QAT: https://qat.redports.org/buildarchive/r349285/ Log: devel/ocaml-react: Upgrade version 0.9.2 -> 0.9.4 and stage The maintainer patch worked out of the box, but it came from a time before staging. Significant rework was necessary to provide stage support, but luckily Jaap already added this support for the pkgsrc version he maintains (also at devel/ocaml-react over there). PR: ports/176057 Submitted by: maintainer (Jaap Boender) Stage support: Taken from pkgsrc Modified: head/devel/ocaml-react/Makefile head/devel/ocaml-react/distinfo head/devel/ocaml-react/pkg-plist Modified: head/devel/ocaml-react/Makefile ============================================================================== --- head/devel/ocaml-react/Makefile Wed Mar 26 19:56:07 2014 (r349284) +++ head/devel/ocaml-react/Makefile Wed Mar 26 20:01:23 2014 (r349285) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= react -PORTVERSION= 0.9.2 -PORTREVISION= 1 +PORTVERSION= 0.9.4 CATEGORIES= devel MASTER_SITES= http://erratique.ch/software/react/releases/ PKGNAMEPREFIX= ocaml- @@ -12,6 +11,8 @@ EXTRACT_SUFX= .tbz MAINTAINER= jaapb@kerguelen.org COMMENT= OCaml module for functional reactive programming +LICENSE= BSD3CLAUSE + USE_OCAML= yes .if defined (WITHOUT_X11) OCAMLC_DEPEND= ocaml-notk>=3.11:${OCAMLC_PORT} @@ -19,24 +20,23 @@ OCAMLC_DEPEND= ocaml-notk>=3.11:${OCAML OCAMLC_DEPEND= ocaml>=3.11:${OCAMLC_PORT} .endif -USE_OCAML_LDCONFIG= yes +USE_OCAML_FINDLIB= yes + +post-patch: + @${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' \ + ${WRKSRC}/setup.ml -NO_STAGE= yes -.include +do-configure: + @cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS} do-build: - @cd ${WRKSRC} && ${SH} ./build + (cd ${WRKSRC} && ocaml setup.ml -build) + (cd ${WRKSRC} && ocamlbuild src/react.cmxs) do-install: - @cd ${WRKSRC} && INSTALLDIR=${PREFIX}/lib/ocaml/site-lib/${PORTNAME} ${SH} ./build install-plugin - -pre-install: -# For nonstandard prefixes -.if !exists(${OCAMLFIND_DESTDIR}) - ${MKDIR} ${OCAMLFIND_DESTDIR} -.endif -.if !exists(${OCAMLFIND_LDCONF}) - ${TOUCH} ${OCAMLFIND_LDCONF} -.endif + ${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR} + (cd ${WRKSRC} && ocaml setup.ml -install) + ${INSTALL_LIB} ${WRKSRC}/_build/src/react.cmxs \ + ${STAGEDIR}${OCAMLFIND_DESTDIR}/react -.include +.include Modified: head/devel/ocaml-react/distinfo ============================================================================== --- head/devel/ocaml-react/distinfo Wed Mar 26 19:56:07 2014 (r349284) +++ head/devel/ocaml-react/distinfo Wed Mar 26 20:01:23 2014 (r349285) @@ -1,2 +1,2 @@ -SHA256 (react-0.9.2.tbz) = b953e50abbb5c4065eb17a50a02341d380eff32fe8cb309a40eca2ddddef2a3a -SIZE (react-0.9.2.tbz) = 47337 +SHA256 (react-0.9.4.tbz) = 466ad4e2e7ff57c93c4e51511f53f2bdf32df46354458f4a158cd13bf3fbd4ab +SIZE (react-0.9.4.tbz) = 82964 Modified: head/devel/ocaml-react/pkg-plist ============================================================================== --- head/devel/ocaml-react/pkg-plist Wed Mar 26 19:56:07 2014 (r349284) +++ head/devel/ocaml-react/pkg-plist Wed Mar 26 20:01:23 2014 (r349285) @@ -1,11 +1,11 @@ lib/ocaml/site-lib/react/META +lib/ocaml/site-lib/react/react.a +lib/ocaml/site-lib/react/react.cma lib/ocaml/site-lib/react/react.cmi -lib/ocaml/site-lib/react/react.cmo lib/ocaml/site-lib/react/react.cmx +lib/ocaml/site-lib/react/react.cmxa lib/ocaml/site-lib/react/react.cmxs -lib/ocaml/site-lib/react/react.ml lib/ocaml/site-lib/react/react.mli -lib/ocaml/site-lib/react/react.o @dirrm lib/ocaml/site-lib/react @dirrmtry lib/ocaml/site-lib @dirrmtry lib/ocaml