/[gentoo-x86]/eclass/cdrom.eclass
Gentoo

Diff of /eclass/cdrom.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.5
1 # Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cdrom.eclass,v 1.3 2012/01/15 14:13:46 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cdrom.eclass,v 1.5 2012/01/18 12:42:06 vapier Exp $
4 4
5# @ECLASS: cdrom.eclass 5# @ECLASS: cdrom.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# games@gentoo.org 7# games@gentoo.org
8# @BLURB: Functions for CD-ROM handling 8# @BLURB: Functions for CD-ROM handling
18if [[ -z ${___ECLASS_ONCE_CDROM} ]]; then 18if [[ -z ${___ECLASS_ONCE_CDROM} ]]; then
19___ECLASS_ONCE_CDROM=1 19___ECLASS_ONCE_CDROM=1
20 20
21inherit portability 21inherit portability
22 22
23# @ECLASS-VARIABLE: CDROM_DISABLE_PROPERTIES 23# @ECLASS-VARIABLE: CDROM_OPTIONAL
24# @DEFAULT_UNSET 24# @DEFAULT_UNSET
25# @DESCRIPTION: 25# @DESCRIPTION:
26# By default, the eclass sets PROPERTIES="interactive". 26# By default, the eclass sets PROPERTIES="interactive" on the assumption
27# A non-empty value of CDROM_DISABLE_PROPERTIES suppresses this. 27# that people will be using these. If your package optionally supports
28 28# disc based installed, then set this to "yes", and we'll set things
29if [[ -z ${CDROM_DISABLE_PROPERTIES} ]]; then 29# conditionally based on USE=cdinstall.
30if [[ ${CDROM_OPTIONAL} == "yes" ]] ; then
31 IUSE="cdinstall"
32 PROPERTIES="cdinstall? ( interactive )"
33else
30 PROPERTIES="interactive" 34 PROPERTIES="interactive"
31fi 35fi
32 36
33# @FUNCTION: cdrom_get_cds 37# @FUNCTION: cdrom_get_cds
34# @USAGE: <file on cd1> [file on cd2] [file on cd3] [...] 38# @USAGE: <file on cd1> [file on cd2] [file on cd3] [...]

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20