dev-ml/camlpdf: make ocaml 4.03 patch conditional as it breaks older ocaml
authorAlexis Ballier <aballier@gentoo.org>
Thu, 3 Mar 2016 13:33:36 +0000 (14:33 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Thu, 3 Mar 2016 13:33:36 +0000 (14:33 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ml/camlpdf/camlpdf-2.1.1.ebuild

index 8ba49799866bfd024355138c426acb45a7380e61..fcd4491c81736864b1003a4e1c0f36b12a20ddeb 100644 (file)
@@ -20,7 +20,7 @@ RDEPEND="dev-lang/ocaml:="
 DEPEND="${RDEPEND}"
 
 src_prepare() {
-       epatch "${FILESDIR}/ocaml43.patch"
+       has_version '>=dev-lang/ocaml-4.03.0_beta1' && epatch "${FILESDIR}/ocaml43.patch"
 }
 
 src_compile() {