diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-05-01 16:41:20 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-05-03 11:13:52 +0200 |
commit | 12dcad9d79582d0822656571a0523839f716e889 (patch) | |
tree | e20a94f4140ac7ac416f3d74d1e87f79e7f4564c /dev-ml | |
parent | dev-ml/lwt: bump to 2.5.2 (diff) | |
download | gentoo-12dcad9d79582d0822656571a0523839f716e889.tar.gz gentoo-12dcad9d79582d0822656571a0523839f716e889.tar.bz2 gentoo-12dcad9d79582d0822656571a0523839f716e889.zip |
dev-ml/ocaml-gettext: fix build with ocaml 4.03
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/ocaml-gettext/files/oc43.patch | 12 | ||||
-rw-r--r-- | dev-ml/ocaml-gettext/ocaml-gettext-0.3.5.ebuild | 6 |
2 files changed, 17 insertions, 1 deletions
diff --git a/dev-ml/ocaml-gettext/files/oc43.patch b/dev-ml/ocaml-gettext/files/oc43.patch new file mode 100644 index 000000000000..41996b941122 --- /dev/null +++ b/dev-ml/ocaml-gettext/files/oc43.patch @@ -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` \ diff --git a/dev-ml/ocaml-gettext/ocaml-gettext-0.3.5.ebuild b/dev-ml/ocaml-gettext/ocaml-gettext-0.3.5.ebuild index bb0e145683bb..788bd15dab27 100644 --- a/dev-ml/ocaml-gettext/ocaml-gettext-0.3.5.ebuild +++ b/dev-ml/ocaml-gettext/ocaml-gettext-0.3.5.ebuild @@ -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" @@ -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/" \ |