pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/ocaml-topkg New package misc/ocaml-topkg, a packa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b3f78aa5aa47
branches: trunk
changeset: 365117:b3f78aa5aa47
user: jaapb <jaapb%pkgsrc.org@localhost>
date: Tue Jul 11 09:58:59 2017 +0000
description:
New package misc/ocaml-topkg, a packaging system for OCaml.
diffstat:
misc/ocaml-topkg/DESCR | 4 +++
misc/ocaml-topkg/Makefile | 47 ++++++++++++++++++++++++++++++++++++++++++
misc/ocaml-topkg/PLIST | 33 +++++++++++++++++++++++++++++
misc/ocaml-topkg/buildlink3.mk | 13 +++++++++++
misc/ocaml-topkg/distinfo | 6 +++++
5 files changed, 103 insertions(+), 0 deletions(-)
diffs (123 lines):
diff -r e942bd9e48aa -r b3f78aa5aa47 misc/ocaml-topkg/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/ocaml-topkg/DESCR Tue Jul 11 09:58:59 2017 +0000
@@ -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 -r e942bd9e48aa -r b3f78aa5aa47 misc/ocaml-topkg/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/ocaml-topkg/Makefile Tue Jul 11 09:58:59 2017 +0000
@@ -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@localhost
+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 -r e942bd9e48aa -r b3f78aa5aa47 misc/ocaml-topkg/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/ocaml-topkg/PLIST Tue Jul 11 09:58:59 2017 +0000
@@ -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 -r e942bd9e48aa -r b3f78aa5aa47 misc/ocaml-topkg/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/ocaml-topkg/buildlink3.mk Tue Jul 11 09:58:59 2017 +0000
@@ -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 -r e942bd9e48aa -r b3f78aa5aa47 misc/ocaml-topkg/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/ocaml-topkg/distinfo Tue Jul 11 09:58:59 2017 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index