Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/camlpdf/files/, dev-ml/camlpdf/
Date: Wed, 02 Mar 2016 19:29:19
Message-Id: 1456946946.3f421c70bf47c0daa31316723426d5571d681434.aballier@gentoo
1 commit: 3f421c70bf47c0daa31316723426d5571d681434
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 2 14:30:37 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 19:29:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f421c70
7
8 dev-ml/camlpdf: fix build with ocaml 4.03
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 dev-ml/camlpdf/camlpdf-2.1.1.ebuild | 6 +++++-
14 dev-ml/camlpdf/files/ocaml43.patch | 13 +++++++++++++
15 2 files changed, 18 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-ml/camlpdf/camlpdf-2.1.1.ebuild b/dev-ml/camlpdf/camlpdf-2.1.1.ebuild
18 index 8322666..8ba4979 100644
19 --- a/dev-ml/camlpdf/camlpdf-2.1.1.ebuild
20 +++ b/dev-ml/camlpdf/camlpdf-2.1.1.ebuild
21 @@ -4,7 +4,7 @@
22
23 EAPI=5
24
25 -inherit findlib
26 +inherit findlib eutils
27
28 DESCRIPTION="OCaml library for reading, writing, and modifying PDF files"
29 HOMEPAGE="https://github.com/johnwhitington/camlpdf/"
30 @@ -19,6 +19,10 @@ IUSE="doc examples"
31 RDEPEND="dev-lang/ocaml:="
32 DEPEND="${RDEPEND}"
33
34 +src_prepare() {
35 + epatch "${FILESDIR}/ocaml43.patch"
36 +}
37 +
38 src_compile() {
39 # parallel make bugs
40 emake -j1
41
42 diff --git a/dev-ml/camlpdf/files/ocaml43.patch b/dev-ml/camlpdf/files/ocaml43.patch
43 new file mode 100644
44 index 0000000..86ffbe2
45 --- /dev/null
46 +++ b/dev-ml/camlpdf/files/ocaml43.patch
47 @@ -0,0 +1,13 @@
48 +Index: camlpdf-2.1.1/flatestubs.c
49 +===================================================================
50 +--- camlpdf-2.1.1.orig/flatestubs.c
51 ++++ camlpdf-2.1.1/flatestubs.c
52 +@@ -170,7 +170,7 @@ value camlzip_inflateEnd(value vzs)
53 +
54 + value camlzip_update_crc32(value crc, value buf, value pos, value len)
55 + {
56 +- return copy_int32(crc32((uint32) Int32_val(crc),
57 ++ return copy_int32(crc32((uint32_t) Int32_val(crc),
58 + &Byte_u(buf, Long_val(pos)),
59 + Long_val(len)));
60 + }