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

Diff of /eclass/cvs.eclass

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

Revision 1.79 Revision 1.81
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/cvs.eclass,v 1.79 2013/01/22 07:25:59 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.81 2013/01/22 07:29:02 vapier Exp $
4 4
5# @ECLASS: cvs.eclass 5# @ECLASS: cvs.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# vapier@gentoo.org (and anyone who wants to help) 7# vapier@gentoo.org (and anyone who wants to help)
8# @BLURB: This eclass provides generic cvs fetching functions 8# @BLURB: This eclass provides generic cvs fetching functions
114# The name of the CVS module to be fetched 114# The name of the CVS module to be fetched
115# 115#
116# This must be set when cvs_src_unpack is called. This can include 116# This must be set when cvs_src_unpack is called. This can include
117# several directory levels, i.e. "foo/bar/baz" 117# several directory levels, i.e. "foo/bar/baz"
118#[[ -z ${ECVS_MODULE} ]] && die "$ECLASS: error: ECVS_MODULE not set, cannot continue" 118#[[ -z ${ECVS_MODULE} ]] && die "$ECLASS: error: ECVS_MODULE not set, cannot continue"
119
120# @ECLASS-VARIABLE: ECVS_DATE
121# @DEFAULT_UNSET
122# @DESCRIPTION:
123# The date of the checkout. See the -D date_spec option in the cvs
124# man page for more details.
119 125
120# @ECLASS-VARIABLE: ECVS_BRANCH 126# @ECLASS-VARIABLE: ECVS_BRANCH
121# @DEFAULT_UNSET 127# @DEFAULT_UNSET
122# @DESCRIPTION: 128# @DESCRIPTION:
123# The name of the branch/tag to use 129# The name of the branch/tag to use
176# b0rked and wouldn't work with portage userpriv anyway without 182# b0rked and wouldn't work with portage userpriv anyway without
177# special magic. 183# special magic.
178 184
179# : ${ECVS_RUNAS:=$(whoami)} 185# : ${ECVS_RUNAS:=$(whoami)}
180 186
181# ECVS_SUBDIR -- deprecated, do not use
182[[ -n ${ECVS_SUBDIR} ]] && die "ERROR: deprecated ECVS_SUBDIR defined. Please fix this ebuild."
183
184# add cvs to deps 187# add cvs to deps
185# ssh is used for ext auth 188# ssh is used for ext auth
186# sudo is used to run as a specified user 189# sudo is used to run as a specified user
187DEPEND="dev-vcs/cvs" 190DEPEND="dev-vcs/cvs"
188 191
238 ECVS_CO_OPTS+=" -d ${ECVS_LOCALNAME}" 241 ECVS_CO_OPTS+=" -d ${ECVS_LOCALNAME}"
239 fi 242 fi
240 243
241 if [[ -n ${ECVS_CLEAN} ]] ; then 244 if [[ -n ${ECVS_CLEAN} ]] ; then
242 ECVS_UP_OPTS+=" -C" 245 ECVS_UP_OPTS+=" -C"
246 fi
247
248 if [[ -n ${ECVS_DATE} ]] ; then
249 ECVS_CO_OPTS+=" -D ${ECVS_DATE}"
250 ECVS_UP_OPTS+=" -D ${ECVS_DATE}"
243 fi 251 fi
244 252
245 # It would be easiest to always be in "run-as mode", logic-wise, 253 # It would be easiest to always be in "run-as mode", logic-wise,
246 # if sudo didn't ask for a password even when sudo'ing to `whoami`. 254 # if sudo didn't ask for a password even when sudo'ing to `whoami`.
247 255

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.81

  ViewVC Help
Powered by ViewVC 1.1.20