pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ocaml-opam: add new package



Module Name:	pkgsrc-wip
Committed By:	Kate <kit-ty-kate%exn.st@localhost>
Pushed By:	kit-ty-kate
Date:		Tue Aug 25 11:33:43 2026 +0100
Changeset:	6c0d309b2f69f2ee515d3ee6817f72c7f8c33063

Added Files:
	ocaml-opam/DESCR
	ocaml-opam/Makefile
	ocaml-opam/PLIST
	ocaml-opam/buildlink3.mk
	ocaml-opam/distinfo

Log Message:
ocaml-opam: add new package

Differences from pkgsrc's misc/ocaml-opam:
- update from 2.1.3 to 2.5.2 (fixing two CVEs in the process)
- the -full tarball is now used instead of the one autogenerated by
  github
- rsync is now a runtime dependency (it is technically optional but it
  helps users to have it for the moment)
- ocaml-dune is now explicitly a build dependency but no longer used
  as-is. It is now used through gmake
- ocaml-cmdliner, ocaml-re, ocamlgraph, dose3, ocaml-cudf and
  ocaml-opam-file-format are no longer dependencies
- the vendored versions of all the dependencies contained by the -full
  archive is now used. This allows to simplify the build process
  greatly and avoids having to import all the new dependencies on new opam
  releases. This is also what a majority of BSD, Linux and macOS distributions
  out-there do.
- The opam-solver library is no longer installed. This could not be used
  on its own anyway because the OCaml build process would require other
  modules that are not installed whose checksum wouldn't match if they
  were built separately.
- Dummy and unused META, dune-package and opam files generated by dune
  are no longer installed
- CHANGES, LICENSE and README.md are no longer installed

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6c0d309b2f69f2ee515d3ee6817f72c7f8c33063

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ocaml-opam/DESCR         |  3 +++
 ocaml-opam/Makefile      | 29 +++++++++++++++++++++++++++++
 ocaml-opam/PLIST         | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 ocaml-opam/buildlink3.mk | 14 ++++++++++++++
 ocaml-opam/distinfo      |  5 +++++
 5 files changed, 99 insertions(+)

diffs:
diff --git a/ocaml-opam/DESCR b/ocaml-opam/DESCR
new file mode 100644
index 0000000000..35796fc9f4
--- /dev/null
+++ b/ocaml-opam/DESCR
@@ -0,0 +1,3 @@
+OPAM is a source-based package manager for OCaml. It supports multiple
+simultaneous compiler installations, flexible package constraints, and a
+Git-friendly development workflow.
diff --git a/ocaml-opam/Makefile b/ocaml-opam/Makefile
new file mode 100644
index 0000000000..6b3f56893d
--- /dev/null
+++ b/ocaml-opam/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME=	opam-full-2.5.2
+PKGNAME=	ocaml-${DISTNAME:S/-full//}
+PKGREVISION=	1
+CATEGORIES=	misc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ocaml/opam/releases/download/${PKGVERSION_NOREV}/}
+
+MAINTAINER=	kit-ty-kate%exn.st@localhost
+HOMEPAGE=	https://opam.ocaml.org/
+COMMENT=	OCaml package manager
+LICENSE=	gnu-lgpl-v3
+
+DEPENDS+=	curl-[0-9]*:../../www/curl
+DEPENDS+=	rsync-[0-9]*:../../net/rsync
+
+BUILD_DEPENDS+=	ocaml-dune-[0-9]*:../../devel/ocaml-dune
+
+MAKE_JOBS_SAFE=	no
+USE_LANGUAGES+=	c c++
+HAS_CONFIGURE=	yes
+USE_TOOLS+=	gmake
+
+CONFIGURE_ARGS+=	--prefix=${PREFIX}
+CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
+CONFIGURE_ARGS+=	--with-vendored-deps --with-mccs
+
+.include "../../lang/ocaml/ocaml.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ocaml-opam/PLIST b/ocaml-opam/PLIST
new file mode 100644
index 0000000000..641e6fb1c8
--- /dev/null
+++ b/ocaml-opam/PLIST
@@ -0,0 +1,48 @@
+@comment $NetBSD$
+bin/opam
+bin/opam-installer
+man/man1/opam-admin-add-constraint.1
+man/man1/opam-admin-add-hashes.1
+man/man1/opam-admin-cache.1
+man/man1/opam-admin-check.1
+man/man1/opam-admin-compare-versions.1
+man/man1/opam-admin-filter.1
+man/man1/opam-admin-help.1
+man/man1/opam-admin-index.1
+man/man1/opam-admin-lint.1
+man/man1/opam-admin-list.1
+man/man1/opam-admin-make.1
+man/man1/opam-admin-migrate-extrafiles.1
+man/man1/opam-admin-update-extrafiles.1
+man/man1/opam-admin-upgrade.1
+man/man1/opam-admin.1
+man/man1/opam-clean.1
+man/man1/opam-config.1
+man/man1/opam-env.1
+man/man1/opam-exec.1
+man/man1/opam-help.1
+man/man1/opam-info.1
+man/man1/opam-init.1
+man/man1/opam-install.1
+man/man1/opam-installer.1
+man/man1/opam-lint.1
+man/man1/opam-list.1
+man/man1/opam-lock.1
+man/man1/opam-option.1
+man/man1/opam-pin.1
+man/man1/opam-reinstall.1
+man/man1/opam-remote.1
+man/man1/opam-remove.1
+man/man1/opam-repository.1
+man/man1/opam-search.1
+man/man1/opam-show.1
+man/man1/opam-source.1
+man/man1/opam-switch.1
+man/man1/opam-tree.1
+man/man1/opam-uninstall.1
+man/man1/opam-unpin.1
+man/man1/opam-update.1
+man/man1/opam-upgrade.1
+man/man1/opam-var.1
+man/man1/opam-why.1
+man/man1/opam.1
diff --git a/ocaml-opam/buildlink3.mk b/ocaml-opam/buildlink3.mk
new file mode 100644
index 0000000000..ecd72e2bb5
--- /dev/null
+++ b/ocaml-opam/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	ocaml-opam
+
+.if !defined(OCAML_OPAM_BUILDLINK3_MK)
+OCAML_OPAM_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-opam+=	ocaml-opam>=2.5.0
+BUILDLINK_ABI_DEPENDS.ocaml-opam+=	ocaml-opam>=2.5.2
+BUILDLINK_PKGSRCDIR.ocaml-opam?=	../../misc/ocaml-opam
+
+.endif	# OCAML_OPAM_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-ocaml-opam
diff --git a/ocaml-opam/distinfo b/ocaml-opam/distinfo
new file mode 100644
index 0000000000..2a8031ec91
--- /dev/null
+++ b/ocaml-opam/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (opam-full-2.5.2.tar.gz) = 467aa5dd04fd97c2a9c71bbd173b868a08ef43b7a865b8339cb3e9600ca14f1f
+SHA512 (opam-full-2.5.2.tar.gz) = 08ac70beddbcec75289b01f3037037e4f47d04c89119ff7203d1db655f5051688e94a5144b63a4a4bf5a361781ee687a0b3730fed6c25923fd35ff4f0c677e71
+Size (opam-full-2.5.2.tar.gz) = 14474162 bytes


Home | Main Index | Thread Index | Old Index