summaryrefslogtreecommitdiff
path: root/misc/ocaml-topkg
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ocaml-topkg')
-rw-r--r--misc/ocaml-topkg/DESCR4
-rw-r--r--misc/ocaml-topkg/Makefile47
-rw-r--r--misc/ocaml-topkg/PLIST33
-rw-r--r--misc/ocaml-topkg/buildlink3.mk13
-rw-r--r--misc/ocaml-topkg/distinfo6
5 files changed, 103 insertions, 0 deletions
diff --git a/misc/ocaml-topkg/DESCR b/misc/ocaml-topkg/DESCR
new file mode 100644
index 00000000000..ff73203fe5a
--- /dev/null
+++ b/misc/ocaml-topkg/DESCR
@@ -0,0 +1,4 @@
+Topkg is a packager for distributing OCaml software. It provides an API to
+describe the files a package installs in a given build configuration and to
+specify information about the package's distribution creation and publication
+procedures.
diff --git a/misc/ocaml-topkg/Makefile b/misc/ocaml-topkg/Makefile
new file mode 100644
index 00000000000..57dbdba4463
--- /dev/null
+++ b/misc/ocaml-topkg/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1 2017/07/11 09:58:59 jaapb Exp $
+
+DISTNAME= topkg-0.9.0
+PKGNAME= ocaml-${DISTNAME}
+CATEGORIES= misc
+MASTER_SITES= http://erratique.ch/software/topkg/releases/
+EXTRACT_SUFX= .tbz
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= http://erratique.ch/software/topkg/
+COMMENT= Transitory OCaml software packager
+LICENSE= isc
+
+OCAML_USE_TOPKG= yes
+INSTALLATION_DIRS+= share/doc/topkg
+
+.include "../../mk/ocaml.mk"
+
+# Normally, we'd do this using opam-installer, but that requires
+# devel/ocaml-cmdliner, which requires this package.
+do-install:
+ for i in CHANGES.md LICENSE.md README.md; do \
+ ${INSTALL_DATA} ${WRKSRC}/_build/$$i \
+ ${DESTDIR}${PREFIX}/share/doc/topkg; \
+ done
+ ${INSTALL_DATA} ${WRKSRC}/_build/topkg.opam \
+ ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/topkg/opam
+ for i in pkg/META src/topkg.cma src/topkg.cmi src/topkg.cmti \
+ src/topkg.mli; do \
+ ${INSTALL_DATA} ${WRKSRC}/_build/$$i \
+ ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/topkg; \
+ done
+.if ${OCAML_USE_OPT_COMPILER} == "yes"
+ for i in topkg.a topkg.cmx topkg.cmxa topkg.cmxs topkg_build.cmx \
+ topkg_cmd.cmx topkg_codec.cmx topkg_conf.cmx topkg_distrib.cmx \
+ topkg_fexts.cmx topkg_fpath.cmx topkg_install.cmx \
+ topkg_ipc.cmx topkg_log.cmx topkg_main.cmx topkg_opam.cmx \
+ topkg_os.cmx topkg_pkg.cmx topkg_publish.cmx topkg_result.cmx \
+ topkg_string.cmx topkg_test.cmx topkg_vcs.cmx; do \
+ ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i \
+ ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/topkg; \
+ done
+.endif
+
+.include "../../devel/ocaml-result/buildlink3.mk"
+.include "../../devel/ocamlbuild/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/ocaml-topkg/PLIST b/misc/ocaml-topkg/PLIST
new file mode 100644
index 00000000000..eddcba4c501
--- /dev/null
+++ b/misc/ocaml-topkg/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/11 09:58:59 jaapb Exp $
+${OCAML_SITELIB}/topkg/META
+${OCAML_SITELIB}/topkg/opam
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg.a
+${OCAML_SITELIB}/topkg/topkg.cma
+${OCAML_SITELIB}/topkg/topkg.cmi
+${OCAML_SITELIB}/topkg/topkg.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg.cmxs
+${OCAML_SITELIB}/topkg/topkg.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_build.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_cmd.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_codec.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_conf.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_distrib.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_fexts.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_fpath.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_install.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_ipc.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_log.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_main.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_opam.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_os.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_pkg.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_publish.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_result.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_string.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_test.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/topkg/topkg_vcs.cmx
+share/doc/topkg/CHANGES.md
+share/doc/topkg/LICENSE.md
+share/doc/topkg/README.md
diff --git a/misc/ocaml-topkg/buildlink3.mk b/misc/ocaml-topkg/buildlink3.mk
new file mode 100644
index 00000000000..6c9bcf3f96b
--- /dev/null
+++ b/misc/ocaml-topkg/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/07/11 09:58:59 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-topkg
+
+.if !defined(OCAML_TOPKG_BUILDLINK3_MK)
+OCAML_TOPKG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-topkg+= ocaml-topkg>=0.9.0
+BUILDLINK_PKGSRCDIR.ocaml-topkg?= ../../misc/ocaml-topkg
+
+.endif # OCAML_TOPKG_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-topkg
diff --git a/misc/ocaml-topkg/distinfo b/misc/ocaml-topkg/distinfo
new file mode 100644
index 00000000000..d5fb73a1405
--- /dev/null
+++ b/misc/ocaml-topkg/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/07/11 09:58:59 jaapb Exp $
+
+SHA1 (topkg-0.9.0.tbz) = e9a8af20c3f25813dc7069d98ff9a26373381ad6
+RMD160 (topkg-0.9.0.tbz) = cdd65d30ca006a594fd8d38ffc477f94cd8ebe4c
+SHA512 (topkg-0.9.0.tbz) = 3acbb9896a407fe26e1279eb4c4cbb0c29986c7202d6b8df994d8c7c9e5dfc1a9756f11d4af92739479881cadf3a953aa250ac4b8daaa0466cce4b5eb88a4f95
+Size (topkg-0.9.0.tbz) = 93871 bytes