diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-09-27 03:25:46 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-09-27 03:25:48 +0000 |
commit | bc6b762a2556e9283949156ce67a6b6bab5e5bee (patch) | |
tree | 3ee4a02b70cb406d3b62db1608e29db05ed6ba77 | |
parent | 777eda85db5e886883f3b6ba1dae61620cf18d67 (diff) | |
download | ports-bc6b762a2556e9283949156ce67a6b6bab5e5bee.tar.gz ports-bc6b762a2556e9283949156ce67a6b6bab5e5bee.zip |
devel/ocaml-res: massage the port in preparation for OCaml 4.06+
- Update to version 5.0.1, adjust LICENSE, take maintainership
- Now builds itself with Dune (devel/ocaml-dune): GC no longer
useful USE_OCAML_* and configure-related knobs; build process
is now also jobs-safe because of this
- Project had moved to GitHub: switch to USE_GITHUB and update
WWW line in the port description
- Convert to static pkg-plist to make tracking changes easier
-rw-r--r-- | devel/ocaml-res/Makefile | 38 | ||||
-rw-r--r-- | devel/ocaml-res/distinfo | 5 | ||||
-rw-r--r-- | devel/ocaml-res/pkg-descr | 2 | ||||
-rw-r--r-- | devel/ocaml-res/pkg-plist | 54 |
4 files changed, 73 insertions, 26 deletions
diff --git a/devel/ocaml-res/Makefile b/devel/ocaml-res/Makefile index 60d35f72a600..5a2634bd3f14 100644 --- a/devel/ocaml-res/Makefile +++ b/devel/ocaml-res/Makefile @@ -1,44 +1,36 @@ # Created by: Stanislav Sedov <ssedov@mbsd.msk.ru> PORTNAME= res -PORTVERSION= 4.0.4 +PORTVERSION= 5.0.1 CATEGORIES= devel -MASTER_SITES= http://cdn.bitbucket.org/mmottl/res/downloads/ PKGNAMEPREFIX= ocaml- -MAINTAINER= ports@FreeBSD.org -COMMENT= Automatically Resizing Contiguous Memory for OCaml +MAINTAINER= danfe@FreeBSD.org +COMMENT= OCaml library for resizable arrays and strings -LICENSE= LGPL20+ # source says LGPL20+, COPYING says LGPL21 -LICENSE_FILE= ${WRKSRC}/COPYING.txt +LICENSE= LGPL21+ # with a special exception to clause 6 +LICENSE_FILE= ${WRKSRC}/LICENSE.md -BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild +BUILD_DEPENDS= dune:devel/ocaml-dune USE_OCAML= yes -USE_OCAML_FINDLIB=yes -USE_OCAMLFIND_PLIST=yes -USE_OCAML_WASH= yes - -HAS_CONFIGURE= yes -CONFIGURE_ARGS= --prefix ${PREFIX} --disable-docs --disable-examples -MAKE_JOBS_UNSAFE=yes +USE_GITHUB= yes +GH_ACCOUNT= mmottl DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} -PORTDOCS= * -PORTEXAMPLES= * - OPTIONS_DEFINE= DOCS EXAMPLES -post-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for i in AUTHORS.txt CHANGES.txt README.md TODO.md - ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} -.endfor +do-build: + cd ${BUILD_WRKSRC} && dune build -p ${PORTNAME} -j ${MAKE_JOBS_NUMBER} + +do-install: + cd ${INSTALL_WRKSRC} && dune install --destdir=${STAGEDIR} \ + --libdir=${OCAML_SITELIBDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/*.ml ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/devel/ocaml-res/distinfo b/devel/ocaml-res/distinfo index c7b18ca86459..b6b781f070d9 100644 --- a/devel/ocaml-res/distinfo +++ b/devel/ocaml-res/distinfo @@ -1,2 +1,3 @@ -SHA256 (res-4.0.4.tar.gz) = bac9fddebca10e5cdb364babc49e62df0f6289cdadf3cef2810d9b4b81e23bd1 -SIZE (res-4.0.4.tar.gz) = 72603 +TIMESTAMP = 1540497367 +SHA256 (mmottl-res-5.0.1_GH0.tar.gz) = df7965f5021a4422a462545647aad420a50dd8ba69c504eff74b3c346593b70d +SIZE (mmottl-res-5.0.1_GH0.tar.gz) = 31771 diff --git a/devel/ocaml-res/pkg-descr b/devel/ocaml-res/pkg-descr index 2737c3e8c103..34ba9cb81770 100644 --- a/devel/ocaml-res/pkg-descr +++ b/devel/ocaml-res/pkg-descr @@ -8,4 +8,4 @@ access to elements. There are also functors that allow the generation of similar modules which use different reallocation strategies. -WWW: https://bitbucket.org/mmottl/res +WWW: https://mmottl.github.io/res/ diff --git a/devel/ocaml-res/pkg-plist b/devel/ocaml-res/pkg-plist new file mode 100644 index 000000000000..a594606829f9 --- /dev/null +++ b/devel/ocaml-res/pkg-plist @@ -0,0 +1,54 @@ +%%OCAML_SITELIBDIR%%/res/META +%%OCAML_SITELIBDIR%%/res/dune-package +%%OCAML_SITELIBDIR%%/res/nopres_impl.ml +%%OCAML_SITELIBDIR%%/res/nopres_intf.ml +%%OCAML_SITELIBDIR%%/res/opam +%%OCAML_SITELIBDIR%%/res/pres_impl.ml +%%OCAML_SITELIBDIR%%/res/pres_intf.ml +%%OCAML_SITELIBDIR%%/res/res.a +%%OCAML_SITELIBDIR%%/res/res.cma +%%OCAML_SITELIBDIR%%/res/res.cmi +%%OCAML_SITELIBDIR%%/res/res.cmt +%%OCAML_SITELIBDIR%%/res/res.cmti +%%OCAML_SITELIBDIR%%/res/res.cmx +%%OCAML_SITELIBDIR%%/res/res.cmxa +%%OCAML_SITELIBDIR%%/res/res.cmxs +%%OCAML_SITELIBDIR%%/res/res.ml +%%OCAML_SITELIBDIR%%/res/res.mli +%%OCAML_SITELIBDIR%%/res/res__.cmi +%%OCAML_SITELIBDIR%%/res/res__.cmt +%%OCAML_SITELIBDIR%%/res/res__.cmx +%%OCAML_SITELIBDIR%%/res/res__.ml +%%OCAML_SITELIBDIR%%/res/res__Nopres_impl.cmi +%%OCAML_SITELIBDIR%%/res/res__Nopres_impl.cmt +%%OCAML_SITELIBDIR%%/res/res__Nopres_impl.cmx +%%OCAML_SITELIBDIR%%/res/res__Nopres_intf.cmi +%%OCAML_SITELIBDIR%%/res/res__Nopres_intf.cmt +%%OCAML_SITELIBDIR%%/res/res__Nopres_intf.cmx +%%OCAML_SITELIBDIR%%/res/res__Pres_impl.cmi +%%OCAML_SITELIBDIR%%/res/res__Pres_impl.cmt +%%OCAML_SITELIBDIR%%/res/res__Pres_impl.cmx +%%OCAML_SITELIBDIR%%/res/res__Pres_intf.cmi +%%OCAML_SITELIBDIR%%/res/res__Pres_intf.cmt +%%OCAML_SITELIBDIR%%/res/res__Pres_intf.cmx +%%OCAML_SITELIBDIR%%/res/res__Strat.cmi +%%OCAML_SITELIBDIR%%/res/res__Strat.cmt +%%OCAML_SITELIBDIR%%/res/res__Strat.cmx +%%OCAML_SITELIBDIR%%/res/res__Weak_impl.cmi +%%OCAML_SITELIBDIR%%/res/res__Weak_impl.cmt +%%OCAML_SITELIBDIR%%/res/res__Weak_impl.cmx +%%OCAML_SITELIBDIR%%/res/res__Weak_intf.cmi +%%OCAML_SITELIBDIR%%/res/res__Weak_intf.cmt +%%OCAML_SITELIBDIR%%/res/res__Weak_intf.cmx +%%OCAML_SITELIBDIR%%/res/strat.ml +%%OCAML_SITELIBDIR%%/res/weak_impl.ml +%%OCAML_SITELIBDIR%%/res/weak_intf.ml +%%PORTDOCS%%%%DOCSDIR%%/CHANGES.md +%%PORTDOCS%%%%DOCSDIR%%/LICENSE.md +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/buffer_ex.ml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/defstrat.ml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dune +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stupid_ga.ml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/weak_ex.ml |