/[gentoo-x86]/eclass/go-mono.eclass
Gentoo

Diff of /eclass/go-mono.eclass

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

Revision 1.8 Revision 1.9
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/go-mono.eclass,v 1.8 2010/01/03 19:10:49 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/go-mono.eclass,v 1.9 2010/10/05 20:49:41 pacho Exp $
4 4
5# @ECLASS: go-mono.eclass 5# @ECLASS: go-mono.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# dotnet@gentoo.org 7# dotnet@gentoo.org
8# @BLURB: Common functionality for go-mono.org apps 8# @BLURB: Common functionality for go-mono.org apps
9# @DESCRIPTION: 9# @DESCRIPTION:
10# Common functionality needed by all go-mono.org apps. 10# Common functionality needed by all go-mono.org apps.
11 11
12
13inherit base versionator mono 12inherit base versionator mono
14
15 13
16PRE_URI="http://mono.ximian.com/monobuild/preview/sources" 14PRE_URI="http://mono.ximian.com/monobuild/preview/sources"
17 15
18SVN_PN="${PN/mono-debugger/debugger}" 16GIT_PN="${PN/mono-debugger/debugger}"
19 17
20ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/mono" 18ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/mono"
21 19
22GO_MONO_SUB_BRANCH=${GO_MONO_SUB_BRANCH} 20GO_MONO_SUB_BRANCH=${GO_MONO_SUB_BRANCH}
23 21
32 SRC_URI="${PRE_URI}/${PN}/${GO_MONO_P}.tar.bz2 -> ${P}.tar.bz2" 30 SRC_URI="${PRE_URI}/${PN}/${GO_MONO_P}.tar.bz2 -> ${P}.tar.bz2"
33 S="${WORKDIR}/${GO_MONO_P}" 31 S="${WORKDIR}/${GO_MONO_P}"
34elif [[ "${PV}" == "9999" ]] 32elif [[ "${PV}" == "9999" ]]
35then 33then
36 GO_MONO_P=${P} 34 GO_MONO_P=${P}
37 ESVN_REPO_URI="svn://anonsvn.mono-project.com/source/trunk/${SVN_PN}" 35 EGIT_REPO_URI="http://github.com/mono/${GIT_PN}.git"
38 SRC_URI="" 36 SRC_URI=""
39 inherit autotools subversion 37 inherit autotools git
40elif [[ "${PV%.9999}" != "${PV}" ]] 38elif [[ "${PV%.9999}" != "${PV}" ]]
41then 39then
42 GO_MONO_P=${P} 40 GO_MONO_P=${P}
43 ESVN_REPO_URI="svn://anonsvn.mono-project.com/source/branches/mono-$(get_version_component_range 1)-$(get_version_component_range 2)${GO_MONO_SUB_BRANCH}/${SVN_PN}" 41 EGIT_REPO_URI="http://github.com/mono/${GIT_PN}.git"
42 EGIT_BRANCH="mono-$(get_version_component_range 1)-$(get_version_component_range 2)${GO_MONO_SUB_BRANCH}"
44 SRC_URI="" 43 SRC_URI=""
45 inherit autotools subversion 44 inherit autotools git
46else 45else
47 GO_MONO_P=${P} 46 GO_MONO_P=${P}
48 SRC_URI="http://ftp.novell.com/pub/mono/sources/${PN}/${P}.tar.bz2" 47 SRC_URI="http://ftp.novell.com/pub/mono/sources/${PN}/${P}.tar.bz2"
49fi 48fi
50 49
73# @DESCRIPTION: Runs default() 72# @DESCRIPTION: Runs default()
74go-mono_src_unpack() { 73go-mono_src_unpack() {
75 if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]] 74 if [[ "${PV%.9999}" != "${PV}" || "${PV}" == "9999" ]]
76 then 75 then
77 default 76 default
78 subversion_src_unpack 77 git_src_unpack
79 else 78 else
80 default 79 default
81 fi 80 fi
82} 81}
83 82

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

  ViewVC Help
Powered by ViewVC 1.1.20