Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ocaml-gettext/, dev-ml/ocaml-gettext/files/
Date: Fri, 14 Aug 2020 23:23:43
Message-Id: 1597447412.3bfdfabacefb21ca771607bc84b295389b4468cf.sam@gentoo
1 commit: 3bfdfabacefb21ca771607bc84b295389b4468cf
2 Author: Hank Leininger <hlein <AT> korelogic <DOT> com>
3 AuthorDate: Sun Aug 2 22:11:07 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 14 23:23:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bfdfaba
7
8 dev-ml/ocaml-gettext: ocaml-4.09 compat fixes
9
10 Existing ebuild will not build with ocaml-4.09, only with older versions
11 that have an outstanding GLSA (202007-48). ocaml-4.09 is being
12 stabilized now. This commit just uses the existing workaround/fix in
13 b.g.o and updates the ebuild to EAPI=7.
14
15 Updated to address feedback in https://github.com/gentoo/gentoo/pull/16964
16
17 Signed-off-by: Hank Leininger <hlein <AT> korelogic.com>
18 Closes: https://bugs.gentoo.org/731302
19 Bug: https://bugs.gentoo.org/708696
20 Package-Manager: Portage-3.0.0, Repoman-2.3.23
21 Signed-off-by: Sam James <sam <AT> gentoo.org>
22
23 .../ocaml-gettext/files/ocaml-unsafe-string.patch | 17 +++++++
24 dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild | 59 ++++++++++++++++++++++
25 2 files changed, 76 insertions(+)
26
27 diff --git a/dev-ml/ocaml-gettext/files/ocaml-unsafe-string.patch b/dev-ml/ocaml-gettext/files/ocaml-unsafe-string.patch
28 new file mode 100644
29 index 00000000000..8d0a12c80d0
30 --- /dev/null
31 +++ b/dev-ml/ocaml-gettext/files/ocaml-unsafe-string.patch
32 @@ -0,0 +1,17 @@
33 +diff --git a/ConfMakefile.in b/ConfMakefile.in
34 +index 5a1e9ea..b562698 100644
35 +--- a/ConfMakefile.in
36 ++++ b/ConfMakefile.in
37 +@@ -37,9 +37,9 @@ OCAMLLIB=@OCAMLLIB@
38 + OCAMLFIND_COMMANDS = "ocamlc=@OCAMLC@ \
39 + ocamlopt=@OCAMLOPT@ \
40 + ocamldep=@OCAMLDEP@"
41 +-OCAMLC = @OCAMLFIND@ ocamlc
42 +-OCAMLOPT = @OCAMLFIND@ ocamlopt
43 +-OCAMLDEP = @OCAMLFIND@ ocamldep
44 ++OCAMLC = @OCAMLFIND@ ocamlc -unsafe-string
45 ++OCAMLOPT = @OCAMLFIND@ ocamlopt -unsafe-string
46 ++OCAMLDEP = @OCAMLFIND@ ocamldep -unsafe-string
47 + OCAMLBEST = @OCAMLBEST@
48 + OCAMLVERSION = @OCAMLVERSION@
49 + OCAMLFIND = @OCAMLFIND@
50
51 diff --git a/dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild b/dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild
52 new file mode 100644
53 index 00000000000..c4643c7c33a
54 --- /dev/null
55 +++ b/dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r1.ebuild
56 @@ -0,0 +1,59 @@
57 +# Copyright 1999-2020 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI=7
61 +
62 +inherit findlib eutils autotools
63 +
64 +DESCRIPTION="Provides support for internationalization of OCaml program"
65 +HOMEPAGE="https://github.com/gildor478/ocaml-gettext"
66 +SRC_URI="https://github.com/gildor478/ocaml-gettext/archive/${PV}.tar.gz -> ${P}.tar.gz"
67 +
68 +LICENSE="LGPL-2.1-with-linking-exception"
69 +SLOT="0/${PV}"
70 +KEYWORDS="~amd64 ~x86"
71 +IUSE="doc test"
72 +RESTRICT="!test? ( test )"
73 +
74 +PATCHES=( "${FILESDIR}"/ocaml-unsafe-string.patch )
75 +
76 +RDEPEND=">=dev-lang/ocaml-3.12.1:=
77 + >=dev-ml/ocaml-fileutils-0.4.0:=
78 + >=dev-ml/camomile-0.8.3:=
79 + sys-devel/gettext
80 + dev-ml/camlp4:=
81 +"
82 +DEPEND="${RDEPEND}
83 + doc? (
84 + app-text/docbook-xsl-stylesheets
85 + dev-libs/libxslt
86 + )
87 + test? ( dev-ml/ounit )
88 +"
89 +
90 +src_prepare() {
91 + default
92 + eautoreconf
93 +}
94 +
95 +src_configure() {
96 + econf \
97 + --with-docbook-stylesheet="${EPREFIX}/usr/share/sgml/docbook/xsl-stylesheets/" \
98 + $(use_enable doc) \
99 + $(use_enable test)
100 +}
101 +
102 +src_compile() {
103 + emake -j1
104 +}
105 +
106 +src_install() {
107 + findlib_src_preinst
108 + emake -j1 DESTDIR="${D}" \
109 + BINDIR="${ED}/usr/bin" \
110 + PODIR="${ED}/usr/share/locale/" \
111 + DOCDIR="${ED}/usr/share/doc/${PF}" \
112 + MANDIR="${ED}/usr/share/man" \
113 + install
114 + dodoc CHANGELOG README THANKS TODO
115 +}