summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2009-05-12 12:55:46 +0000
committerTheo Chatzimichos <tampakrap@gentoo.org>2009-05-12 12:55:46 +0000
commitf1fdc592fd9e7fe387844aef83273d7c26bf7342 (patch)
treed287c242be07c27a6b8b911cb3f2907e33f9b6c9 /eclass/kde-meta.eclass
parentstable x86, security bug 250474 (diff)
downloadgentoo-2-f1fdc592fd9e7fe387844aef83273d7c26bf7342.tar.gz
gentoo-2-f1fdc592fd9e7fe387844aef83273d7c26bf7342.tar.bz2
gentoo-2-f1fdc592fd9e7fe387844aef83273d7c26bf7342.zip
New KDE 3 eclasses, that support EAPI 2 kde3 ebuilds
and they prefix kde3 misc apps in /usr/kde/3.5 by default
Diffstat (limited to 'eclass/kde-meta.eclass')
-rw-r--r--eclass/kde-meta.eclass31
1 files changed, 24 insertions, 7 deletions
diff --git a/eclass/kde-meta.eclass b/eclass/kde-meta.eclass
index ca0f83a36e3a..7bb99553fd70 100644
--- a/eclass/kde-meta.eclass
+++ b/eclass/kde-meta.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.89 2009/02/08 21:33:06 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.90 2009/05/12 12:55:46 tampakrap Exp $
# @ECLASS: kde-meta.eclass
# @MAINTAINER:
@@ -374,10 +374,17 @@ kde-meta_src_unpack() {
done
}
-# @FUNCTION: kde-meta_src_compile
+# dull function for keep working eapi2 and later
+kde-meta_src_prepare() {
+ :
+ # prevent the patches applied twice; we cant repatch src_unpack onto
+ # two functions (unpack and prepare)
+}
+
+# @FUNCTION: kde-meta_src_configure
# @DESCRIPTION:
-# Does some checks before it invokes kde_src_compile
-kde-meta_src_compile() {
+# Configure stub for eapi 2
+kde-meta_src_configure() {
debug-print-function $FUNCNAME "$@"
set_common_variables
@@ -391,7 +398,16 @@ kde-meta_src_compile() {
# make sure games are not installed with setgid bit, as it is a security risk.
myconf="$myconf --disable-setgid"
fi
+}
+# @FUNCTION: kde-meta_src_compile
+# @DESCRIPTION:
+# Does some checks before it invokes kde_src_compile
+kde-meta_src_compile() {
+ debug-print-function $FUNCNAME "$@"
+ case ${EAPI:-0} in
+ 0|1) kde-meta_src_configure ;;
+ esac
kde_src_compile "$@"
}
@@ -427,6 +443,7 @@ kde-meta_src_install() {
shift
done
}
-
-EXPORT_FUNCTIONS src_unpack src_compile src_install
-
+case ${EAPI:-0} in
+ 0|1) EXPORT_FUNCTIONS src_unpack src_compile src_install;;
+ 2) EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install;;
+esac