pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/x11/ocaml-lablgtk
Module Name: pkgsrc
Committed By: jaapb
Date: Thu Nov 9 10:57:57 UTC 2017
Modified Files:
pkgsrc/x11/ocaml-lablgtk: Makefile distinfo
Added Files:
pkgsrc/x11/ocaml-lablgtk/patches: patch-src_gutf8.ml
Log Message:
Added patch to x11/ocaml-lablgtk for compilation with ocaml 4.05
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/x11/ocaml-lablgtk/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/x11/ocaml-lablgtk/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/ocaml-lablgtk/patches/patch-src_gutf8.ml
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/x11/ocaml-lablgtk/Makefile
diff -u pkgsrc/x11/ocaml-lablgtk/Makefile:1.30 pkgsrc/x11/ocaml-lablgtk/Makefile:1.31
--- pkgsrc/x11/ocaml-lablgtk/Makefile:1.30 Wed Nov 1 09:25:36 2017
+++ pkgsrc/x11/ocaml-lablgtk/Makefile Thu Nov 9 10:57:57 2017
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.30 2017/11/01 09:25:36 jaapb Exp $
+# $NetBSD: Makefile,v 1.31 2017/11/09 10:57:57 jaapb Exp $
DISTNAME= lablgtk-2.18.6
PKGNAME= ocaml-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= https://forge.ocamlcore.org/frs/download.php/1726/
Index: pkgsrc/x11/ocaml-lablgtk/distinfo
diff -u pkgsrc/x11/ocaml-lablgtk/distinfo:1.10 pkgsrc/x11/ocaml-lablgtk/distinfo:1.11
--- pkgsrc/x11/ocaml-lablgtk/distinfo:1.10 Wed Nov 1 09:25:36 2017
+++ pkgsrc/x11/ocaml-lablgtk/distinfo Thu Nov 9 10:57:57 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2017/11/01 09:25:36 jaapb Exp $
+$NetBSD: distinfo,v 1.11 2017/11/09 10:57:57 jaapb Exp $
SHA1 (lablgtk-2.18.6.tar.gz) = 2dd099ecca246274df8f6f363c8d418ff3a67568
RMD160 (lablgtk-2.18.6.tar.gz) = 6fef28c6ec2757da3e0773d33c77c13abaf61895
@@ -6,3 +6,4 @@ SHA512 (lablgtk-2.18.6.tar.gz) = 0d30da0
Size (lablgtk-2.18.6.tar.gz) = 804837 bytes
SHA1 (patch-configure) = a559be17f6687bfb4919617c01e5c28252bf9e99
SHA1 (patch-src_Makefile) = 5cdcc55b1b2be61bf7303c1f5fb28bb02d931aae
+SHA1 (patch-src_gutf8.ml) = a813e6b7dc3944a23b4b069c9484417a592c42e8
Added files:
Index: pkgsrc/x11/ocaml-lablgtk/patches/patch-src_gutf8.ml
diff -u /dev/null pkgsrc/x11/ocaml-lablgtk/patches/patch-src_gutf8.ml:1.1
--- /dev/null Thu Nov 9 10:57:57 2017
+++ pkgsrc/x11/ocaml-lablgtk/patches/patch-src_gutf8.ml Thu Nov 9 10:57:57 2017
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_gutf8.ml,v 1.1 2017/11/09 10:57:57 jaapb Exp $
+
+Patch to compile with OCaml 4.05 (remove for 4.06!)
+--- src/gutf8.ml.orig 2017-10-30 08:37:29.000000000 +0000
++++ src/gutf8.ml
+@@ -68,14 +68,14 @@ let write_unichar s ~pos (c : unichar) =
+ let from_unichar (n : unichar) =
+ let s = Bytes.create 6 and pos = ref 0 in
+ write_unichar s ~pos n;
+- Bytes.sub_string s ~pos:0 ~len:!pos
++ Bytes.sub_string s 0 !pos
+
+ let from_unistring (s : unistring) =
+ let len = Array.length s in
+ let r = Bytes.create (len*6) in
+ let pos = ref 0 in
+ for i = 0 to len-1 do write_unichar r ~pos s.(i) done;
+- Bytes.sub_string r ~pos:0 ~len:!pos
++ Bytes.sub_string r 0 !pos
+
+ let rec hi_bits n =
+ if n land 0x80 = 0 then 0 else
Home |
Main Index |
Thread Index |
Old Index