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

Diff of /eclass/darcs.eclass

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

Revision 1.9 Revision 1.10
1# Copyright 2004 Gentoo Technologies, Inc. 1# Copyright 2004 Gentoo Technologies, Inc.
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.9 2010/07/19 02:52:14 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/darcs.eclass,v 1.10 2010/11/01 20:54:46 slyfox Exp $
4# 4#
5# darcs eclass author: Andres Loeh <kosmikus@gentoo.org> 5# darcs eclass author: Andres Loeh <kosmikus@gentoo.org>
6# tla eclass author: <rphillips@gentoo.org> 6# tla eclass author: <rphillips@gentoo.org>
7# Original Author: Jeffrey Yasskin <jyasskin@mail.utexas.edu> 7# Original Author: Jeffrey Yasskin <jyasskin@mail.utexas.edu>
8# 8#
52 52
53# --- end ebuild-configurable settings --- 53# --- end ebuild-configurable settings ---
54 54
55# add darcs to deps 55# add darcs to deps
56DEPEND="dev-vcs/darcs" 56DEPEND="dev-vcs/darcs"
57
58darcs_patchcount() {
59 set -- $(${EDARCS_DARCS_CMD} show repo | grep "Num Patches")
60 # handle string like: " Num Patches: 3860"
61 echo ${3}
62}
57 63
58# is called from darcs_src_unpack 64# is called from darcs_src_unpack
59darcs_fetch() { 65darcs_fetch() {
60 66
61 # The local directory to store the repository (useful to ensure a 67 # The local directory to store the repository (useful to ensure a
112 elif [ "${mode}" == "update" ]; then 118 elif [ "${mode}" == "update" ]; then
113 einfo "Running $cmdupdate" 119 einfo "Running $cmdupdate"
114 eval $cmdupdate || die "darcs update command failed" 120 eval $cmdupdate || die "darcs update command failed"
115 fi 121 fi
116 122
123 export EDARCS_PATCHCOUNT=$(darcs_patchcount)
124 einfo " patches in repo: ${EDARCS_PATCHCOUNT}"
125
117 popd 126 popd
118} 127}
119 128
120 129
121darcs_src_unpack() { 130darcs_src_unpack() {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20