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

Diff of /eclass/mercurial.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/mercurial.eclass,v 1.3 2006/10/13 23:45:03 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.4 2009/02/22 13:01:17 nelchael Exp $
4 4
5# mercurial: Fetch sources from mercurial repositories, similar to cvs.eclass. 5# mercurial: Fetch sources from mercurial repositories, similar to cvs.eclass.
6# To use this from an ebuild, set EHG_REPO_URI in your ebuild. Then either 6# To use this from an ebuild, set EHG_REPO_URI in your ebuild. Then either
7# leave the default src_unpack or call mercurial_src_unpack. 7# leave the default src_unpack or call mercurial_src_unpack.
8 8
12 12
13DEPEND="dev-util/mercurial net-misc/rsync" 13DEPEND="dev-util/mercurial net-misc/rsync"
14EHG_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/hg-src" 14EHG_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/hg-src"
15 15
16# This must be set by the ebuild 16# This must be set by the ebuild
17: ${EHG_REPO_URI:=} # repository uri 17: ${EHG_REPO_URI:=} # repository uri
18 18
19# These can be set by the ebuild but are usually fine as-is 19# These can be set by the ebuild but are usually fine as-is
20: ${EHG_PROJECT:=$PN} # dir under EHG_STORE_DIR 20: ${EHG_PROJECT:=$PN} # dir under EHG_STORE_DIR
21: ${EHG_CLONE_CMD:=hg clone} # clone cmd 21: ${EHG_CLONE_CMD:=hg clone --pull} # clone cmd
22: ${EHG_PULL_CMD:=hg pull -u} # pull cmd 22: ${EHG_PULL_CMD:=hg pull -u} # pull cmd
23 23
24# should be set but blank to prevent using $HOME/.hgrc 24# should be set but blank to prevent using $HOME/.hgrc
25export HGRCPATH= 25export HGRCPATH=
26 26
27function mercurial_fetch { 27function mercurial_fetch {

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

  ViewVC Help
Powered by ViewVC 1.1.20