1 |
hollow 08/03/04 18:41:43 |
2 |
|
3 |
Modified: webapp.eclass |
4 |
Log: |
5 |
make optional use webapp.eclass possible |
6 |
|
7 |
Revision Changes Path |
8 |
1.60 eclass/webapp.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/webapp.eclass?rev=1.60&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/webapp.eclass?rev=1.60&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/webapp.eclass?r1=1.59&r2=1.60 |
13 |
|
14 |
Index: webapp.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v |
17 |
retrieving revision 1.59 |
18 |
retrieving revision 1.60 |
19 |
diff -u -r1.59 -r1.60 |
20 |
--- webapp.eclass 23 Feb 2008 23:54:40 -0000 1.59 |
21 |
+++ webapp.eclass 4 Mar 2008 18:41:43 -0000 1.60 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2006 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.59 2008/02/23 23:54:40 hollow Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/webapp.eclass,v 1.60 2008/03/04 18:41:43 hollow Exp $ |
27 |
# |
28 |
# @ECLASS: webapp.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -17,9 +17,15 @@ |
31 |
# reason for this BEFORE calling webapp_pkg_postinst(). |
32 |
[[ "${WEBAPP_NO_AUTO_INSTALL}" == "yes" ]] || IUSE="vhosts" |
33 |
|
34 |
-SLOT="${PVR}" |
35 |
-DEPEND=">=app-admin/webapp-config-1.50.15" |
36 |
-RDEPEND="${DEPEND}" |
37 |
+# @ECLASS-VARIABLE: WEBAPP_OPTIONAL |
38 |
+# @DESCRIPTION: |
39 |
+# An ebuild sets this to `yes' to make webapp support optional, in which case |
40 |
+# you also need to take care of USE-flags and dependencies. |
41 |
+if [[ "${WEBAPP_OPTIONAL}" != "yes" ]]; then |
42 |
+ SLOT="${PVR}" |
43 |
+ DEPEND=">=app-admin/webapp-config-1.50.15" |
44 |
+ RDEPEND="${DEPEND}" |
45 |
+fi |
46 |
|
47 |
EXPORT_FUNCTIONS pkg_postinst pkg_setup src_install pkg_prerm |
48 |
|
49 |
|
50 |
|
51 |
|
52 |
-- |
53 |
gentoo-commits@l.g.o mailing list |