summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2011-04-21 21:06:15 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2011-04-21 21:06:15 +0000
commitd2309c700606775562a61830744837669402e9a7 (patch)
tree93490c412c9560e2f1bffc0dd98c2d086099931f /eclass
parentVersion bump + gcc 4.6 patch for tests (diff)
downloadgentoo-2-d2309c700606775562a61830744837669402e9a7.tar.gz
gentoo-2-d2309c700606775562a61830744837669402e9a7.tar.bz2
gentoo-2-d2309c700606775562a61830744837669402e9a7.zip
Enable stupid/basic EAPI=4 support.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gnome2.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index f13356b6756b..8d9e57678506 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.93 2011/04/21 20:59:59 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.94 2011/04/21 21:06:15 eva Exp $
# @ECLASS: gnome2.eclass
# @MAINTAINER:
@@ -16,7 +16,7 @@ case "${EAPI:-0}" in
0|1)
EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
;;
- 2|3)
+ 2|3|4)
EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_preinst pkg_postinst pkg_postrm
;;
*) die "EAPI=${EAPI} is not supported" ;;
@@ -85,7 +85,13 @@ gnome2_src_prepare() {
gnome2_omf_fix
# Run libtoolize
- elibtoolize ${ELTCONF}
+ if has ${EAPI:-0} 0 1 2 3; then
+ elibtoolize ${ELTCONF}
+ else
+ # Everything is fatal EAPI 4 onwards
+ nonfatal elibtoolize ${ELTCONF}
+ fi
+
}
# @FUNCTION: gnome2_src_configure