summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/cdrom.eclass')
-rw-r--r--eclass/cdrom.eclass16
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
index 5c64c6e7a891..ffbbf02ed26d 100644
--- a/eclass/cdrom.eclass
+++ b/eclass/cdrom.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cdrom.eclass,v 1.4 2012/01/15 19:59:17 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cdrom.eclass,v 1.5 2012/01/18 12:42:06 vapier Exp $
# @ECLASS: cdrom.eclass
# @MAINTAINER:
@@ -20,13 +20,17 @@ ___ECLASS_ONCE_CDROM=1
inherit portability
-# @ECLASS-VARIABLE: CDROM_DISABLE_PROPERTIES
+# @ECLASS-VARIABLE: CDROM_OPTIONAL
# @DEFAULT_UNSET
# @DESCRIPTION:
-# By default, the eclass sets PROPERTIES="interactive".
-# A non-empty value of CDROM_DISABLE_PROPERTIES suppresses this.
-
-if [[ -z ${CDROM_DISABLE_PROPERTIES} ]]; then
+# By default, the eclass sets PROPERTIES="interactive" on the assumption
+# that people will be using these. If your package optionally supports
+# disc based installed, then set this to "yes", and we'll set things
+# conditionally based on USE=cdinstall.
+if [[ ${CDROM_OPTIONAL} == "yes" ]] ; then
+ IUSE="cdinstall"
+ PROPERTIES="cdinstall? ( interactive )"
+else
PROPERTIES="interactive"
fi