summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-02-07 20:38:56 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-02-07 20:38:56 +0000
commit4ca9a5ecab8853bb90c3cefb2c61ea9b35582761 (patch)
tree37b77dbd86fcf4005f5f5ba5ea4e7552b9d19c19 /dev-lang/ocaml/ocaml-4.00.1.ebuild
parentInitial import, bug #406517, ebuild by Guillaume Horel (diff)
downloadhistorical-4ca9a5ecab8853bb90c3cefb2c61ea9b35582761.tar.gz
historical-4ca9a5ecab8853bb90c3cefb2c61ea9b35582761.tar.bz2
historical-4ca9a5ecab8853bb90c3cefb2c61ea9b35582761.zip
Do not suggest emerge @ocaml-rebuild if portage 2.2 is not used, it is not going to work, bug #444254
Package-Manager: portage-2.2.0_alpha161/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'dev-lang/ocaml/ocaml-4.00.1.ebuild')
-rw-r--r--dev-lang/ocaml/ocaml-4.00.1.ebuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/dev-lang/ocaml/ocaml-4.00.1.ebuild b/dev-lang/ocaml/ocaml-4.00.1.ebuild
index eb3b6a3d6462..3204575586d1 100644
--- a/dev-lang/ocaml/ocaml-4.00.1.ebuild
+++ b/dev-lang/ocaml/ocaml-4.00.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ocaml-4.00.1.ebuild,v 1.2 2013/02/07 12:44:08 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ocaml-4.00.1.ebuild,v 1.3 2013/02/07 20:38:48 aballier Exp $
EAPI="5"
@@ -119,7 +119,10 @@ pkg_postinst() {
ewarn "OCaml is not binary compatible from version to version, so you"
ewarn "need to rebuild all packages depending on it, that are actually"
ewarn "installed on your system. To do so, you can run:"
- ewarn "emerge @ocaml-rebuild"
- ewarn "Or, (almost) equivalently: emerge -1 /usr/$(get_libdir)/ocaml"
+ if has_version '>=sys-apps/portage-2.2' ; then
+ ewarn "emerge @ocaml-rebuild"
+ else
+ ewarn "emerge -1 /usr/$(get_libdir)/ocaml"
+ fi
echo
}