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

Diff of /eclass/darcs.eclass

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

Revision 1.13 Revision 1.14
1# Copyright 1999-2011 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/darcs.eclass,v 1.13 2011/12/27 17:55:12 fauli Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.14 2012/04/02 17:48:06 slyfox Exp $
4 4
5# @ECLASS: darcs.eclass 5# @ECLASS: darcs.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# "Gentoo's Haskell Language team" <haskell@gentoo.org> 7# "Gentoo's Haskell Language team" <haskell@gentoo.org>
8# Sergei Trofimovich <slyfox@gentoo.org> 8# Sergei Trofimovich <slyfox@gentoo.org>
67: ${EDARCS_REPOSITORY:=} 67: ${EDARCS_REPOSITORY:=}
68 68
69# @ECLASS-VARIABLE: EDARCS_OFFLINE 69# @ECLASS-VARIABLE: EDARCS_OFFLINE
70# @DESCRIPTION: 70# @DESCRIPTION:
71# Set this variable to a non-empty value to disable the automatic updating of 71# Set this variable to a non-empty value to disable the automatic updating of
72# a darcs repository. this is intended to be set outside the darcs source 72# a darcs repository. This is intended to be set outside the darcs source
73# tree by users. 73# tree by users. Defaults to EVCS_OFFLINE value.
74: ${EDARCS_OFFLINE:=${ESCM_OFFLINE}} 74: ${EDARCS_OFFLINE:=${EVCS_OFFLINE}}
75 75
76# @ECLASS-VARIABLE: EDARCS_CLEAN 76# @ECLASS-VARIABLE: EDARCS_CLEAN
77# @DESCRIPTION: 77# @DESCRIPTION:
78# Set this to something to get a clean copy when updating 78# Set this to something to get a clean copy when updating
79# (removes the working directory, then uses EDARCS_GET_CMD to 79# (removes the working directory, then uses EDARCS_GET_CMD to
80# re-download it.) 80# re-download it.)
81: ${EDARCS_CLEAN:=} 81: ${EDARCS_CLEAN:=}
82 82
83# --- end ebuild-configurable settings --- 83# --- end ebuild-configurable settings ---
84 84
85# add darcs to deps
86DEPEND="dev-vcs/darcs" 85DEPEND="dev-vcs/darcs
86 net-misc/rsync"
87 87
88# @FUNCTION: darcs_patchcount 88# @FUNCTION: darcs_patchcount
89# @DESCRIPTION: 89# @DESCRIPTION:
90# Internal function to determine amount of patches in repository. 90# Internal function to determine amount of patches in repository.
91darcs_patchcount() { 91darcs_patchcount() {
194 # probably redundant, but best to make sure 194 # probably redundant, but best to make sure
195 # Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside. 195 # Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside.
196 mkdir -p "${WORKDIR}/${P}" 196 mkdir -p "${WORKDIR}/${P}"
197 197
198 eshopts_push -s dotglob # get any dotfiles too. 198 eshopts_push -s dotglob # get any dotfiles too.
199 rsync -rlpgo --exclude="_darcs/" "${EDARCS_TOP_DIR}/${EDARCS_LOCALREPO}"/* "${WORKDIR}/${P}" 199 rsync -rlpgo "${EDARCS_TOP_DIR}/${EDARCS_LOCALREPO}"/* "${WORKDIR}/${P}"
200 eshopts_pop 200 eshopts_pop
201 201
202 einfo "Darcs repository contents are now in ${WORKDIR}/${P}" 202 einfo "Darcs repository contents are now in ${WORKDIR}/${P}"
203 203
204} 204}

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20