pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/ocaml-lablgtk Added patch to x11/ocaml-lablgtk for...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2a545b604e6c
branches: trunk
changeset: 371379:2a545b604e6c
user: jaapb <jaapb%pkgsrc.org@localhost>
date: Thu Nov 09 10:57:57 2017 +0000
description:
Added patch to x11/ocaml-lablgtk for compilation with ocaml 4.05
diffstat:
x11/ocaml-lablgtk/Makefile | 3 ++-
x11/ocaml-lablgtk/distinfo | 3 ++-
x11/ocaml-lablgtk/patches/patch-src_gutf8.ml | 22 ++++++++++++++++++++++
3 files changed, 26 insertions(+), 2 deletions(-)
diffs (53 lines):
diff -r 56a4a59179ca -r 2a545b604e6c x11/ocaml-lablgtk/Makefile
--- a/x11/ocaml-lablgtk/Makefile Thu Nov 09 08:35:16 2017 +0000
+++ b/x11/ocaml-lablgtk/Makefile Thu Nov 09 10:57:57 2017 +0000
@@ -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/
diff -r 56a4a59179ca -r 2a545b604e6c x11/ocaml-lablgtk/distinfo
--- a/x11/ocaml-lablgtk/distinfo Thu Nov 09 08:35:16 2017 +0000
+++ b/x11/ocaml-lablgtk/distinfo Thu Nov 09 10:57:57 2017 +0000
@@ -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 @@
Size (lablgtk-2.18.6.tar.gz) = 804837 bytes
SHA1 (patch-configure) = a559be17f6687bfb4919617c01e5c28252bf9e99
SHA1 (patch-src_Makefile) = 5cdcc55b1b2be61bf7303c1f5fb28bb02d931aae
+SHA1 (patch-src_gutf8.ml) = a813e6b7dc3944a23b4b069c9484417a592c42e8
diff -r 56a4a59179ca -r 2a545b604e6c x11/ocaml-lablgtk/patches/patch-src_gutf8.ml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ocaml-lablgtk/patches/patch-src_gutf8.ml Thu Nov 09 10:57:57 2017 +0000
@@ -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