diff options
Diffstat (limited to 'dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild')
-rw-r--r-- | dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild b/dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild index c6b55db684d0..f2a359e34704 100644 --- a/dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild +++ b/dev-ml/ppx_deriving_yojson/ppx_deriving_yojson-3.0.ebuild @@ -1,8 +1,10 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 +inherit eutils + DESCRIPTION="A Yojson codec generator for OCaml" HOMEPAGE="https://github.com/whitequark/ppx_deriving_yojson/" SRC_URI="https://github.com/whitequark/ppx_deriving_yojson/archive/v${PV}.tar.gz -> ${P}.tar.gz" @@ -25,6 +27,10 @@ DEPEND="${DEPEND} dev-ml/ocamlbuild test? ( dev-ml/ounit dev-ml/ppx_import )" +src_prepare() { + has_version '>=dev-lang/ocaml-4.05_rc' && epatch "${FILESDIR}/ocaml405.patch" +} + src_compile() { cp pkg/META.in pkg/META ocaml pkg/build.ml \ |