Skip to content

Commit

Permalink
dev-ml/ocaml-gettext: fix build with ocaml 4.03
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <[email protected]>
  • Loading branch information
aballier committed May 3, 2016
1 parent ccc3668 commit 12dcad9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 12 additions & 0 deletions dev-ml/ocaml-gettext/files/oc43.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Index: ocaml-gettext-0.3.5/ocaml-gettext/Makefile
===================================================================
--- ocaml-gettext-0.3.5.orig/ocaml-gettext/Makefile
+++ ocaml-gettext-0.3.5/ocaml-gettext/Makefile
@@ -64,7 +64,6 @@ uninstall: ocaml-xgettext-uninstall
ocaml-xgettext: $(BUILDBIN)
$(OCAMLC) \
-I +camlp4 dynlink.cma camlp4lib.cma \
- unix.cma \
`$(OCAMLFIND) query -r -predicates byte gettext.extract -i-format` \
`$(OCAMLFIND) query -r -predicates byte gettext.extract -a-format` \
`$(OCAMLFIND) query -r -predicates byte gettext.extract -o-format` \
6 changes: 5 additions & 1 deletion dev-ml/ocaml-gettext/ocaml-gettext-0.3.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

EAPI=5

inherit findlib
inherit findlib eutils

DESCRIPTION="Provides support for internationalization of OCaml program"
HOMEPAGE="http://forge.ocamlcore.org/projects/ocaml-gettext"
Expand All @@ -25,6 +25,10 @@ DEPEND="${RDEPEND}
doc? ( app-text/docbook-xsl-stylesheets dev-libs/libxslt )
test? ( dev-ml/ounit )"

src_prepare() {
has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
}

src_configure() {
econf \
--with-docbook-stylesheet="${EPREFIX}/usr/share/sgml/docbook/xsl-stylesheets/" \
Expand Down

0 comments on commit 12dcad9

Please sign in to comment.