summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-03-04 18:41:43 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-03-04 18:41:43 +0000
commite64caa2b92b6b0d76de058ba89c5b0e4b52a4ac9 (patch)
treec71059e3c707e6e4e050cba1f024c967bac74ccc /eclass
parentversion bump with some fixes for translations, provided by Timo Gurr <tgurr A... (diff)
downloadgentoo-2-e64caa2b92b6b0d76de058ba89c5b0e4b52a4ac9.tar.gz
gentoo-2-e64caa2b92b6b0d76de058ba89c5b0e4b52a4ac9.tar.bz2
gentoo-2-e64caa2b92b6b0d76de058ba89c5b0e4b52a4ac9.zip
make optional use webapp.eclass possible
Diffstat (limited to 'eclass')
-rw-r--r--eclass/webapp.eclass14
1 files changed, 10 insertions, 4 deletions
diff --git a/eclass/webapp.eclass b/eclass/webapp.eclass
index 0db635da3ff2..6cf98cbf45c7 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.59 2008/02/23 23:54:40 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.60 2008/03/04 18:41:43 hollow Exp $
#
# @ECLASS: webapp.eclass
# @MAINTAINER:
@@ -17,9 +17,15 @@
# reason for this BEFORE calling webapp_pkg_postinst().
[[ "${WEBAPP_NO_AUTO_INSTALL}" == "yes" ]] || IUSE="vhosts"
-SLOT="${PVR}"
-DEPEND=">=app-admin/webapp-config-1.50.15"
-RDEPEND="${DEPEND}"
+# @ECLASS-VARIABLE: WEBAPP_OPTIONAL
+# @DESCRIPTION:
+# An ebuild sets this to `yes' to make webapp support optional, in which case
+# you also need to take care of USE-flags and dependencies.
+if [[ "${WEBAPP_OPTIONAL}" != "yes" ]]; then
+ SLOT="${PVR}"
+ DEPEND=">=app-admin/webapp-config-1.50.15"
+ RDEPEND="${DEPEND}"
+fi
EXPORT_FUNCTIONS pkg_postinst pkg_setup src_install pkg_prerm