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

Diff of /eclass/cvs.eclass

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

Revision 1.1.1.1 Revision 1.59
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.1.1.1 2005/11/30 09:59:33 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.59 2005/08/13 08:10:53 phreak Exp $
4 4
5inherit eutils 5# Current Maintainer: Tal Peer <coredumb@gentoo.org>
6# Original Author: Dan Armak <danarmak@gentoo.org>
7
8# SSH auth code by Danny <danny.milo@gmx.net>
9
10# SSH password authentication support and host key verification
11# support by Jeremy Maitin-Shepard <jbms@gentoo.org>
12
6 13
7# This eclass provides the generic cvs fetching functions. To use 14# This eclass provides the generic cvs fetching functions. To use
8# this from an ebuild, set the `ebuild-configurable settings' as 15# this from an ebuild, set the `ebuild-configurable settings' as
9# specified below in your ebuild before inheriting. Then either leave 16# specified below in your ebuild before inheriting. Then either leave
10# the default src_unpack or extend over cvs_src_unpack. If you find 17# the default src_unpack or extend over cvs_src_unpack. If you find
148# --- end ebuild-configurable settings --- 155# --- end ebuild-configurable settings ---
149 156
150# add cvs to deps 157# add cvs to deps
151# ssh is used for ext auth 158# ssh is used for ext auth
152# sudo is used to run as a specified user 159# sudo is used to run as a specified user
153DEPEND="dev-util/cvs" 160DEPEND="dev-util/cvs app-admin/sudo"
154
155[ -n "$ECVS_RUNAS" ] && DEPEND="$DEPEND app-admin/sudo"
156 161
157if [ "$ECVS_AUTH" == "ext" ]; then 162if [ "$ECVS_AUTH" == "ext" ]; then
158 #default to ssh 163 #default to ssh
159 [ -z "$CVS_RSH" ] && export CVS_RSH="ssh" 164 [ -z "$CVS_RSH" ] && export CVS_RSH="ssh"
160 if [ "$CVS_RSH" != "ssh" ]; then 165 if [ "$CVS_RSH" != "ssh" ]; then
528 # Implement some of base_src_unpack's functionality; note however 533 # Implement some of base_src_unpack's functionality; note however
529 # that base.eclass may not have been inherited! 534 # that base.eclass may not have been inherited!
530 if [ -n "$PATCHES" ]; then 535 if [ -n "$PATCHES" ]; then
531 debug-print "$FUNCNAME: PATCHES=$PATCHES, S=$S, autopatching" 536 debug-print "$FUNCNAME: PATCHES=$PATCHES, S=$S, autopatching"
532 cd "$S" 537 cd "$S"
533 epatch ${PATCHES} 538 for x in $PATCHES; do
539 debug-print "patching from $x"
540 patch -p0 < "$x"
541 done
534 # Make sure we don't try to apply patches more than once, 542 # Make sure we don't try to apply patches more than once,
535 # since cvs_src_unpack is usually called several times from 543 # since cvs_src_unpack is usually called several times from
536 # e.g. kde-source_src_unpack 544 # e.g. kde-source_src_unpack
537 export PATCHES="" 545 export PATCHES=""
538 fi 546 fi

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20