Added devel/ocaml-dune-configurator, split off from devel/ocaml-dune

This package helps writing availability tests for ocaml-dune; it had to
be split off because of bootstrap procedure changes in dune itself.
This commit is contained in:
jaapb 2020-12-09 10:52:17 +00:00
parent 01f12dedb9
commit 3ced582adb
4 changed files with 87 additions and 0 deletions

View file

@ -0,0 +1,8 @@
dune-configurator is a small library that helps writing OCaml scripts that
test features available on the system, in order to generate config.h files
for instance. Among other things, dune-configurator allows one to:
* test if a C program compiles
* query pkg-config
* import #define from OCaml header files
* generate config.h file

View file

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 2020/12/09 10:52:17 jaapb Exp $
.include "../../devel/ocaml-dune/Makefile.common"
PKGNAME= ocaml-dune-configurator-${DUNE_VERSION}
CATEGORIES= devel
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= https://github.com/ocaml/dune/
COMMENT= Configuration test library for Dune
OCAML_USE_DUNE= yes
DUNE_BUILD_PACKAGES= dune-configurator
.include "../../mk/ocaml.mk"
.include "../../devel/ocaml-csexp/buildlink3.mk"
.include "../../devel/ocaml-result/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,47 @@
@comment $NetBSD: PLIST,v 1.1 2020/12/09 10:52:17 jaapb Exp $
${OCAML_SITELIB}/dune-configurator/.private/configurator__Dune_lang.cmi
${OCAML_SITELIB}/dune-configurator/.private/configurator__Import.cmi
${OCAML_SITELIB}/dune-configurator/.private/configurator__Ocaml_config.cmi
${OCAML_SITELIB}/dune-configurator/META
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator.a
${OCAML_SITELIB}/dune-configurator/configurator.cma
${OCAML_SITELIB}/dune-configurator/configurator.cmi
${OCAML_SITELIB}/dune-configurator/configurator.cmt
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator.cmx
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator.cmxa
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator.cmxs
${OCAML_SITELIB}/dune-configurator/configurator.ml
${OCAML_SITELIB}/dune-configurator/configurator__.cmi
${OCAML_SITELIB}/dune-configurator/configurator__.cmt
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator__.cmx
${OCAML_SITELIB}/dune-configurator/configurator__.ml
${OCAML_SITELIB}/dune-configurator/configurator__Dune_lang.cmt
${OCAML_SITELIB}/dune-configurator/configurator__Dune_lang.cmti
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator__Dune_lang.cmx
${OCAML_SITELIB}/dune-configurator/configurator__Extract_obj.cmi
${OCAML_SITELIB}/dune-configurator/configurator__Extract_obj.cmt
${OCAML_SITELIB}/dune-configurator/configurator__Extract_obj.cmti
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator__Extract_obj.cmx
${OCAML_SITELIB}/dune-configurator/configurator__Import.cmt
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator__Import.cmx
${OCAML_SITELIB}/dune-configurator/configurator__Ocaml_config.cmt
${OCAML_SITELIB}/dune-configurator/configurator__Ocaml_config.cmti
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator__Ocaml_config.cmx
${OCAML_SITELIB}/dune-configurator/configurator__V1.cmi
${OCAML_SITELIB}/dune-configurator/configurator__V1.cmt
${OCAML_SITELIB}/dune-configurator/configurator__V1.cmti
${PLIST.ocaml-opt}${OCAML_SITELIB}/dune-configurator/configurator__V1.cmx
${OCAML_SITELIB}/dune-configurator/dune-package
${OCAML_SITELIB}/dune-configurator/dune_lang.ml
${OCAML_SITELIB}/dune-configurator/dune_lang.mli
${OCAML_SITELIB}/dune-configurator/extract_obj.ml
${OCAML_SITELIB}/dune-configurator/extract_obj.mli
${OCAML_SITELIB}/dune-configurator/import.ml
${OCAML_SITELIB}/dune-configurator/ocaml_config.ml
${OCAML_SITELIB}/dune-configurator/ocaml_config.mli
${OCAML_SITELIB}/dune-configurator/opam
${OCAML_SITELIB}/dune-configurator/v1.ml
${OCAML_SITELIB}/dune-configurator/v1.mli
share/doc/dune-configurator/CHANGES.md
share/doc/dune-configurator/LICENSE.md
share/doc/dune-configurator/README.md

View file

@ -0,0 +1,14 @@
# $NetBSD: buildlink3.mk,v 1.1 2020/12/09 10:52:17 jaapb Exp $
BUILDLINK_TREE+= ocaml-dune-configurator
.if !defined(OCAML_DUNE_CONFIGURATOR_BUILDLINK3_MK)
OCAML_DUNE_CONFIGURATOR_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.ocaml-dune-configurator+= ocaml-dune-configurator>=2.7.1
BUILDLINK_PKGSRCDIR.ocaml-dune-configurator?= ../../devel/ocaml-dune-configurator
.include "../../devel/ocaml-dune/buildlink3.mk"
.endif # OCAML_DUNE_CONFIGURATOR_BUILDLINK3_MK
BUILDLINK_TREE+= -ocaml-dune-configurator