summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-03-04 18:54:41 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-03-04 18:54:41 +0000
commit83774450d0fe89393cefda8599ff1c24e75cbf62 (patch)
treea4e356f787d35112515226df56721391aa9763d2 /eclass/webapp.eclass
parentppc stable, bug #211956 (diff)
downloadgentoo-2-83774450d0fe89393cefda8599ff1c24e75cbf62.tar.gz
gentoo-2-83774450d0fe89393cefda8599ff1c24e75cbf62.tar.bz2
gentoo-2-83774450d0fe89393cefda8599ff1c24e75cbf62.zip
provide WEBAPP_DEPEND for ebuilds with WEBAPP_OPTIONAL
Diffstat (limited to 'eclass/webapp.eclass')
-rw-r--r--eclass/webapp.eclass10
1 files changed, 8 insertions, 2 deletions
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