I found that some ocaml-dependant ports have no version registered to META file.
$ ocamlfind list
bigarray (version: [distributed with Ocaml])
bytes (version: [distributed with OCaml 4.02 or above])
cairo2 (version: n/a)
cairo2-gtk (version: n/a)
cairo2-pango (version: n/a)
compiler-libs (version: [distributed with Ocaml])
........
dune (version: n/a)
........
findlib (version: 1.8.1)
........
num (version: 1.4)
........
dune dependant ports should use the correct source files.
for example,
- graphics/ocaml-cairo uses
https://github.com/chriss00/ocaml-cairo/archive/0.6.2.tar.gz
but we should use
https://github.com/chriss00/ocaml-cairo/releases/download/0.6.2/cairo2-0.6.2.tbz
which contains *.opam files with version information
- devel/dune uses
https://github.com/ocaml/dune/archive/1.11.3.tar.gz
but we should use
https://github.com/ocaml/dune/releases/download/dune-uild-info-1.11.3.tbz
which contains dune-project file with version information
- math/ocaml-num uses
https://github.com/ocaml/num/archive/v1.4.tar.gz
no *.tbz archive is provided and it's ok becuse
num.opam file inside this archive has version information.
- etc...
I found this problem when trying to update math/coq to 8.13.1, whose
configure.ml checks
the existence of lablgtk3 through the output of "ocamlfind list".
(and see https://github.com/garrigue/lablgtk3/issues/123)
as far as I understand, the follwing ports should be revised:
% echo "select * from Depends where DependsPath like '%dune%'" | sqlite3
/usr/local/share/sqlports
2180|x11/lablgtk3|devel/dune|||devel/dune|2|2
2183|devel/ocaml-yojson|devel/dune|||devel/dune|2|3
2655|devel/ocaml-biniou|devel/dune|||devel/dune|2|2
2656|devel/ocaml-easy-format|devel/dune|||devel/dune|2|0
2657|devel/ocaml-configurator|devel/dune|||devel/dune|2|0
2658|devel/ocaml-cppo|devel/dune|||devel/dune|2|0
5564|graphics/ocaml-cairo|devel/dune|||devel/dune|2|0
5565|graphics/ocaml-graphics|devel/dune|||devel/dune|2|0
5978|lang/haxe|devel/dune|||devel/dune|2|0
9783|sysutils/opam|devel/dune|||devel/dune|2|2
as an example, following is my lablgtk3 update.
Comments?
diff -ur /usr/ports/x11/lablgtk3/Makefile
/usr/ports/mystuff/x11/lablgtk3-3.1.1p0/Makefile
--- /usr/ports/x11/lablgtk3/Makefile Thu Feb 11 13:17:32 2021
+++ /usr/ports/mystuff/x11/lablgtk3-3.1.1p0/Makefile Tue Mar 9 15:11:22 2021
@@ -3,10 +3,14 @@
COMMENT = OCaml interface to GTK+3
CATEGORIES = x11 devel
-GH_ACCOUNT = garrigue
-GH_PROJECT = lablgtk
-GH_TAGNAME = 3.1.1
-PKGNAME = lablgtk3-${GH_TAGNAME}
+## GH_ACCOUNT = garrigue
+## GH_PROJECT = lablgtk
+## GH_TAGNAME = 3.1.1
+## PKGNAME = lablgtk3-${GH_TAGNAME}
+VERSION = 3.1.1
+DISTNAME = lablgtk3-${VERSION}
+MASTER_SITES =
https://github.com/garrigue/lablgtk/releases/download/${VERSION}/
+EXTRACT_SUFX = .tbz
# LGPL
PERMIT_PACKAGE = Yes
diff -ur /usr/ports/x11/lablgtk3/distinfo
/usr/ports/mystuff/x11/lablgtk3-3.1.1p0/distinfo
--- /usr/ports/x11/lablgtk3/distinfo Thu Feb 11 13:17:32 2021
+++ /usr/ports/mystuff/x11/lablgtk3-3.1.1p0/distinfo Tue Mar 9 15:10:53 2021
@@ -1,2 +1,2 @@
-SHA256 (lablgtk-3.1.1.tar.gz) = sfcUQ3csyLawaSg9nMxovrKA7fWUm4NOoGMXrf465oI=
-SIZE (lablgtk-3.1.1.tar.gz) = 1031279
+SHA256 (lablgtk3-3.1.1.tbz) = IscGHIrLScHM0KGTltKx19HWd+DOeVQSJAS+lKAP7Pk=
+SIZE (lablgtk3-3.1.1.tbz) = 854720
-- yozo.