summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-05-06 14:48:07 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-05-06 14:48:07 +0200
commitee40a808229ad9d50e5afbf25585c8e098655c30 (patch)
treebe298225041bb78bd6269dc2a07eb815dda203be /dev-ml/batteries
parentapp-leechcraft/lc-core: Require USE="threads" for dev-libs/boost (diff)
downloadgentoo-ee40a808229ad9d50e5afbf25585c8e098655c30.tar.gz
gentoo-ee40a808229ad9d50e5afbf25585c8e098655c30.tar.bz2
gentoo-ee40a808229ad9d50e5afbf25585c8e098655c30.zip
dev-ml/batteries: make ocaml 4.03 patches conditional to having ocaml 4.03.
It fails to build with older versions otherwise, bug #582246 Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ml/batteries')
-rw-r--r--dev-ml/batteries/batteries-2.4.0.ebuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/dev-ml/batteries/batteries-2.4.0.ebuild b/dev-ml/batteries/batteries-2.4.0.ebuild
index 7ea0d79a32fa..b5a7c8f8590b 100644
--- a/dev-ml/batteries/batteries-2.4.0.ebuild
+++ b/dev-ml/batteries/batteries-2.4.0.ebuild
@@ -22,8 +22,10 @@ DEPEND="${RDEPEND}
DOCS=( "ChangeLog" "FAQ" "README.folders" "README.md" )
S="${WORKDIR}/${PN}-included-${PV}"
-PATCHES=(
- "${FILESDIR}/oc43-1.patch"
- "${FILESDIR}/oc43-2.patch"
- "${FILESDIR}/oc43-3.patch"
-)
+
+src_prepare() {
+ has_version '>=dev-lang/ocaml-4.03' && epatch \
+ "${FILESDIR}/oc43-1.patch" \
+ "${FILESDIR}/oc43-2.patch" \
+ "${FILESDIR}/oc43-3.patch"
+}