graphics/ocaml-cairo still uses "tar.gz" archive and
ocamlfind shows (version: n/a).

  $ ocamlfind list | grep cairo2
  cairo2              (version: n/a)
  cairo2-gtk          (version: n/a)
  cairo2-pango        (version: n/a)
  $ 

the port should use ".tbz" archive, which provides version information.

  $ ocamlfind list | grep cairo2
  cairo2              (version: 0.6.2)
  cairo2-gtk          (version: 0.6.2)
  cairo2-pango        (version: 0.6.2)

the patch here...

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/ocaml-cairo/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile    10 Dec 2021 04:10:59 -0000      1.10
+++ Makefile    12 Dec 2021 15:18:38 -0000
@@ -3,10 +3,13 @@
 COMMENT =      binding to cairo, a 2D vector graphics library
 CATEGORIES =   graphics
 
-GH_ACCOUNT =   Chris00
-GH_PROJECT =   ocaml-cairo
-GH_TAGNAME =   0.6.2
-REVISION =     1
+PROJECT =      ocaml-cairo
+TAGNAME =      0.6.2
+DISTNAME =     ocaml-cairo-${TAGNAME}{cairo2-${TAGNAME}}
+MASTER_SITES = 
https://github.com/Chris00/ocaml-cairo/releases/download/${TAGNAME}/
+EXTRACT_SUFX = .tbz
+PKGNAME =      ${PROJECT}-${TAGNAME}
+REVISION =     2
 
 # LGPL 3.0
 PERMIT_PACKAGE = Yes
@@ -32,8 +35,8 @@ LIB_DEPENDS = devel/pango \
 ALL_TARGET =
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml-${GH_PROJECT}
-       mv ${PREFIX}/doc/* ${PREFIX}/share/doc/ocaml-${GH_PROJECT}/
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml-${PROJECT}
+       mv ${PREFIX}/doc/* ${PREFIX}/share/doc/ocaml-${PROJECT}/
        rmdir ${PREFIX}/doc
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/ocaml-cairo/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo    11 Feb 2021 04:07:39 -0000      1.2
+++ distinfo    12 Dec 2021 15:18:38 -0000
@@ -1,2 +1,2 @@
-SHA256 (ocaml-cairo-0.6.2.tar.gz) = 
LASXjuL2RRFj9AsLxOM0zadWXIU36fUo+DUYS0L7QS4=
-SIZE (ocaml-cairo-0.6.2.tar.gz) = 109948
+SHA256 (ocaml-cairo-0.6.2.tbz) = a7P1kiVmIwT6Fhtwxs29ffgO4iexsulxUoc9cnJmEK4=
+SIZE (ocaml-cairo-0.6.2.tbz) = 90428
cvs server: Diffing patches
cvs server: Diffing pkg


-- yozo.

Reply via email to