summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@gentoo.org>2009-02-17 16:05:33 +0000
committerDaniel Gryniewicz <dang@gentoo.org>2009-02-17 16:05:33 +0000
commitd80bfbe001e6377101d8e3b5e221ee5b60718e62 (patch)
tree60bd652ebfa1bd53b0e7aca6193817725f962d06 /eclass/gnome2.eclass
parentAdded dependency on libtool >= 2.2, fixing bug #258976 (diff)
downloadhistorical-d80bfbe001e6377101d8e3b5e221ee5b60718e62.tar.gz
historical-d80bfbe001e6377101d8e3b5e221ee5b60718e62.tar.bz2
historical-d80bfbe001e6377101d8e3b5e221ee5b60718e62.zip
Make gnome2.eclass EAPI 2 ready. Bug #239123
Diffstat (limited to 'eclass/gnome2.eclass')
-rw-r--r--eclass/gnome2.eclass16
1 files changed, 13 insertions, 3 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index 6dbf3925b930..afcd8d57d52c 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.85 2008/03/22 10:19:05 remi Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.86 2009/02/17 16:05:33 dang Exp $
#
# gnome2.eclass
@@ -14,6 +14,14 @@
inherit fdo-mime libtool gnome.org gnome2-utils
+case "${EAPI:-0}" in
+ 0|1)
+ EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
+ ;;
+ *)
+ EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_preinst pkg_postinst pkg_postrm
+ ;;
+esac
# Extra configure opts passed to econf
G2CONF=${G2CONF:-""}
@@ -38,7 +46,10 @@ fi
gnome2_src_unpack() {
unpack ${A}
cd "${S}"
+ has ${EAPI:-0} 0 1 && gnome2_src_prepare
+}
+gnome2_src_prepare() {
# Prevent scrollkeeper access violations
gnome2_omf_fix
@@ -67,7 +78,7 @@ gnome2_src_configure() {
}
gnome2_src_compile() {
- gnome2_src_configure "$@"
+ has ${EAPI:-0} 0 1 && gnome2_src_configure "$@"
emake || die "compile failure"
}
@@ -137,4 +148,3 @@ gnome2_pkg_postrm() {
}
# pkg_prerm
-EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm