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

Diff of /eclass/bzr.eclass

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

Revision 1.15 Revision 1.18
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/bzr.eclass,v 1.15 2011/07/26 23:22:35 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bzr.eclass,v 1.18 2012/07/18 15:12:54 ulm Exp $
4# 4#
5# @ECLASS: bzr.eclass 5# @ECLASS: bzr.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Emacs team <emacs@gentoo.org>
8# Bazaar team <bazaar@gentoo.org>
9# @AUTHOR:
7# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>, 10# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
8# Ulrich Müller <ulm@gentoo.org>,
9# Christian Faulhammer <fauli@gentoo.org>,
10# Mark Lee <bzr-gentoo-overlay@lazymalevolence.com>, 11# Mark Lee <bzr-gentoo-overlay@lazymalevolence.com>
11# and anyone who wants to help 12# Ulrich Müller <ulm@gentoo.org>
13# Christian Faulhammer <fauli@gentoo.org>
12# @BLURB: generic fetching functions for the Bazaar VCS 14# @BLURB: generic fetching functions for the Bazaar VCS
13# @DESCRIPTION: 15# @DESCRIPTION:
14# The bzr.eclass provides functions to fetch, unpack, patch, and 16# The bzr.eclass provides functions to fetch, unpack, patch, and
15# bootstrap sources from repositories of the Bazaar distributed version 17# bootstrap sources from repositories of the Bazaar distributed version
16# control system. The eclass was originally derived from git.eclass. 18# control system. The eclass was originally derived from git.eclass.
24 26
25case "${EAPI:-0}" in 27case "${EAPI:-0}" in
26 0|1) EXPORT_FUNCTIONS src_unpack ;; 28 0|1) EXPORT_FUNCTIONS src_unpack ;;
27 *) EXPORT_FUNCTIONS src_unpack src_prepare ;; 29 *) EXPORT_FUNCTIONS src_unpack src_prepare ;;
28esac 30esac
29
30HOMEPAGE="http://bazaar-vcs.org/"
31DESCRIPTION="Based on the ${EBZR} eclass"
32 31
33DEPEND=">=dev-vcs/bzr-2.0.1" 32DEPEND=">=dev-vcs/bzr-2.0.1"
34case "${EAPI:-0}" in 33case "${EAPI:-0}" in
35 0|1) ;; 34 0|1) ;;
36 *) [[ ${EBZR_REPO_URI%%:*} = sftp ]] \ 35 *) [[ ${EBZR_REPO_URI%%:*} = sftp ]] \
229 || die "${EBZR}: can't move old checkout out of the way" 228 || die "${EBZR}: can't move old checkout out of the way"
230 fi 229 fi
231 230
232 if [[ ! -d ${branch_dir}/.bzr ]]; then 231 if [[ ! -d ${branch_dir}/.bzr ]]; then
233 if [[ ${repo_dir} != "${branch_dir}" && ! -d ${repo_dir}/.bzr ]]; then 232 if [[ ${repo_dir} != "${branch_dir}" && ! -d ${repo_dir}/.bzr ]]; then
234 einfo "creating shared bzr repository" 233 einfo "creating shared bzr repository: ${repo_dir}"
235 ${EBZR_INIT_REPO_CMD} "${repo_dir}" \ 234 ${EBZR_INIT_REPO_CMD} "${repo_dir}" \
236 || die "${EBZR}: can't create shared repository" 235 || die "${EBZR}: can't create shared repository"
237 fi 236 fi
238 237
239 if [[ -z ${EBZR_INITIAL_URI} ]]; then 238 if [[ -z ${EBZR_INITIAL_URI} ]]; then

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20