| 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 | |
|
|
| 13 | inherit base versionator mono |
12 | inherit base versionator mono |
| 14 | |
|
|
| 15 | |
13 | |
| 16 | PRE_URI="http://mono.ximian.com/monobuild/preview/sources" |
14 | PRE_URI="http://mono.ximian.com/monobuild/preview/sources" |
| 17 | |
15 | |
| 18 | SVN_PN="${PN/mono-debugger/debugger}" |
16 | GIT_PN="${PN/mono-debugger/debugger}" |
| 19 | |
17 | |
| 20 | ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/mono" |
18 | ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/mono" |
| 21 | |
19 | |
| 22 | GO_MONO_SUB_BRANCH=${GO_MONO_SUB_BRANCH} |
20 | GO_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}" |
| 34 | elif [[ "${PV}" == "9999" ]] |
32 | elif [[ "${PV}" == "9999" ]] |
| 35 | then |
33 | then |
| 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 |
| 40 | elif [[ "${PV%.9999}" != "${PV}" ]] |
38 | elif [[ "${PV%.9999}" != "${PV}" ]] |
| 41 | then |
39 | then |
| 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 |
| 46 | else |
45 | else |
| 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" |
| 49 | fi |
48 | fi |
| 50 | |
49 | |
| … | |
… | |
| 73 | # @DESCRIPTION: Runs default() |
72 | # @DESCRIPTION: Runs default() |
| 74 | go-mono_src_unpack() { |
73 | go-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 | |