From acc1889a8c3bdffdc0bccbd9d51e658c86e73f4c Mon Sep 17 00:00:00 2001
From: Benedikt Boehm <hollow@gentoo.org>
Date: Tue, 4 Mar 2008 18:54:41 +0000
Subject: provide WEBAPP_DEPEND for ebuilds with WEBAPP_OPTIONAL

---
 eclass/webapp.eclass | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'eclass/webapp.eclass')

diff --git a/eclass/webapp.eclass b/eclass/webapp.eclass
index 4e430a80d739..5f8d8d39adf7 100644
--- a/eclass/webapp.eclass
+++ b/eclass/webapp.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/webapp.eclass,v 1.61 2008/03/04 18:44:01 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.62 2008/03/04 18:54:41 hollow Exp $
 #
 # @ECLASS: webapp.eclass
 # @MAINTAINER:
@@ -10,6 +10,12 @@
 # The webapp eclass contains functions to handle web applications with
 # webapp-config. Part of the implementation of GLEP #11
 
+# @ECLASS-VARIABLE: WEBAPP_DEPEND
+# @DESCRIPTION:
+# An ebuild should use WEBAPP_DEPEND if a custom DEPEND needs to be build, most
+# notably in combination with WEBAPP_OPTIONAL.
+WEBAPP_DEPEND=">=app-admin/webapp-config-1.50.15"
+
 # @ECLASS-VARIABLE: WEBAPP_NO_AUTO_INSTALL
 # @DESCRIPTION:
 # An ebuild sets this to `yes' if an automatic installation and/or upgrade is
@@ -24,7 +30,7 @@
 if [[ "${WEBAPP_OPTIONAL}" != "yes" ]]; then
 	[[ "${WEBAPP_NO_AUTO_INSTALL}" == "yes" ]] || IUSE="vhosts"
 	SLOT="${PVR}"
-	DEPEND=">=app-admin/webapp-config-1.50.15"
+	DEPEND="${WEBAPP_DEPEND}"
 	RDEPEND="${DEPEND}"
 fi
 
-- 
cgit v1.2.3-65-gdbad