provide WEBAPP_DEPEND for ebuilds with WEBAPP_OPTIONAL
authorBenedikt Boehm <hollow@gentoo.org>
Tue, 4 Mar 2008 18:54:41 +0000 (18:54 +0000)
committerBenedikt Boehm <hollow@gentoo.org>
Tue, 4 Mar 2008 18:54:41 +0000 (18:54 +0000)
eclass/webapp.eclass

index 4e430a80d7390f5655ffb26587d7ffd9cdd3b119..5f8d8d39adf71f33ac0928ae762c1341f02844ec 100644 (file)
@@ -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:
 # 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